Skip to main content
Glama
Documentation Search MCP Server

Documentation Search MCP Server

by gemini2026

Documentation Search MCP Server

CI Security Scan PyPI version Python 3.12+ License: MIT

MCP server for searching documentation, scanning dependencies for vulnerabilities, and generating project boilerplate. Works with Claude Desktop, Cursor, and other MCP clients.

📚 Read the comprehensive tutorial for detailed examples and workflows.

Features

  • Search 190+ curated documentation sources with optional semantic vector search

  • Scan Python projects for vulnerabilities (Snyk, Safety, OSV)

  • Generate FastAPI and React project starters

  • Learning paths and code examples

Related MCP server: docs-mcp-server

Installation

# Recommended: use uvx (install uv from https://docs.astral.sh/uv)
uvx documentation-search-enhanced@1.9.0

# Or with pip in a virtual environment
pip install documentation-search-enhanced==1.9.0

# Optional: AI semantic search (Python 3.12 only, adds ~600MB)
pip install documentation-search-enhanced[vector]==1.9.0

Configuration

Claude Desktop

Find your uvx path: which uvx

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

{
  "mcpServers": {
    "documentation-search-enhanced": {
      "command": "/Users/yourusername/.local/bin/uvx",
      "args": ["documentation-search-enhanced@1.9.0"],
      "env": {
        "SERPER_API_KEY": "optional_key_here"
      }
    }
  }
}

Replace /Users/yourusername/.local/bin/uvx with your actual uvx path.

Codex CLI

# Find your uvx path first
which uvx

# Then add with full path (replace with your actual path)
codex mcp add documentation-search-enhanced \
  -- /Users/yourusername/.local/bin/uvx documentation-search-enhanced@1.9.0

# Or if uvx is in PATH:
codex mcp add documentation-search-enhanced \
  -- uvx documentation-search-enhanced@1.9.0

With SERPER API Key (enables live web search):

codex mcp add documentation-search-enhanced \
  --env SERPER_API_KEY=your_key_here \
  -- /Users/yourusername/.local/bin/uvx documentation-search-enhanced@1.9.0

Without SERPER API Key (uses prebuilt index from GitHub Releases):

codex mcp add documentation-search-enhanced \
  -- /Users/yourusername/.local/bin/uvx documentation-search-enhanced@1.9.0

If you get a timeout on first run, pre-download dependencies:

uvx documentation-search-enhanced@1.9.0

Environment Variables

  • SERPER_API_KEY - Optional. Enables live web search. Without it, uses prebuilt index from GitHub Releases.

  • DOCS_SITE_INDEX_AUTO_DOWNLOAD - Set to false to disable automatic index downloads

  • DOCS_SITE_INDEX_PATH - Custom path for documentation index

Set server_config.features.real_time_search=false in your config to disable live crawling.

Semantic Search (Optional)

The [vector] extra adds semantic search using sentence-transformers (all-MiniLM-L6-v2) with hybrid reranking:

  • 50% semantic similarity (cosine)

  • 30% keyword matching

  • 20% source authority

Only works on Python 3.12 (PyTorch limitation). Python 3.13 users get keyword-based search.

To disable vector search even when installed:

semantic_search(query="FastAPI auth", libraries=["fastapi"], use_vector_rerank=False)

Available Tools

Core MCP tools:

  • semantic_search - Search documentation

  • get_docs - Fetch specific documentation

  • get_learning_path - Generate learning roadmap

  • get_code_examples - Find code snippets

  • scan_project_dependencies - Vulnerability scan

  • snyk_scan_project - Detailed Snyk analysis

  • generate_project_starter - Create project boilerplate

  • manage_dev_environment - Generate docker-compose files

  • compare_library_security - Compare library vulnerabilities

Development

git clone https://github.com/anton-prosterity/documentation-search-mcp.git
cd documentation-search-mcp
uv sync --all-extras
uv run python -m documentation_search_enhanced.main

