MCP Docs Assistant
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Docs Assistantfind LangChain documentation on agents"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Docs Assistant
A Python MCP project that exposes documentation retrieval as a tool and demonstrates how an agentic LLM client can use that tool to answer developer questions with fetched source context.
The main workflow runs an MCP server over stdio, searches supported official documentation sites through Serper, extracts readable page content, and passes the retrieved context to a Groq-hosted LLM for a grounded response. The repository also includes a small context-sharing MCP server example for storing and retrieving agent context in memory.
Key Features
MCP stdio server with a
get_docstool for documentation lookup.Search constrained to supported official docs: LangChain, LlamaIndex, OpenAI, and uv.
Async HTTP fetching with
httpxand cleaned page extraction viatrafilatura.Example MCP client that discovers tools, calls the server, and sends retrieved context to Groq.
Simple agentic workflow pattern: discover a tool, retrieve external context, then generate a grounded answer.
Separate context-sharing server example with tools for
share_context,retrieve_context, andlist_all_context.
Related MCP server: Documentation Retrieval MCP Server (DOCRET)
Tech Stack
Python
MCP / FastMCP
httpx
python-dotenv
Serper API
Groq API
trafilatura
Project Structure
.
|-- mcp_server.py # Main docs-retrieval MCP server
|-- client.py # Example MCP client and LLM response flow
|-- utils.py # HTML cleanup and Groq completion helper
|-- mcp-context-sharing/
| `-- src/server/main.py # In-memory context-sharing MCP server example
|-- requirements.txt # Python dependency snapshot
|-- .env.example # Required environment variables
`-- pyproject.toml # Placeholder project metadataSetup
Create and activate a virtual environment:
python -m venv .venv
.venv\Scripts\activateInstall dependencies:
pip install -r requirements.txt
pip install fastmcp groq trafilaturaCreate a local environment file:
copy .env.example .envThen add API keys:
SERPER_API_KEY=your_serper_api_key
GROQ_API_KEY=your_groq_api_keyRun Locally
Run the example client, which starts mcp_server.py over stdio, lists available tools, calls get_docs, and asks Groq to answer from the returned context:
python client.pyRun the docs server directly:
python mcp_server.pyRun the context-sharing server example:
python mcp-context-sharing/src/server/main.pyUsage Flow
client.pystarts the MCP server with stdio transport.The client initializes an MCP session and lists available tools.
It calls
get_docswith a developer query and supported library name.mcp_server.pysearches the relevant official docs domain through Serper.Matching pages are fetched, cleaned, labeled with source URLs, and returned.
The client sends the retrieved context to Groq and prints the answer.
Supported library values:
langchain
llama-index
openai
uvTesting and Build
No automated test suite or build pipeline is currently defined. For a smoke test, configure the environment variables and run:
python client.pyDeployment Notes
The current implementation is designed for local MCP stdio execution. It does not include a hosted API service, persistent storage layer, or production deployment configuration.
Future Scope
Add tests around tool behavior, error handling, and response shaping.
Move supported docs sources into configuration.
Add caching or persistence for fetched documentation.
Package the server with complete dependency metadata in
pyproject.toml.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/amanjain200/official-docs-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server