Python Docs Server

by AnuragRai017
Verified

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Utilizes the Brave Search API to fetch relevant Python documentation links based on user queries

  • Provides tools to search and retrieve Python documentation to answer specific queries about the Python programming language

python-docs-server MCP 服务器

模型上下文协议服务器

这是一个基于 TypeScript 的 MCP 服务器,它提供使用 Brave Search API 获取 Python 文档的工具。

特征

工具

  • get_python_docs - 获取给定查询的 Python 文档
    • 将搜索查询作为必需参数
    • 使用 Brave Search API 获取相关文档链接

发展

安装依赖项:

npm install

构建服务器:

npm run build

对于使用自动重建的开发:

npm run watch

安装

要与 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

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

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

MCP 服务器使用户能够通过自然语言查询使用 Brave Search API 获取 Python 文档。

  1. Features
    1. Tools
  2. Development
    1. Installation
      1. Debugging
    ID: 8xhmttyi7e