compare_versions
Diff a Python stdlib symbol between two indexed versions. Returns change=added
How to use it
compare_versions 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 compare_versions 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)
Detect the user's local Python version and report whether that version has been indexed.
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.