PyPI Query MCP Server

PyPI Query MCP Server is an MCP server that provides tools for querying the Python Package Index, analyzing package dependencies, and verifying Python version compatibility. It connects MCP-compatible development assistants directly to PyPI, secondary mirrors, or private package indexes via HTTP APIs. Python developers, DevOps engineers, and software architects use it to evaluate package quality, trace transitive dependency trees, and plan framework migrations. The server enables users to check compatible Python versions, pull historical download statistics, examine recent release trends, and download entire dependency bundles locally. It also offers dedicated prompt templates that guide language models through security audits, package comparisons, and dependency conflict resolution without manual web scraping.

Category: Developer Tools & Code Intelligence

Tags: dependencies, package-management, pypi, python

Visit PyPI Query MCP Server

How to install and configure PyPI Query MCP Server

  1. Ensure Python and uv are installed on your machine. 2. In Claude Desktop, open your configuration file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%/Claude/claude_desktop_config.json on Windows). 3. Add pypi-query to your mcpServers object: json { "mcpServers": { "pypi-query": { "command": "uvx", "args": ["--from", "pypi-query-mcp-server", "pypi-query-mcp"], "env": { "PYPI_INDEX_URL": "https://pypi.org/pypi", "PYPI_CACHE_TTL": "3600" } } } } 4. For Claude Code, run claude mcp add pypi uvx pypi-query-mcp-server -s user in your terminal. 5. Restart your client to start querying PyPI.

What you can do with PyPI Query MCP Server

  • Check Python version compatibility for specific libraries like Django or FastAPI before upgrading production runtime environments. - Recursively resolve deep dependency trees to locate transitive package conflicts across development and production dependency groups. - Retrieve 180-day download trends and popularity metrics to compare competing Python packages during technology stack selection. - Download entire package wheels alongside their required dependencies directly into a local project directory for offline installations. - Audit outdated packages in an environment using built-in prompt templates to plan prioritized security upgrades.

Key facts

  • Open Source
  • https://github.com/loonghao/pypi-query-mcp-server
  • Developer Tools & Code Intelligence, Web Search & Research
  • dependencies, package-management, pypi, python

Part of MCP Servers

Related MCP servers

  • MCP LaTeX Server β€” MCP LaTeX Server is an MCP server that provides tools for creating, editing, validating, and compiling LaTeX documents directly through…
  • MCP JSON β€” MCP JSON is an MCP server collection that bundles tools for file system operations, Google search, browser-based web automation, and…
  • MCP Jupyter Complete β€” MCP Jupyter Complete is an MCP server that provides tools for manipulating Jupyter notebook files through position-based cell operations and…
  • MCP LSP Go β€” MCP LSP Go is an MCP server that connects AI assistants to the official Go Language Server Protocol implementation, gopls,…
  • MCP Manager β€” MCP Manager is an MCP server management tool that connects directly to your Claude Desktop environment, enabling users to discover,…
  • MCP Lab β€” MCP Lab is an MCP server development environment designed for building, testing, and debugging custom Model Context Protocol servers integrated…

What can PyPI Query MCP Server do?

PyPI Query MCP Server enables AI clients to inspect PyPI packages, retrieve available versions, inspect requirements, test Python version compatibility, and recursively resolve dependency trees. It also delivers download trends over 180 days, tracks top packages, downloads package wheels locally, and provides prompt templates for migration checklists and package audits.

How do I install PyPI Query MCP Server?

You can run it directly using uvx with the command uvx pypi-query-mcp-server or install it with pip install pypi-query-mcp-server. For Claude Desktop, Windsurf, Cline, or Cursor, configure the server in your client configuration file using uvx to execute pypi-query-mcp.

Which MCP clients work with PyPI Query MCP Server?

The server works with any client supporting the Model Context Protocol, including Claude Code, Claude Desktop, Cursor, Cline, and Windsurf.

Can PyPI Query MCP Server connect to private repositories?

Yes. It supports custom indexes and private registries through environment variables, including PYPI_PRIVATE_PYPI_URL, PYPI_PRIVATE_PYPI_USERNAME, and PYPI_PRIVATE_PYPI_PASSWORD, alongside custom mirror URLs like PYPI_INDEX_URLS.

Is PyPI Query MCP Server open source?

Yes, PyPI Query MCP Server is open source and hosted on GitHub under an open source repository at https://github.com/loonghao/pypi-query-mcp-server.

  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories