Python Docs MCP Server
The canonical Python stdlib oracle for AI coding agents — always free, always MIT, token-frugal.
8 stars46 downloads/wk
Reviews
Write oneNobody has reviewed Python Docs MCP Server yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Python Docs MCP Server tools (6)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
compare_versionsDiff a Python stdlib symbol between two indexed versions. Returns change=added|removed|changed|unchanged with optional new_in, changed_in, deprecated_in, signature_delta (advisory), see_also_added/removed, section_diff, and note fields. Both versions must be indexed; otherwise an actionable error names the available versions.
detect_python_versionDetect the Python version in the user's environment. Returns the detected version, how it was found, and whether it matches an indexed documentation set.
get_docsRetrieve a documentation page or specific section. Provide anchor for section-only retrieval (much cheaper). Pagination via start_index.
list_versionsList Python documentation versions available in this index.
lookup_package_docsLook up package-declared docs/homepage/source URLs via official PyPI metadata.
search_docsSearch Python documentation. Use kind='symbol' for API lookups (asyncio.TaskGroup), kind='example' for code samples, kind='auto' otherwise. When version is omitted, searches across all versions. Pass the version from each hit's version field to get_docs for consistent results.
Public scan report
scanner v0.1.9 · 2026-09-26 · same rubric, same numbers if you re-run it
- Code scan37 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 0 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
What the publisher says
From the Python Docs MCP Server repository's README, as published. We do not edit it. Read it on GitHub
python-docs-mcp-server
<!-- mcp-name: io.github.ayhammouda/python-docs-mcp-server -->
For AI coding agents writing Python, python-docs-mcp-server is the canonical Python stdlib oracle: exact symbols, exact sections, exact versions — offline, always free, always MIT, token-frugal.
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.
Why this exists
There is a difference between long context and usable context. Research like the Lost in the Middle study (Liu et al., 2023) found that models struggle to use relevant information buried in the middle of a long input. Pasting an entire documentation page into the model invites that failure. Returning the exact symbol, section, and version keeps the answer in a short, high-signal context instead.
Generic docs retrieval is a rough fit for Python stdlib questions:
- 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
This server indexes the official docs locally and exposes a small set of MCP tools for lookup and section retrieval.
Why use it
- no API keys to manage
- queries run against a local index, not a hosted docs API
- results come from the official Python docs
- the server is read-only at runtime
- fewer dependencies to review in strict environments
What you get
- symbol lookup through Python objects.inv
- page and section retrieval with truncation and pagination
- a local SQLite + FTS5 index; no runtime web scraping
- results for each Python version you index
- six read-only MCP tools
Quick example
Prompt
What does asyncio.TaskGroup do in Python 3.13?
Typical flow
- search_docs("asyncio.TaskGroup", kind="symbol", version="3.13")
- Call get_docs(...) using the slug and anchor returned by the best hit
Result
The model gets the matching symbol and the relevant docs section, not a full-page dump.
30-second demo
Ask your MCP client:
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Install directly
claude mcp add python-docs-mcp-server -- uvx python-docs-mcp-server
Python Docs MCP Server: common questions
- Is Python Docs MCP Server safe?
- Yes, by our scan: it is graded A (92/100). Read the Python Docs MCP Server safety report
- How do I install Python Docs MCP Server?
- It runs on your machine. Copy the Claude Code, Claude Desktop or Cursor config from the install section.
- Does Python Docs MCP Server need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Python Docs MCP Server maintained?
- The last commit was in the last day (2026-09-26). The latest release is v0.3.1.
- What can I use instead of Python Docs MCP Server?
- Servers from other publishers that do the same job: @imqueue MCP server, LatentGate MCP server and Docs MCP server. Compare all Python Docs MCP Server alternatives.
Alternatives to Python Docs MCP Server
Same job from other publishers: the closest match first, then the best rated.
@imqueueSearch @imqueue docs and scaffold typed services & clients from your AI coding agent.not reviewedGrowingA- LatentGateRead large logs, JSON and docs in a fraction of the tokens. Offline, fact-preserving optimizer.not reviewedGrowingA
- DocsAI access to Mapbox docs, API references, style specs, and guides. No token required.not reviewedGrowingA
- Livewire FluxFlux UI component and layout docs for AI coding agents. Live from fluxui.dev, Pro-tier aware.not reviewedGrowingA
Context7Up-to-date code docs for any promptnot reviewedWidely usedA