Python MCP Server - Documentation Search
@sawantudayan
About Python MCP Server - Documentation Search
MCP (Model Context Protocol) server that allows users to search for documentation from popular libraries such as LangChain, LlamaIndex, and OpenAI using the Serper API. The server fetches search results and extracts the relevant documentation from the web using HTTP requests and
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"document-search-mcp-server": {
"command": "uv",
"args": [
"run",
"main.py"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Python MCP Server - Documentation Search?
Python MCP Server - Documentation Search is a Minimal Command Protocol (MCP) server that lets users search documentation from popular libraries (LangChain, LlamaIndex, and OpenAI) using the Serper API. It fetches search results and extracts the relevant web page text with HTTP requests and BeautifulSoup.
How to use Python MCP Server - Documentation Search?
Install Python dependencies, set up a .env file with your Serper API key, and run uv run main.py. Then, from an interactive MCP client, invoke the get_docs tool with a query and library name (e.g., get_docs("Chroma DB", "langchain")).
Key features of Python MCP Server - Documentation Search
- Supports documentation search for LangChain, LlamaIndex, and OpenAI.
- Uses Serper API for web searches.
- Extracts and returns text from relevant documentation pages.
- Can be used interactively through the MCP protocol.
- Includes a
dummy_toolto confirm the server is running.
Use cases of Python MCP Server - Documentation Search
- Search for specific topics in LangChain documentation (e.g., "Chroma DB").
- Retrieve latest documentation content from LlamaIndex.
- Look up OpenAI library documentation via a unified interface.
FAQ from Python MCP Server - Documentation Search
What dependencies are required?
Python 3.12 or higher, plus the Serper API key, MCP library, BeautifulSoup4, and httpx.
How do I fix a missing API key error?
Make sure the Serper API key is set correctly in the .env file. The server will error if it is missing.
What should I do if searches or URL fetches time out?
Try increasing the timeout values or check your network connectivity. Timeout issues can occur during searches or page fetches.
Which libraries are available for documentation search?
LangChain (langchain.com), LlamaIndex (llamaindex.ai), and OpenAI (platform.openai.com).
What tools does the server provide?
Two tools: dummy_tool (simple health check) and get_docs (fetches documentation for a given query and library).
Frequently asked questions
What dependencies are required?
Python 3.12 or higher, plus the Serper API key, MCP library, BeautifulSoup4, and httpx.
How do I fix a missing API key error?
Make sure the Serper API key is set correctly in the `.env` file. The server will error if it is missing.
What should I do if searches or URL fetches time out?
Try increasing the timeout values or check your network connectivity. Timeout issues can occur during searches or page fetches.
Which libraries are available for documentation search?
LangChain (langchain.com), LlamaIndex (llamaindex.ai), and OpenAI (platform.openai.com).
What tools does the server provide?
Two tools: `dummy_tool` (simple health check) and `get_docs` (fetches documentation for a given query and library).
Basic information
More Search MCP servers
SearXNG MCP Server
ihor-sokoliukPrivate web search for AI assistants via SearXNG — supports Claude, Cursor, and any MCP client
Version 2.0 is here!!
mixelpixxMCP Server built for use with Claude Code, Claude Desktop, VS Code, Cline - enable google search and ability to follow links and research websites
Google Search MCP Server
mixelpixxMCP Server built for use with Claude Code, Claude Desktop, VS Code, Cline - enable google search and ability to follow links and research websites
Perplexity MCP Server
wysh3MCP web search using perplexity without any API KEYS
Google Search Console MCP Server
ahonnA Model Context Protocol (MCP) server providing access to Google Search Console
Comments