Skip to main content

MCP server for XenoDocs - Access up-to-date documentation for newly released packages using AI.

Project description

XenoDocs MCP - Up-to-date Documentation For Any Library

Website PyPI Version MIT licensed

❌ Without XenoDocs

LLMs rely on outdated or generic information about the libraries you use. You get:

  • ❌ Code examples are outdated and based on year-old training data
  • ❌ Hallucinated APIs that don't even exist
  • ❌ Generic answers for old package versions

✅ With XenoDocs

XenoDocs MCP pulls up-to-date, version-specific documentation and code examples straight from the source — and places them directly into your prompt.

Tell your AI assistant to search for library documentation:

Search for "authentication middleware" in the FastAPI library documentation
Find examples of async functions in the httpx library

XenoDocs fetches up-to-date code examples and documentation right into your LLM's context.

  • 1️⃣ Write your prompt naturally
  • 2️⃣ Ask for specific library documentation
  • 3️⃣ Get working code answers

No tab-switching, no hallucinated APIs that don't exist, no outdated code generation.

�️ Installation

Requirements

  • Python >= 3.10
  • VS Code, Cursor, Claude Desktop, or another MCP Client
  • XenoDocs API Key (Get yours by creating an account at xenodocs.com/account/api-keys

Method 1: Using uv (Recommended)

uv add xenodocs-mcp-server

Method 2: Using pip

pip install xenodocs-mcp-server
Install in VS Code

Add this to your VS Code MCP config file (.vscode/mcp.json). See VS Code MCP docs for more info.

VS Code Local Server Connection

{
  "servers": {
    "xenodocs-mcp-server": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "xenodocs-mcp-server"
      ],
      "env": {
        "XENODOCS_API_KEY": "YOUR_API_KEY"
      }
    }
  },
  "inputs": []
}

Alternative configurations:

Using uv project:

{
  "servers": {
    "xenodocs-mcp-server": {
      "type": "stdio",
      "command": "uv",
      "args": ["run", "xenodocs-mcp-server"],
      "env": {
        "XENODOCS_API_KEY": "YOUR_API_KEY"
      }
    }
  },
  "inputs": []
}

Using Python module:

{
  "servers": {
    "xenodocs-mcp-server": {
      "type": "stdio",
      "command": "python",
      "args": ["-m", "xenodocs_mcp_server.server"],
      "env": {
        "XENODOCS_API_KEY": "YOUR_API_KEY"
      }
    }
  },
  "inputs": []
}
Install in Cursor

Add to your Cursor MCP configuration (~/.cursor/mcp.json):

{
  "mcpServers": {
    "xenodocs": {
      "command": "uvx",
      "args": ["xenodocs-mcp-server"],
      "env": {
        "XENODOCS_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}
Install in Claude Desktop

Add to your Claude Desktop configuration:

{
  "mcpServers": {
    "xenodocs": {
      "command": "uvx",
      "args": ["xenodocs-mcp-server"],
      "env": {
        "XENODOCS_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}
Install in Windsurf

Add to your Windsurf MCP configuration:

{
  "mcpServers": {
    "xenodocs": {
      "command": "uvx",
      "args": ["xenodocs-mcp-server"],
      "env": {
        "XENODOCS_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}
Install in Zed

Add to your Zed settings.json:

{
  "context_servers": {
    "xenodocs": {
      "source": "custom",
      "command": "uvx",
      "args": ["xenodocs-mcp-server"],
      "env": {
        "XENODOCS_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

🔨 Available Tools

XenoDocs MCP provides the following tools that LLMs can use:

  • search_library_name: Search for matching library names in the XenoDocs documentation database.

    • library_name (required): The name or partial name of the library to search for
    • top_k (optional): Maximum number of matching libraries to return (default: 3, max: 20)
  • search_library: Search for specific information within a library's documentation.

    • library_name (required): The exact name of the library to search in
    • query (required): The search query describing what you're looking for

💻 Development

Clone the project and install dependencies:

git clone https://github.com/Xenodocs/xenodocs-mcp-server.git
cd xenodocs-mcp-server
uv sync

Set your API key:

export XENODOCS_API_KEY="your-api-key"

Run the server:

uv run xenodocs-mcp-server

Testing with MCP Inspector

npx @modelcontextprotocol/inspector uv run xenodocs-mcp-server

🚨 Troubleshooting

Command Not Found Errors

If you get "command not found" errors:

  1. For uv projects: Make sure you're in a directory with a pyproject.toml file
  2. For pip installation: Use the Python module method:
    {
      "command": "python",
      "args": ["-m", "xenodocs_mcp_server.server"]
    }
    
API Key Not Found Error

If you see WARNING: XENODOCS_API_KEY not set!, make sure you've configured the API key in your MCP client configuration or as a system environment variable.

General MCP Client Errors
  1. Restart your MCP client completely
  2. Check that your installation method is working by running the command manually
  3. Check client output/logs for MCP connection errors
  4. Verify you have the correct Python version (>=3.10)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xenodocs_mcp_server-0.1.4.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xenodocs_mcp_server-0.1.4-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file xenodocs_mcp_server-0.1.4.tar.gz.

File metadata

  • Download URL: xenodocs_mcp_server-0.1.4.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for xenodocs_mcp_server-0.1.4.tar.gz
Algorithm Hash digest
SHA256 f2603cbc95a3a2fb9399d273dd7bc6e93e9d35900910fe82fb93d0d304eef86e
MD5 4cfbeae7dab2439f0b3cce68b754dfcc
BLAKE2b-256 165a32d00d23e674ad8374d8bbde609a266eff6143731d8ca48d0f3dd39a290a

See more details on using hashes here.

File details

Details for the file xenodocs_mcp_server-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for xenodocs_mcp_server-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 54e87102082557d797edb8d6c3fdcaf9bfd55104ea00cb4070679e86a67786d5
MD5 792c2ec8b5d6dfaaeadd08ede447289d
BLAKE2b-256 c7ed97284f17d208817b5c083b0437a415e5d0a7d4ca1da74c96b3d90fa24872

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page