Testing

uv run pytest --ignore=pytest-test-project  # Core tests
uv run ruff check src                       # Linting
uv run ruff format src --check              # Format check

Configuration

Use the get_current_config tool to export current settings to config.json. Validate with:

uv run python src/documentation_search_enhanced/config_validator.py

Contributing

See CONTRIBUTING.md for guidelines. Use Conventional Commits for commit messages.

License

MIT License - see LICENSE for details.

Available Tools

23 tools
clear_cacheA
Clear the documentation cache to force fresh fetches.

Returns:
    Status message about cache clearing

Inputs: no named parameters.

compare_library_securityB
Compare security scores across multiple libraries to help with selection.

Args:
    libraries: List of library names to compare
    ecosystem: Package ecosystem for all libraries

Returns:
    Security comparison with rankings and recommendations

Inputs: libraries (required), ecosystem.

generate_project_starterA
Generates a starter project from a template (e.g., 'fastapi', 'react-vite').

Args:
    project_name: The name for the new project directory.
    template: The project template to use.

Returns:
    A summary of the created project structure.

Inputs: template (required), project_name (required).

get_cache_statsA
Get statistics about the current cache usage.

Returns:
    Dictionary with cache statistics

Inputs: no named parameters.

get_code_examplesA
Get curated code examples for a specific topic and library.

Args:
    library: The library to search for examples
    topic: The specific topic or feature
    language: Programming language for examples
    version: Library version to search (e.g., "4.2", "stable", "latest"). Default: "latest"
    auto_detect_version: Automatically detect installed package version. Default: False

Returns:
    Curated code examples with explanations

Inputs: topic (required), library (required), version, language, +1 more.

get_current_configB

Returns the current, active configuration of the MCP server. This allows users to view the default config and use it as a template for local overrides.

Inputs: no named parameters.

get_docsB
Search documentation for a given query and one or more libraries.

Args:
    query: The query to search for (e.g., "Chroma DB")
    libraries: A single library or a list of libraries to search in (e.g., "langchain" or ["fastapi", "django"])
    version: Library version to search (e.g., "4.2", "stable", "latest"). Default: "latest"
    auto_detect_version: Automatically detect installed package version. Default: False

Returns:
    Dictionary with structured summaries and supporting metadata

Inputs: query (required), libraries (required), version, auto_detect_version.

get_environment_configB
Get current environment configuration and settings.

Returns:
    Current environment configuration details

Inputs: no named parameters.

get_learning_pathA
Get a structured learning path for a library based on experience level.

Args:
    library: The library to create a learning path for
    experience_level: Your current level ("beginner", "intermediate", "advanced")

Returns:
    Structured learning path with progressive topics and resources

Inputs: library (required), experience_level.

get_security_summaryA
Get quick security overview for a library without detailed vulnerability list.

Args:
    library_name: Name of the library
    ecosystem: Package ecosystem (default: PyPI)

Returns:
    Concise security summary with score and basic recommendations

Inputs: library_name (required), ecosystem.

health_checkA
Check the health and availability of documentation sources.

Returns:
    Dictionary with health status of each library's documentation site

Inputs: no named parameters.

manage_dev_environmentC
Manages local development environments using Docker Compose.

Args:
    service: The service to set up (e.g., 'postgres', 'redis').
    project_path: The path to the project directory.

Returns:
    A confirmation message with the next steps.

Inputs: service (required), project_path.

preindex_docsB

Pre-download and persist docs site indexes for Serper-free search.

This caches MkDocs/Sphinx search indexes (and optionally sitemaps) to disk so the server can search supported documentation sites without requiring Serper.

Inputs: libraries (required), persist_path, include_sitemap, max_concurrent_sites.

scan_library_vulnerabilitiesA
Comprehensive vulnerability scan using OSINT sources (OSV, GitHub Advisories, Safety DB).

