Documentation Retrieval MCP Server

Documentation Retrieval MCP Server

docret-mcp-server•bysreedeep-ss

An MCP server that lets AI assistants fetch current documentation for Python libraries like LangChain, LlamaIndex, and OpenAI by searching official documentation sites and extracting readable page content.

License: MIT License•Runtime: Awaiting documentation review•Category: file systems-docs

WHAT IT DOES

  • •Fetches the latest documentation content for specified Python libraries.
  • •Uses the SERPER API to run web searches within targeted documentation sites.
  • •Uses BeautifulSoup to extract readable text from HTML content.
  • •The get_docs function takes a query and a library name and returns extracted text from relevant documentation pages.

BEST FOR

  • •AI assistants needing current official documentation for supported Python libraries.
  • •Developers searching topics within a specific library's documentation, such as memory management in OpenAI.

ABOUT DOCRET-MCP-SERVER

Documentation Retrieval MCP Server is cataloged as an MCP server attributed to sreedeep-ss. An MCP server that lets AI assistants fetch current documentation for Python libraries like LangChain, LlamaIndex, and OpenAI by searching official documentation sites and extracting readable page content. It is categorized under file systems-docs. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Documentation Retrieval MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which libraries does the server support?

The server currently supports LangChain, LlamaIndex, and OpenAI documentation.

Can support for additional libraries be added?

Yes, support can be added by updating the docs_urls dictionary in main.py with the library name and its documentation URL.

Upstream README

View this exact version on GitHub

README.md · ebd3bc83781b · Fetched 2026-11-13 11:03:31 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Documentation Retrieval MCP Server (DOCRET)

This project implements a Model Context Protocol (MCP) server that enables AI assistants to access up-to-date documentation for various Python libraries, including LangChain, LlamaIndex, and OpenAI. By leveraging this server, AI assistants can dynamically fetch and provide relevant information from official documentation sources. The goal is to ensure that AI applications always have access to the latest official documentation.

What is an MCP Server?

The Model Context Protocol is an open standard that enables developers to build secure, two-way connections between their data sources and AI-powered tools. The architecture is straightforward: developers can either expose their data through MCP servers or build AI applications (MCP clients) that connect to these servers.

Features

  • Dynamic Documentation Retrieval: Fetches the latest documentation content for specified Python libraries.
  • Asynchronous Web Searches: Utilizes the SERPER API to perform efficient web searches within targeted documentation sites.
  • HTML Parsing: Employs BeautifulSoup to extract readable text from HTML content.
  • Extensible Design: Easily add support for additional libraries by updating the configuration.

Prerequisites

  • Python 3.8 or higher
  • UV for Python Package Management (or pip if you're a pleb)
  • A Serper API key (for Google searches or "SERP"s)
  • Claude Desktop or Claude Code (for testing)

Installation

1. Clone the Repository

git clone https://github.com/Sreedeep-SS/docret-mcp-server.git
cd docret-mcp-server

2. Create and Activate a Virtual Environment

  • On macOS/Linux:

    python3 -m venv env
    source env/bin/activate
    
  • On Windows:

    python -m venv env
    .\env\Scripts\activate
    

3. Install Dependencies

With the virtual environment activated, install the required dependencies:

pip install -r requirements.txt

or if you are using uv:

uv sync

Set Up Environment Variables

Before running the application, configure the required environment variables. This project uses the SERPER API for searching documentation and requires an API key.

  1. Create a .env file in the root directory of the project.

  2. Add the following environment variable:

    SERPER_API_KEY=your_serper_api_key_here
    

Replace your_serper_api_key_here with your actual API key.

Running the MCP Server

Once the dependencies are installed and environment variables are set up, you can start the MCP server.

python main.py

This will launch the server and make it ready to handle requests.

Usage

The MCP server provides an API to fetch documentation content from supported libraries. It works by querying the SERPER API for relevant documentation links and scraping the page content.

Searching Documentation

To search for documentation on a specific topic within a library, use the get_docs function. This function takes two parameters:

  • query: The topic to search for (e.g., "Chroma DB")
  • library: The name of the library (e.g., "langchain")

Example usage:

from main import get_docs

result = await get_docs("memory management", "openai")
print(result)

This will return the extracted text from the relevant OpenAI documentation pages.

Integrating with AI Assistants

You can integrate this MCP server with AI assistants like Claude or custom-built AI models. To configure the assistant to interact with the server, use the following configuration:

{
  "servers": [
    {
      "name": "Documentation Retrieval Server",
      "command": "python /path/to/main.py"
    }
  ]
}

Ensure that the correct path to main.py is specified.

Extending the MCP Server

The server currently supports the following libraries:

  • LangChain
  • LlamaIndex
  • OpenAI

To add support for additional libraries, update the docs_urls dictionary in main.py with the library name and its documentation URL:

docs_urls = {
    "langchain": "python.langchain.com/docs",
    "llama-index": "docs.llamaindex.ai/en/stable",
    "openai": "platform.openai.com/docs",
    "new-library": "new-library-docs-url.com",
}

📌 Roadmap

Surely this is really exciting for me and I'm looking forward to build more on this and stay updated with the latest news and ideas that can be implemented

This is what I have on my mind:

  1. Add support for more libraries (e.g., Hugging Face, PyTorch)

    • Expand the docs_urls dictionary with additional libraries.
    • Modify the get_docs function to handle different formats of documentation pages.
    • Use regex-based or AI-powered parsing to better extract meaningful content.
    • Provide an API endpoint to dynamically add new libraries.
  2. Implement caching to reduce redundant API calls

    • Use Redis or an in-memory caching mechanism like functools.lru_cache
    • Implement time-based cache invalidation.
    • Cache results per library and per search term.
  3. Optimize web scraping with AI-powered summarization

    • Use GPT-4, BART, or T5 for summarizing scraped documentation.
    • There are also Claude 3 Haiku, Gemini 1.5 Pro, GPT-4-mini, Open-mistral-nemo, Hugging Face Models and many more that can be used. All of which are subject to debate.
    • Let users choose between raw documentation text and a summarized version.
  4. Introduce a REST API for external integrations

    • Use FastAPI to expose API endpoints. (Just because)
    • Build a simple frontend dashboard for API interaction. (Why not?)
  5. Add unit tests for better reliabilityReferences

    • Use pytest and unittest for API and scraping reliability tests. (Last thing we want is this thing turning into a nuclear bomb)
    • Implement CI/CD workflows to automatically run tests on every push. (The bread and butter of course)
  6. More MCP tools that can be useful during development

    • Database Integrations
    • Google Docs/Sheets/Drive Integration
    • File System Operations
    • Git Integration
    • Integrating Communication Platforms to convert ideas into product
    • Docker and Kubernetes management

References

For more details on MCP servers and their implementation, refer to the guide:

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Documentation Retrieval MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/docret-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related file systems-docs MCP Servers

Alternative and complementary servers in the same category

View all in file systems-docs →

A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

Repository stats unavailable
Files & Documentation
LoreKeeper MCP server
lorekeeper-rpg-lorekeeper-com•lore-keeper

Hosted MCP server for tabletop RPG worlds that organizes messy notes and documents into a private store and lets MCP apps search lore, read documents, find characters, and optionally generate character or world pictures.

Repository stats unavailable
Files & Documentation

An MCP server that gives AI assistants scoped file system operations inside a project directory, with read-only reference projects plus git and GitHub tools.

Repository stats unavailable
Files & Documentation