detect_python_version
Detect the user's local Python version and report whether that version has been indexed.
How to use it
detect_python_version is exposed by the Python Docs MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the detect_python_version tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Python Docs MCP Server
uvx python-docs-mcp-serverOther tools in Python Docs MCP Server (5)
Diff a Python stdlib symbol between two indexed versions. Returns change=added
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 request identity.
List all indexed Python versions with metadata.
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.
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.