Back to MCP directory
publicPublicdnsLocal runtime

AnuragRai017_python-docs-server-MCP-Server

一个基于TypeScript的MCP服务器,提供Python文档搜索功能

article

README

🚀 Python-docs-server MCP 服务器

Python-docs-server MCP 服务器是一个基于模型上下文协议(MCP)的服务器,主要用于获取Python文档。它使用TypeScript编写,借助Brave Search API提供工具,能高效地获取所需的Python文档。

✨ 主要特性

工具

  • get_python_docs:该工具可获取给定查询的Python文档。
    • 它需要接收搜索查询作为必需参数。
    • 利用Brave Search API来获取相关文档链接。

📦 安装指南

开发环境依赖安装

npm install

服务器构建

npm run build

带有自动重建的开发模式

npm run watch

与Claude Desktop配合使用的安装步骤

要与Claude Desktop一起使用,需添加服务器配置:

  • 在MacOS上:配置文件路径为 ~/Library/Application Support/Claude/claude_desktop_config.json
  • 在Windows上:配置文件路径为 %APPDATA%/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "python-docs-server": {
      "command": "/path/to/python-docs-server/build/index.js"
    }
  }
}

调试说明

由于MCP服务器通过stdio通信,调试可能具有挑战性。我们建议使用MCP Inspector,它作为包脚本可用:

npm run inspector

Inspector将提供一个访问浏览器中的调试工具的URL。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client