What is Documentation Retrieval MCP Server (DOCRET)?
Documentation Retrieval MCP Server (DOCRET) is a Model Context Protocol (MCP) server that enables AI assistants to access up-to-date documentation for Python libraries such as LangChain, LlamaIndex, and OpenAI. It dynamically fetches and provides relevant information from official documentation sources, ensuring AI applications always have access to the latest content.
How to use Documentation Retrieval MCP Server (DOCRET)?
Clone the repository, create and activate a virtual environment, install dependencies with pip install -r requirements.txt (or uv sync), set the SERPER_API_KEY environment variable in a .env file, and run python main.py. The server exposes a get_docs function that takes a query and library parameter. Integrate with AI assistants by adding a JSON configuration to the assistant’s MCP server list.
Key features of Documentation Retrieval MCP Server (DOCRET)
- Dynamic retrieval of documentation content for Python libraries.
- Asynchronous web searches using the SERPER API.
- HTML parsing with BeautifulSoup to extract readable text.
- Extensible design: easily add new libraries by updating the
docs_urls dictionary.
- Currently supports LangChain, LlamaIndex, and OpenAI.
Use cases of Documentation Retrieval MCP Server (DOCRET)
- AI assistants answering user questions about Python library APIs and usage.
- Keeping AI applications updated with the latest official documentation.
- Providing context for code generation or debugging sessions.
- Integrating with Claude Desktop or Claude Code for real-time documentation lookup.
コメント