A server that enables Claude to search and access documentation from popular libraries like LangChain, LlamaIndex, and OpenAI directly within conversations.
A Model Context Protocol (MCP) server that enables Claude to search and access documentation from popular libraries like LangChain, LlamaIndex, and OpenAI directly within conversations.
MCP (Model Context Protocol) is an open protocol that standardizes how applications provide context to Large Language Models. Think of it as a universal connector that lets AI assistants like Claude access external data sources and tools.
get_docs
tooluv
package managercurl -LsSf https://astral.sh/uv/install.sh | sh
# Clone or download the project cd documentation # Create and activate virtual environment uv venv # On Windows: .venv\Scripts\activate # On macOS/Linux: source .venv/bin/activate # Install dependencies uv pip install -e .
Create a .env
file in the project directory with your Serper API key:
SERPER_API_KEY=your_serper_api_key_here
You can get a Serper API key by signing up at serper.dev.
Edit your Claude Desktop configuration file at:
Windows: /C:/Users/[Your Username]/AppData/Roaming/Claude/claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Add the following to the mcpServers
section:
"documentation": { "command": "uv", "args": [ "--directory", "/ABSOLUTE/PATH/TO/YOUR/documentation", "run", "main.py" ] }
Replace /ABSOLUTE/PATH/TO/YOUR/documentation
with the absolute path to your project directory.
Close and reopen Claude Desktop to apply the new configuration.
Once connected, you can ask Claude to use the documentation tool:
"Can you look up information about vector stores in LangChain documentation?"
Claude will use the get_docs
tool to search for relevant information and provide you with documentation excerpts.
The get_docs
tool accepts the following parameters:
query
: The search term (e.g., "vector stores", "embedding models")library
: Which library to search (langchain, llama-index, or openai)max_chars
: Maximum characters to return (default: 1000)/C:/Users/fcbsa/AppData/Roaming/Claude/claude_desktop_config.json
is correctThis project is provided as an educational example of MCP server implementation.
This MCP server enhances Claude's capabilities by providing direct access to documentation resources. Explore, learn, and build better AI applications with contextual knowledge from the docs!
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!