Pypi Query MCP Server

A Model Context Protocol (MCP) server for querying PyPI package information, dependencies, and compatibility checking.

Local serverstdioPython

What is the Pypi Query MCP Server?

A Model Context Protocol (MCP) server for querying PyPI package information, dependencies, and compatibility checking.

Key capabilities

  • 📦 Query PyPI package information (name, version, description, dependencies)
  • 🐍 Python version compatibility checking
  • 🔍 Advanced dependency analysis and recursive resolution
  • 📥 Package download with dependency collection
  • 📊 Download statistics and popularity analysis
  • 🏆 Top packages ranking and trends
  • 🎯 MCP prompt templates for guided analysis and decision-making
  • 🏢 Private PyPI repository support

Practical notes

  • Maintained by loonghao, written in Python.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Pypi Query MCP Server

claude mcp add pypi-query --env PYPI_INDEX_URL=your-value --env PYPI_INDEX_URLS=your-value --env PYPI_CACHE_TTL=your-value --env PYPI_LOG_LEVEL=your-value --env PYPI_PRIVATE_PYPI_URL=your-value --env PYPI_PRIVATE_PYPI_USERNAME=your-value --env PYPI_PRIVATE_PYPI_PASSWORD=your-value --env CACHE_TTL=your-value -- uvx uvx

Configuration

VariableDescriptionRequired
PYPI_INDEX_URLEndpoint or connection string the server talks to.Yes
PYPI_INDEX_URLSEndpoint or connection string the server talks to.Yes
PYPI_CACHE_TTLConfiguration value read at startup.Optional
PYPI_LOG_LEVELConfiguration value read at startup.Optional
PYPI_PRIVATE_PYPI_URLEndpoint or connection string the server talks to.Yes
PYPI_PRIVATE_PYPI_USERNAMEConfiguration value read at startup.Optional
PYPI_PRIVATE_PYPI_PASSWORDConfiguration value read at startup.Optional
CACHE_TTLConfiguration value read at startup.Optional

Example prompts to try

  • “Use Pypi Query to Cline.”
  • “Use Pypi Query to Cursor.”
  • “Use Pypi Query to Windsurf.”

Frequently asked questions

A Model Context Protocol (MCP) server for querying PyPI package information, dependencies, and compatibility checking. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.