MCP Server for Documentation Search

MCP Server for Documentation Search

By deepmihir GitHub

-

mcp server
Overview

MCP Server for Documentation Search is a custom server that allows users to search through documentation for popular Python libraries such as LangChain, LlamaIndex, and OpenAI using the Model Control Protocol (MCP).

How to use MCP Server?

To use the MCP Server, you need to install the uv package manager, set up the project, and run the server. After that, you can connect it to Claude Desktop for documentation searches.

Key features of MCP Server?

  • Search documentation for specific queries across supported libraries.
  • Integration with Google Search API via Serper for finding relevant documentation pages.
  • Web scraping capabilities to extract content from documentation pages.
  • Designed to work seamlessly with Claude Desktop through MCP.

Use cases of MCP Server?

  1. Searching for specific functions or classes in Python libraries.
  2. Finding relevant documentation quickly without manual browsing.
  3. Assisting developers in understanding library usage through direct queries.

FAQ from MCP Server?

  • What libraries does the MCP Server support?

It supports popular Python libraries including LangChain, LlamaIndex, and OpenAI.

  • Is there a specific Python version required?

Yes, Python 3.10 or higher is required to run the MCP Server.

  • How do I troubleshoot connection issues with Claude Desktop?

Check the configuration file path, verify the absolute path, ensure uv is installed, and check Claude Desktop logs for errors.

Content

MCP Server for Documentation Search

This project implements a custom MCP (Model Control Protocol) server that enables Claude to search through documentation for popular Python libraries including LangChain, LlamaIndex, and OpenAI.

Features

  • Search documentation for specific queries across supported libraries
  • Integration with Google Search API via Serper for finding relevant documentation pages
  • Web scraping capabilities to extract content from documentation pages
  • Designed to work with Claude Desktop through MCP

System Requirements

  • Python 3.10 or higher
  • MCP SDK 1.2.0 or higher
  • uv package manager

Getting Started

Installing uv Package Manager

On MacOS/Linux:

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

On Windows:

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Make sure to restart your terminal afterwards to ensure that the uv command gets picked up. For more information about uv package manager visit : https://docs.astral.sh

Project Setup

  1. Create and initialize the project:
# Create a new directory for our project
uv init mcp-server
cd mcp-server

# Create virtual environment and activate it
uv venv
source .venv/bin/activate  # On Windows use: .venv\Scripts\activate

# Install dependencies
uv add "mcp[cli]" httpx
  1. Create the server implementation file:
touch main.py

Running the Server

  1. Start the MCP server:
uv run main.py
  1. The server will start and be ready to accept connections

Connecting to Claude Desktop

  1. Install Claude Desktop from the official website
  2. Configure Claude Desktop to use your MCP server:

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
    "mcpServers": {
        "mcp-server": {
            "command": "uv",  # It's better to use the absolute path to the uv command
            "args": [
                "--directory",
                "/ABSOLUTE/PATH/TO/YOUR/mcp-server",
                "run",
                "main.py"
            ]
        }
    }
}
  1. Restart Claude Desktop

Troubleshooting

If your server isn't being picked up by Claude Desktop:

  1. Check the configuration file path and permissions
  2. Verify the absolute path in the configuration is correct
  3. Ensure uv is properly installed and accessible
  4. Check Claude Desktop logs for any error messages
No tools information available.

This is a basic MCP Server-Client Impl using SSE

mcp server-client
View Details

-

mcp model-context-protocol
View Details

Buttplug.io Model Context Protocol (MCP) Server

mcp buttplug
View Details

MCP web search using perplexity without any API KEYS

mcp puppeteer
View Details

free MCP server hosting using vercel

mcp mantle-network
View Details

MCPHubs is a website that showcases projects related to Anthropic's Model Context Protocol (MCP)

mcp mcp-server
View Details