Args:
    library_name: Name of the library to scan (e.g., "fastapi", "react")
    ecosystem: Package ecosystem ("PyPI", "npm", "Maven", "Go", etc.)

Returns:
    Detailed security report with vulnerabilities, severity levels, and recommendations

Inputs: library_name (required), ecosystem.

scan_project_dependenciesA
Scans project dependencies from files like pyproject.toml or requirements.txt for vulnerabilities.

Args:
    project_path: The path to the project directory (defaults to current directory).

Returns:
    A comprehensive security report of all project dependencies.

Inputs: project_path.

snyk_license_checkA
Check license compliance for project dependencies using Snyk.

Args:
    project_path: Path to the project directory
    policy: License policy to apply ("permissive", "copyleft-limited", "strict")

Returns:
    License compliance report with risk assessment

Inputs: policy, project_path.

snyk_monitor_projectB
Set up continuous monitoring for a project with Snyk.

Args:
    project_path: Path to the project directory

Returns:
    Status of monitoring setup and project details

Inputs: project_path.

snyk_scan_libraryB
Scan a library using Snyk for comprehensive security analysis.

Args:
    library_name: Name of the library to scan
    version: Version of the library (default: "latest")
    ecosystem: Package ecosystem ("pypi", "npm", "maven", etc.)

Returns:
    Detailed security report from Snyk including vulnerabilities, licenses, and remediation advice

Inputs: library_name (required), version, ecosystem.

snyk_scan_projectC
Scan entire project dependencies using Snyk.

Args:
    project_path: Path to the project directory (default: current directory)

Returns:
    Comprehensive security report for all project dependencies

Inputs: project_path.

suggest_librariesA
Suggest libraries based on partial input for auto-completion.

Args:
    partial_name: Partial library name to search for (e.g. "lang" -> ["langchain"])

Returns:
    List of matching library names

Inputs: partial_name (required).

suggest_secure_librariesB
Enhanced library suggestions that include security scores for informed decisions.

Args:
    partial_name: Partial library name to search for
    include_security_score: Whether to include security scores (slower but more informative)

Returns:
    Library suggestions with optional security information

Inputs: partial_name (required), include_security_score.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.9/5.0

    Scored across 23 tools

    Disambiguation2/5

    The tool set mixes documentation search tools (get_docs, semantic_search, filtered_search) with security scanning (scan_library_vulnerabilities, multiple snyk tools) and other utilities (manage_dev_environment, generate_project_starter), causing confusion. Several search tools have overlapping purposes, and multiple security tools differ only in target (library vs. project, Snyk vs. OSINT).

    Naming Consistency2/5

    Tool names use inconsistent patterns: some are verb_noun (clear_cache, get_docs), others are adjective_noun (semantic_search, filtered_search) or brand-specific (snyk_scan_library). While all use underscores, the lack of a consistent verb style harms predictability.

    Tool Count2/5

    23 tools is excessive for a 'Documentation Search' server. Many tools (e.g., manage_dev_environment, snyk_monitor_project, generate_project_starter) are unrelated to the primary purpose, making the surface feel bloated and unfocused.

    Completeness2/5

    For documentation search, the server covers search, filtering, semantic search, examples, and learning paths, but it lacks update or CRUD operations. The inclusion of many security and utility tools suggests the surface is not well-scoped for its stated name, leaving gaps in documentation coverage and adding irrelevant functions.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      A
      maintenance
      A Model Context Protocol (MCP) server that scrapes, indexes, and searches documentation for third-party software libraries and packages, supporting versioning and hybrid search.
      12
      2,728 npm
      1,912
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      A flexible Model Context Protocol server that makes documentation or codebases searchable by AI assistants, allowing users to chat with code or docs by simply pointing to a git repository or folder.
      1
      93
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      A Model Context Protocol server that fetches up-to-date, version-specific documentation and code examples from libraries directly into LLM prompts, helping developers get accurate answers without outdated or hallucinated information.
      2
      65,524
      MIT