# python-docs MCP server

> Provides AI agents with live CPython standard library documentation and PyPI package metadata in clean markdown format.

- Repository: https://github.com/KEEPEE/python-docs-mcp
- Page: https://hostedmcp.org/servers/keepee/python-docs-mcp
- Transport: —
- Stars: 0
- License: MIT

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `PYTHON_DOCS_MCP_CACHE_DIR` | no | no |  |
| `PYTHON_DOCS_MCP_POLITENESS_DISABLED` | no | no |  |
| `PYTHON_DOCS_MCP_PYPI_JSON_OPT_IN` | no | no |  |

## Tools (5)

- `python_docs`
- `python_search`
- `pypi_package`
- `python_status`
- `health_check`

## FAQ

### How does the search function work for standard library modules?

It uses a local ranked search index over all 229 stdlib modules, searching both module names and their descriptions.

### Does the server handle large PyPI READMEs?

Yes, the README content is capped by a max_tokens parameter to prevent overwhelming the AI's context window.

### Is there a cache to speed up repeated requests?

Yes, it uses a SQLite TTL cache so that repeated lookups are instant.
