mcpField
D
Documentation MCP Server πŸ“šπŸ”

Documentation MCP Server πŸ“šπŸ”

Local
github.com/sagacious-satadruMemory & Knowledge3Updated 81w ago

About Documentation MCP Server πŸ“šπŸ”

A documentation-search MCP server for Claude users who need reference material from LangChain, LlamaIndex, or OpenAI. It searches library-specific web results and extracts relevant page text for conversations.

Key features

  1. 01Search LangChain, LlamaIndex, and OpenAI docs
  2. 02Extract relevant text from HTML pages
  3. 03Limit returned text with a character cap

Use cases

  1. 01Look up vector store documentation
  2. 02Find information about embedding models

MCP support

Exposes a `get_docs` tool to MCP clients. Queries use Serper for site-specific search, then fetch and extract page content.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

Documentation MCP Server πŸ“šπŸ”

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.

What is MCP? πŸ€”

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.

MCP Architecture

MCP Architecture

Features ✨

  • Documentation Search Tool: Search through documentation of popular AI libraries
  • Supported Libraries:
  • Smart Extraction: Intelligently parses HTML content to extract the most relevant information
  • Configurable Results: Limit the amount of text returned based on your needs

How It Works πŸ› οΈ

  1. The server uses the Serper API to perform Google searches with site-specific queries
  2. It fetches the content from the search results
  3. BeautifulSoup extracts the most relevant text from main content areas
  4. Claude can access this information through the get_docs tool

System Requirements πŸ–₯️

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

Setup Instructions πŸš€

1. Install uv Package Manager
curl -LsSf https://astral.sh/uv/install.sh | sh
2. Clone and 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 .
3. 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 serper.dev.

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

5. Restart Claude Desktop

Close and reopen Claude Desktop to apply the new configuration.

Using the Documentation Tool 🧩

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.

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 πŸ› οΈ

  • Claude can't find the server: Verify the path in /C:/Users/fcbsa/AppData/Roaming/Claude/claude_desktop_config.json 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

License πŸ“œ

This project is provided as an educational example of MCP server implementation.

Acknowledgements πŸ™


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!

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.