xenodocs-mcp-server
OfficialProvides search capabilities for FastAPI documentation, allowing users to retrieve up-to-date code examples and API references.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@xenodocs-mcp-serverSearch for 'async requests' in httpx docs"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
XenoDocs MCP - Up-to-date Documentation For Any Library
❌ 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
Related MCP server: Context7 MCP
✅ 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 documentationFind examples of async functions in the httpx libraryXenoDocs 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-serverMethod 2: Using pip
pip install xenodocs-mcp-serverAdd 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": []
}Add to your Cursor MCP configuration (~/.cursor/mcp.json):
{
"mcpServers": {
"xenodocs": {
"command": "uvx",
"args": ["xenodocs-mcp-server"],
"env": {
"XENODOCS_API_KEY": "YOUR_API_KEY"
}
}
}
}Add to your Claude Desktop configuration:
{
"mcpServers": {
"xenodocs": {
"command": "uvx",
"args": ["xenodocs-mcp-server"],
"env": {
"XENODOCS_API_KEY": "YOUR_API_KEY"
}
}
}
}Add to your Windsurf MCP configuration:
{
"mcpServers": {
"xenodocs": {
"command": "uvx",
"args": ["xenodocs-mcp-server"],
"env": {
"XENODOCS_API_KEY": "YOUR_API_KEY"
}
}
}
}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 fortop_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 inquery(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 syncSet your API key:
export XENODOCS_API_KEY="your-api-key"Run the server:
uv run xenodocs-mcp-serverTesting with MCP Inspector
npx @modelcontextprotocol/inspector uv run xenodocs-mcp-server🚨 Troubleshooting
If you get "command not found" errors:
For uv projects: Make sure you're in a directory with a
pyproject.tomlfileFor pip installation: Use the Python module method:
{ "command": "python", "args": ["-m", "xenodocs_mcp_server.server"] }
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.
Restart your MCP client completely
Check that your installation method is working by running the command manually
Check client output/logs for MCP connection errors
Verify you have the correct Python version (>=3.10)
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Xenodocs/xenodocs-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server