Back to Home
loonghao icon

pypi-query-mcp-server

Verified Safe

by loonghao

Overview

A Model Context Protocol (MCP) server for querying PyPI package information, dependencies, and compatibility checking for LLM-based coding agents.

Installation

Run Command
python -m pypi_query_mcp.server

Environment Variables

  • PYPI_INDEX_URL
  • PYPI_CACHE_TTL
  • PYPI_LOG_LEVEL
  • PYPI_REQUEST_TIMEOUT
  • PYPI_INDEX_URLS
  • PYPI_EXTRA_INDEX_URLS
  • PYPI_PRIVATE_PYPI_URL
  • PYPI_PRIVATE_PYPI_USERNAME
  • PYPI_PRIVATE_PYPI_PASSWORD
  • PYPI_DEPENDENCY_MAX_DEPTH
  • PYPI_DEPENDENCY_MAX_CONCURRENT
  • PYPI_ENABLE_SECURITY_ANALYSIS

Security Notes

The server demonstrates good security practices by handling private repository credentials via environment variables and masking them in logs. It performs checksum verification for downloaded packages. External network calls are made to trusted PyPI sources (pypi.org, pypistats.org). No 'eval' or obvious malicious patterns were found. A minor area to note is that a compromised PyPI serving malicious URLs with matching checksums for legitimate-looking packages could still lead to issues, but this is a broader ecosystem risk, not a flaw in the tool's immediate implementation.

Similar Servers

Stats

Interest Score38
Security Score8
Cost ClassMedium
Avg Tokens3500
Stars14
Forks3
Last Update2025-12-12

Tags

PyPIPythonPackage ManagementMCPDependency Analysis