A Model Context Protocol (MCP) server for querying PyPI package information, dependencies, and compatibility checking.
If you want an AI assistant working directly with Pypi Query, the pypi query mcp server is the bridge. A Model Context Protocol (MCP) server for querying PyPI package information, dependencies, and compatibility checking.
A Model Context Protocol (MCP) server for querying PyPI package information, dependencies, and compatibility checking.
Once connected, the assistant can call these 3 tools directly:
Cline — The Cline tool exposed by this serverCursor — The Cursor tool exposed by this serverWindsurf — Add to your Windsurf MCP configuration (~/.codeium/windsurf/mcp_config.json):The server is distributed via PyPI as uvx, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.
Before the server will start you need to supply 8 environment variables: PYPI_INDEX_URL, PYPI_INDEX_URLS, PYPI_CACHE_TTL, PYPI_LOG_LEVEL, PYPI_PRIVATE_PYPI_URL, PYPI_PRIVATE_PYPI_USERNAME, PYPI_PRIVATE_PYPI_PASSWORD, CACHE_TTL. Keep credentials in your client's env block or a secrets manager rather than committing them.
Developer-tool servers are usually the first ones people connect, because they turn "help me with this code" into an assistant that can actually read the repo and act on it. Pypi Query sits in that group, and the shape of its toolset — Cline, Cursor, Windsurf — tells you what it is really for. Worth comparing against the other developer tools servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.
| Tool | What it does |
|---|---|
| Cline | The Cline tool exposed by this server. |
| Cursor | The Cursor tool exposed by this server. |
| Windsurf | Add to your Windsurf MCP configuration (~/.codeium/windsurf/mcp_config.json): |
#### With Private Repository
```json
{
"mcpServers": {
"pypi-query": {
"command": "uvx",
"args": ["--from", "pypi-query-mcp-server", "pypi-query-mcp"],
"env": {
"PYPI_INDEX_URL": "https://pypi.org/pypi",
"PYPI_PRIVATE_PYPI_URL": "https://private.pypi.company.com",
"PYPI_PRIVATE_PYPI_USERNAME": "your_username",
"PYPI_PRIVATE_PYPI_PASSWORD": "your_password",
"PYPI_CACHE_TTL": "3600"
}
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| PYPI_INDEX_URL | Endpoint or connection string the server talks to. | Yes |
| PYPI_INDEX_URLS | Endpoint or connection string the server talks to. | Yes |
| PYPI_CACHE_TTL | Configuration value read at startup. | Optional |
| PYPI_LOG_LEVEL | Configuration value read at startup. | Optional |
| PYPI_PRIVATE_PYPI_URL | Endpoint or connection string the server talks to. | Yes |
| PYPI_PRIVATE_PYPI_USERNAME | Configuration value read at startup. | Optional |
| PYPI_PRIVATE_PYPI_PASSWORD | Configuration value read at startup. | Optional |
| CACHE_TTL | Configuration value read at startup. | Optional |
Read-only SQL access to Postgres — let your assistant inspect schemas and answer questions from real data.
Manage your whole Supabase project in conversation — database, auth, storage, Edge Functions and branches.
Query, modify and analyse local SQLite databases in conversation — the fastest way to chat with a data file.
Metabase ships its own MCP endpoint — search your BI content, build and run queries, and save questions and dashboards without leaving the chat.
Official MongoDB server covering data, schemas and Atlas management — from find queries to spinning up clusters.
Serverless Postgres with database branching — point your assistant at Neon and let it work on disposable copies.