xenodocs-mcp-server
Fetches up-to-date, version-specific documentation and code examples for any library, preventing outdated or hallucinated API usage in LLM responses.
README
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
✅ 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
<details> <summary><b>Install in VS Code</b></summary>
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": []
}
</details>
<details> <summary><b>Install in Cursor</b></summary>
Add to your Cursor MCP configuration (~/.cursor/mcp.json):
{
"mcpServers": {
"xenodocs": {
"command": "uvx",
"args": ["xenodocs-mcp-server"],
"env": {
"XENODOCS_API_KEY": "YOUR_API_KEY"
}
}
}
}
</details>
<details> <summary><b>Install in Claude Desktop</b></summary>
Add to your Claude Desktop configuration:
{
"mcpServers": {
"xenodocs": {
"command": "uvx",
"args": ["xenodocs-mcp-server"],
"env": {
"XENODOCS_API_KEY": "YOUR_API_KEY"
}
}
}
}
</details>
<details> <summary><b>Install in Windsurf</b></summary>
Add to your Windsurf MCP configuration:
{
"mcpServers": {
"xenodocs": {
"command": "uvx",
"args": ["xenodocs-mcp-server"],
"env": {
"XENODOCS_API_KEY": "YOUR_API_KEY"
}
}
}
}
</details>
<details> <summary><b>Install in Zed</b></summary>
Add to your Zed settings.json:
{
"context_servers": {
"xenodocs": {
"source": "custom",
"command": "uvx",
"args": ["xenodocs-mcp-server"],
"env": {
"XENODOCS_API_KEY": "YOUR_API_KEY"
}
}
}
}
</details>
🔨 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 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
<details> <summary><b>Command Not Found Errors</b></summary>
If you get "command not found" errors:
- For uv projects: Make sure you're in a directory with a
pyproject.tomlfile - For pip installation: Use the Python module method:
{ "command": "python", "args": ["-m", "xenodocs_mcp_server.server"] }
</details>
<details> <summary><b>API Key Not Found Error</b></summary>
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.
</details>
<details> <summary><b>General MCP Client Errors</b></summary>
- 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)
</details>
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。