Docs MCP
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., "@Docs MCPhow to use openai embeddings in langchain?"
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.
Docs MCP — AI-Powered Documentation Search
An MCP (Model Context Protocol) server that searches official documentation for popular libraries, scrapes the relevant pages, and returns clean, LLM-ready text. Connect it to Claude Desktop, Cursor, or any MCP-compatible client so your AI assistant can look up up-to-date docs on demand.
What it does
The project follows a three-step pipeline:
Search the web — Uses the Serper API to run a Google search scoped to a library's official documentation site.
Fetch and clean pages — Downloads the top result URLs and strips HTML noise using Groq LLM (
openai/gpt-oss-20b).Return structured context — Sends back cleaned text with
SOURCE:links so the calling agent can cite where the information came from.
The MCP server exposes a single tool, get_docs, that AI clients can call when they need documentation context.
Related MCP server: mcp-docs
Supported libraries
Library key | Documentation site |
| python.langchain.com/docs |
| docs.llamaindex.ai/en/stable |
| platform.openai.com/docs |
| docs.astral.sh/uv |
Prerequisites
Python 3.12+
uv — Python package and project manager
Serper API key — serper.dev
Groq API key — console.groq.com
Project structure
web-scraping/
├── mcp_server.py # MCP server (FastMCP) — exposes the get_docs tool
├── client.py # Example MCP client that calls get_docs and summarizes results
├── utils.py # LLM helpers (Groq) and HTML cleaning (trafilatura)
├── test.py # Quick sanity check for the Groq API connection
├── pyproject.toml # Project dependencies (managed by uv)
└── .env # API keys (create this locally — do not commit)Setup
1. Clone and enter the project
cd /path/to/web-scraping2. Install dependencies with uv
uv syncThis creates a .venv virtual environment and installs all packages listed in pyproject.toml.
3. Create a .env file
Create a .env file in the project root with your API keys:
SERPER_API_KEY=your_serper_api_key_here
GROQ_API_KEY=your_groq_api_key_hereBoth keys are required. The server loads them via python-dotenv.
4. Verify your Groq connection (optional)
uv run test.pyYou should see API Key Found: True followed by a short LLM response.
Usage
Run the MCP server directly
uv run mcp_server.pyThe server communicates over stdio (standard input/output), which is how MCP clients connect to it. Running it standalone will appear to hang — that is expected; it is waiting for an MCP client.
Run the example client
From the project root:
uv run client.pyThis starts the MCP server as a subprocess, calls get_docs with a sample query ("How to publish a package with uv on gitlab"), and prints a human-readable answer generated by Groq.
Connect to Claude Desktop
Add the server to your Claude Desktop MCP config.
macOS config path:
~/Library/Application Support/Claude/claude_desktop_config.jsonRecommended configuration — use --directory so the server works even when Claude Desktop does not honor the cwd field:
{
"mcpServers": {
"docs-mcp": {
"command": "/opt/homebrew/bin/uv",
"args": [
"run",
"--directory",
"/Users/YOUR_USERNAME/Desktop/web-scraping",
"mcp_server.py"
],
"env": {
"SERPER_API_KEY": "your_serper_api_key_here",
"GROQ_API_KEY": "your_groq_api_key_here"
}
}
}
}Replace /Users/YOUR_USERNAME/Desktop/web-scraping with the absolute path to this project, and update the uv path if yours differs (which uv).
Alternative — run the venv Python directly (most reliable if cwd is ignored):
{
"mcpServers": {
"docs-mcp": {
"command": "/Users/YOUR_USERNAME/Desktop/web-scraping/.venv/bin/python",
"args": [
"/Users/YOUR_USERNAME/Desktop/web-scraping/mcp_server.py"
],
"env": {
"SERPER_API_KEY": "your_serper_api_key_here",
"GROQ_API_KEY": "your_groq_api_key_here"
}
}
}
}After saving the config, fully quit Claude Desktop (Cmd+Q) and reopen it. The docs-mcp server should appear as connected.
MCP tool reference
get_docs
Search official documentation for a library and return cleaned text.
Parameters:
Parameter | Type | Description |
| string | What to search for (e.g. |
| string | One of: |
Example call (from an MCP client):
{
"query": "How to use async with LangChain",
"library": "langchain"
}Returns: Cleaned documentation text with SOURCE: <url> headers for each fetched page.
How it works internally
User / AI client
│
▼
get_docs(query, library)
│
├─► Serper API ──► Google search (site-scoped to official docs)
│
├─► httpx ──► Fetch top result URLs
│
└─► Groq LLM ──► Clean HTML from each page (4000-char chunks)
│
▼
Structured text + source linksmcp_server.py— Defines the FastMCP server and theget_docstool.utils.py—get_response_from_llm()calls Groq;clean_html_to_txt()uses trafilatura (available as a fallback utility).client.py— Demonstrates programmatic MCP usage with the official Python MCP SDK.
Troubleshooting
Failed to spawn: mcp_server.py — No such file or directory
Claude Desktop launched uv from the wrong working directory. Fix by using --directory with an absolute project path (see config above), or point directly at .venv/bin/python.
GROQ_API_KEY not found
Ensure .env exists in the project root with a valid key, or pass the key via the env block in your MCP config.
Server connects then immediately disconnects
Check Claude Desktop MCP logs for Python import errors. Run uv sync to reinstall dependencies, then test locally with uv run mcp_server.py.
Library X not supported by this tool
The library parameter must exactly match one of the supported keys: langchain, lama-index, openai, or uv.
Dependencies
Managed in pyproject.toml:
fastmcp — MCP server framework
mcp — MCP Python SDK
httpx — Async HTTP client
groq — Groq LLM API client
python-dotenv — Load
.envfilestrafilatura — HTML text extraction
License
MIT License
Available Tools
1 toolget_docsB
Search the latest docs for a given query and library. Supports langchain, openai, llama-index and uv.
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The query to search for (e.g. "Publish a package with UV") | |
| library | Yes | The library to search in (e.g. "uv") |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided; description only states what it does but not behavioral traits like return format, limits, or authentication needs.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences, no waste, purpose is front-loaded. Every sentence contributes useful information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity, description is adequate but lacks details on output format. Could be more complete by specifying what the search returns.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema descriptions cover both parameters; description adds value by listing supported libraries and example query, augmenting schema meaning.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Description clearly states action and resource: 'Search the latest docs'. It specifies supported libraries but has no siblings to differentiate from.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No explicit when-to-use or alternatives are given; usage is implied from the purpose.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
1 tool update
v0.1.0- First observed
get_docs
TDQS
Only one tool exists, so there is no potential for confusion between tools.
With a single tool, naming consistency is inherently maintained; the name 'get_docs' follows a clear verb_noun pattern.
One tool is minimal but can be acceptable for a narrowly scoped server dedicated solely to documentation search; however, it feels thin for the claimed support of multiple libraries.
The server covers the primary search operation but lacks tools for listing supported libraries, retrieving specific document content, or handling version-specific queries, which are notable gaps.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
MCP server for agentverse documentation, generated by doc2mcp.
Related MCP Servers
- FlicenseBqualityDmaintenanceAn MCP server that fetches real-time documentation for popular libraries like Langchain, Llama-Index, MCP, and OpenAI, allowing LLMs to access updated library information beyond their knowledge cut-off dates.13-
- AlicenseNot gradedqualityDmaintenanceGeneric MCP server that exposes Markdown documentation to LLMs, enabling them to search and answer questions about any software documentation.MIT
- AlicenseNot gradedqualityBmaintenanceA documentation MCP server that crawls websites and Git repositories, stores them as Markdown, and provides tools to search and retrieve documentation for local LLMs and AI agents.Apache 2.0
- FlicenseNot gradedqualityBmaintenanceLocal MCP server that indexes documentation from URLs/files into a vector database, enabling coding agents to search and use up-to-date library and API documentation.-
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/Ruoth1111/ai-docs-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server