Local, read-only MCP retrieval over official Python standard library docs.
Connect Python Docs to Claude, Cursor or any other MCP client and it stops being a tab you switch to. Local, read-only MCP retrieval over official Python standard library docs. The python docs mcp server is what makes that connection.
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.
Because this one is hosted, setup is mostly authentication — you point your client at the endpoint and approve access. Nothing runs on your machine, so there is no runtime to keep patched.
The toolset is worth reading before you wire it up, because it tells you what the integration is really for:
search_docs — Search Python stdlib docs by query. Supports symbol lookup (asyncio.TaskGroup), module search (json), and free-text search. Returns ranked hits withget_docs — Retrieve a specific documentation page or section by slug and optional anchor. Returns markdown content with budget-enforced truncation andlookup_package_docs — Look up official PyPI package metadata and return package-declared documentation/homepage/source URLs. This is a controlled PyPI metadata lookup, notlist_versions — List all indexed Python versions with metadatadetect_python_version — Detect the user's local Python version and report whether that version has been indexedcompare_versions — Diff a Python stdlib symbol between two indexed versions. Returns change=addedCursor — Add this to your Cursor MCP settings (.cursor/mcp.json in your project or global settings):Codex — The Codex tool exposed by this serverAmong the knowledge and memory options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Python Docs's toolset — search_docs, get_docs, lookup_package_docs and 5 more — is a fair guide to whether it matches your workflow. It is maintained by ayhammouda; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| search_docs | Search 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_docs | Retrieve 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_docs | Look 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_versions | List all indexed Python versions with metadata. |
| detect_python_version | Detect the user's local Python version and report whether that version has been indexed. |
| compare_versions | Diff a Python stdlib symbol between two indexed versions. Returns change=added |
| Cursor | Add this to your Cursor MCP settings (.cursor/mcp.json in your project or global settings): |
| Codex | The Codex tool exposed by this 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.
A knowledge graph your assistant keeps between sessions — entities, relations and observations that persist.
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Your workspace, on speaking terms with AI — search, read and write Notion pages and databases.
A structured scratchpad for hard problems — stepwise reasoning with revisions, branches and visible logic.
Symbol-level code navigation, refactoring and memory for coding agents — the IDE brain your assistant has been missing.
Chat with your second brain — search, read and write vault notes through the Local REST API.