pypi-query-mcp-server MCP Server

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

Local serverstdio

What is the pypi-query-mcp-server MCP Server?

pypi-query-mcp-server source profile. From the maintainer documentation: “A Model Context Protocol (MCP) server for querying PyPI package information, dependencies, and compatibility checking.”

Installation

The documented pypi package is pypi-query-mcp-server. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Configuration values

The example declares PYPI_INDEX_URL, PYPI_INDEX_URLS, PYPI_CACHE_TTL, PYPI_LOG_LEVEL. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

How to install the pypi-query-mcp-server MCP Server

{
  "mcpServers": {
    "pypi-query": {
      "command": "uvx",
      "args": [
        "--from",
        "pypi-query-mcp-server",
        "pypi-query-mcp"
      ],
      "env": {
        "PYPI_INDEX_URL": "https://pypi.org/pypi",
        "PYPI_INDEX_URLS": "https://mirrors.aliyun.com/pypi/simple/,https://pypi.tuna.tsinghua.edu.cn/simple/",
        "PYPI_CACHE_TTL": "3600",
        "PYPI_LOG_LEVEL": "INFO"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
PYPI_INDEX_URLDeclared in the maintainer’s client configuration.Optional
PYPI_INDEX_URLSDeclared in the maintainer’s client configuration.Optional
PYPI_CACHE_TTLDeclared in the maintainer’s client configuration.Check documentation
PYPI_LOG_LEVELDeclared in the maintainer’s client configuration.Check documentation