Price Per TokenPrice Per Token

Docs MCP Server

by arabold

0

About

Grounded Docs MCP Server is an open-source documentation indexing tool that provides AI coding assistants with accurate, version-specific documentation from official sources. It fetches and indexes documentation from websites, GitHub repositories, npm, PyPI, and local files to ground LLM responses in real, up-to-date information rather than outdated training data. Key features: - Fetches documentation on-demand from websites, GitHub repos, local folders, and zip archives - Supports 90+ file formats including PDF, Word, Excel, PowerPoint, EPUB, Jupyter Notebooks, Markdown, and source code files - Queries target exact library versions in your project for version-specific context - Runs entirely locally with no code leaving your network - Works with any MCP-compatible client including Claude, Cline, and other AI assistants - Provides CLI and web interfaces with structured output in JSON or YAML formats - Reduces AI hallucinations by grounding responses in actual documentation

README

Grounded Docs: Your AI's Up-to-Date Documentation Expert

Docs MCP Server solves the problem of AI hallucinations and outdated knowledge by providing a personal, always-current documentation index for your AI coding assistant. It fetches official docs from websites, GitHub, npm, PyPI, and local files, allowing your AI to query the exact version you are using.

✨ Why Grounded Docs MCP Server?

The open-source alternative to Context7, Nia, and Ref.Tools.

  • Up-to-Date Context: Fetches documentation directly from official sources on demand.
  • 🎯 Version-Specific: Queries target the exact library versions in your project.
  • 💡 Reduces Hallucinations: Grounds LLMs in real documentation.
  • 🔒 Private & Local: Runs entirely on your machine; your code never leaves your network.
  • 🧩 Broad Compatibility: Works with any MCP-compatible client (Claude, Cline, etc.).
  • 📁 Multiple Sources: Index websites, GitHub repositories, local folders, and zip archives.
  • 📄 Rich File Support: Processes HTML, Markdown, PDF, Office documents (Word, Excel, PowerPoint), OpenDocument, RTF, EPUB, Jupyter Notebooks, and 90+ source code languages.
  • ---

    📄 Supported Formats

    | Category | Formats | |----------|---------| | Documents | PDF, Word (.docx/.doc), Excel (.xlsx/.xls), PowerPoint (.pptx/.ppt), OpenDocument (.odt/.ods/.odp), RTF, EPUB, FictionBook, Jupyter Notebooks | | Archives | ZIP, TAR, gzipped TAR (contents are extracted and processed individually) | | Web | HTML, XHTML | | Markup | Markdown, MDX, reStructuredText, AsciiDoc, Org Mode, Textile, R Markdown | | Source Code | TypeScript, JavaScript, Python, Go, Rust, C/C++, Java, Kotlin, Ruby, PHP, Swift, C#, and many more | | Data | JSON, YAML, TOML, CSV, XML, SQL, GraphQL, Protocol Buffers | | Config | Dockerfile, Makefile, Terraform/HCL, INI, dotenv, Bazel |

    See Supported Formats for the complete reference including MIME types and processing details.

    ---

    🚀 Quick Start

    CLI First

    For agents and scripts, the CLI is usually the simplest way to use Grounded Docs.

    1. Index documentation (requires Node.js 22+):

    npx @arabold/docs-mcp-server@latest scrape react https://react.dev/reference/react
    

    2. Query the index:

    npx @arabold/docs-mcp-server@latest search react "useEffect cleanup" --output yaml
    

    3. Fetch a single page as Markdown:

    npx @arabold/docs-mcp-server@latest fetch-url https://react.dev/reference/react/useEffect
    

    Output Behavior

  • Structured commands default to clean JSON on stdout in non-interactive runs.
  • Use --output json|yaml|toon to pick a structured format.
  • Plain-text commands such as fetch-url keep their text payload on stdout.
  • Diagnostics go through the shared logger and are kept off stdout in non-interactive runs.
  • Use --quiet to suppress non-error diagnostics or --verbose to enable debug output.
  • Agent Skills

    The skills/ directory contains Agent Skills that teach AI coding assistants how to use the CLI — covering documentation search, index management, and URL fetching.

    MCP Server

    If you want a long-running MCP endpoint for Claude, Cline, Copilot, Gemini CLI, or other MCP clients:

    1. Start the server:

    npx @arabold/docs-mcp-server@latest
    

    2. Open the Web UI at http://localhost:6280 to add documentation.

    3. Connect your AI client by adding this to your MCP settings (e.g., claude_desktop_config.json):

    {
      "mcpServers": {
        "docs-mcp-server": {
          "type": "sse",
          "url": "http://localhost:6280/sse"
        }
      }
    }
    

    See Connecting Clients for VS Code (Cline, Roo) and other setup options.

    Alternative: Run with Docker

    docker run --rm \
      -v docs-mcp-data:/data \
      -v docs-mcp-config:/config \
      -p 6280:6280 \
      ghcr.io/arabold/docs-mcp-server:latest \
      --protocol http --host 0.0.0.0 --port 6280
    

    🧠 Configure Embedding Model (Recommended)

    Using an embedding model is optional but dramatically improves search quality by enabling semantic vector search.

    Example: Enable OpenAI Embeddings

    OPENAI_API_KEY="sk-proj-..." npx @arabold/docs-mcp-server@latest
    

    See Embedding Models for configuring Ollama, Gemini, Azure, and others.

    ---

    📚 Documentation

    Getting Started

  • Installation: Detailed setup guides for Docker, Node.js (npx), and Embedded mode.
  • Connecting Clients: How to connect Claude, VS Code (Cline/Roo), and other MCP clients.
  • **[Basic Usage](docs/guid
  • Related MCP Servers

    AI Research Assistant

    AI Research Assistant

    hamid-vakilzadeh

    AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar

    Web & Search
    12 8
    Linkup

    Linkup

    LinkupPlatform

    Linkup is a real-time web search and content extraction service that enables AI assistants to search the web and retrieve information from trusted sources. It provides source-backed answers with citations, making it ideal for fact-checking, news gathering, and research tasks. Key features of Linkup: - Real-time web search using natural language queries to find current information, news, and data - Page fetching to extract and read content from any webpage URL - Search depth modes: Standard for direct-answer queries and Deep for complex research across multiple sources - Source-backed results with citations and context from relevant, trustworthy websites - JavaScript rendering support for accessing dynamic content on JavaScript-heavy pages

    Web & Search
    2 24
    Math-MCP

    Math-MCP

    EthanHenrickson

    Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support

    Developer Tools
    22 81