webscraped-docs-mcp

Prakash2459/webscraped-docs-mcp

3.1

If you are the rightful owner of webscraped-docs-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

The MCP Web-Scraped Documentation Server is a fast and efficient server designed to search and retrieve documentation from LangChain, LlamaIndex, and OpenAI through a unified API.

MCP Web-Scraped Documentation Server

A fast MCP (Model Context Protocol) server for searching and retrieving documentation from LangChain, LlamaIndex, and OpenAI official sources via a unified API.

Features

  • Unified API for documentation search
  • Supports LangChain, LlamaIndex, and OpenAI
  • Returns up-to-date documentation snippets
  • Asynchronous and efficient

Supported Libraries

Usage

  1. Start the server:
    python main.py
    
  2. Use the get_docs tool to query documentation:
    • query: Search term (e.g., "Chroma DB")
    • library: One of langchain, llama-index, or openai

Example

result = await get_docs("memory", "langchain")

Environment Variables

  • SERPER_API_KEY: API key for Google Serper search

Installation

  1. Create a uv virtual environment:
    uv venv .venv
    
  2. Activate the virtual environment:
    • On Windows:
      .venv\Scripts\activate
      
    • On macOS/Linux:
      source .venv/bin/activate
      
  3. Install dependencies:
    uv sync
    
  4. Set up .env file with your Serper API key.

MCP Server Configuration Example

Add the following to your MCP configuration (e.g., mcp.json):

{
   "servers": {
      "documentation": {
         "command": "uv",
         "args": [
            "--directory",
            "D:/projects/mcp/documentation",
            "run",
            "main.py"
         ]
      }
   }
}

License

MIT