Python Docs MCP Server

Local, read-only MCP retrieval over official Python standard library docs.

Remote serverstreamable-httpPython

What is the Python Docs MCP Server?

Local, read-only MCP retrieval over official Python standard library docs.

What the server does

Built for the moment your agent needs asyncio.TaskGroup signatures, pathlib.Path semantics, or what changed in 3.12 — not a web fetch, not a hosted API, not a vector store hallucinating section anchors. Just an indexed slice of docs.python.org, returned by symbol or by query, scoped to the version you actually ship on.

  • asyncio.TaskGroup should resolve to the actual symbol, not a fuzzy page hit
  • Python version matters (3.12 and 3.13 do not always say the same thing)
  • fetching a whole page burns tokens when one section answers the question
  • the official docs are canonical, but they do not ship as an MCP server

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
search_docsSearch Python stdlib docs by query. Supports symbol lookup (asyncio.TaskGroup), module search (json), and free-text search. Returns ranked hits with BM25 scoring and snippet excerpts.
get_docsRetrieve a specific documentation page or section by slug and optional anchor. Returns markdown content with budget-enforced truncation and pagination. Retrieved results are cached on disk by Python docs version and requ
lookup_package_docsLook up official PyPI package metadata and return package-declared documentation/homepage/source URLs. This is a controlled PyPI metadata lookup, not generic web search.
list_versionsList all indexed Python versions with metadata.
detect_python_versionDetect the user's local Python version and report whether that version has been indexed.
compare_versionsDiff a Python stdlib symbol between two indexed versions. Returns change=added

How to install the Python Docs MCP Server

{
  "mcpServers": {
    "python-docs": {
      "command": "C:\\Users\\YOU\\.local\\bin\\uvx.exe",
      "args": ["python-docs-mcp-server"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • “Use Python Docs to search docs.”
  • “Use Python Docs to get docs.”
  • “Use Python Docs to lookup package docs.”

Frequently asked questions

Local, read-only MCP retrieval over official Python standard library docs. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.