Documentation Search MCP server

Enables searching and retrieving up-to-date content from popular documentation sites including LangChain, LlamaIndex, and OpenAI through Google search integration and content processing.
Back to servers
Provider
Satadru Chanda
Release date
Apr 13, 2025
Language
Python
Stats
1 star

The Documentation MCP Server is an implementation of the Model Context Protocol that allows Claude to search and access documentation from popular libraries like LangChain, LlamaIndex, and OpenAI during conversations. This tool enables Claude to provide more accurate and relevant information by searching through documentation in real-time.

System Requirements

  • Python 3.11 or higher
  • uv package manager
  • A Serper API key

Installation Process

Install uv Package Manager

curl -LsSf https://astral.sh/uv/install.sh | sh

Set Up the Project

# 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 .

Configure the Serper API Key

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 https://serper.dev.

Configure Claude Desktop

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.

Complete Setup

Restart Claude Desktop to apply the new configuration.

Using the Documentation Tool

Once connected, you can ask Claude to search through documentation using natural language:

"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.

Tool Parameters

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)

Troubleshooting

If you encounter issues with the MCP server:

  • Claude can't find the server: Verify the path in the Claude Desktop configuration file is correct
  • Search returns no results: Check your Serper API key and internet connection
  • Timeout errors: The server might be experiencing connectivity issues or rate limits

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later