Enables searching and accessing detailed metadata, version history, and download statistics for Python packages from the Python Package Index (PyPI).
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PyPI MCP Serversearch for web scraping libraries and show me the latest version of BeautifulSoup4"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
PyPI MCP Server
š Enabling AI assistants to search and access PyPI package information through a simple MCP interface.
PyPI MCP Server provides a bridge to the PyPI package repository for AI assistants through the Model Context Protocol (MCP). It allows AI models to programmatically search Python packages and access their metadata, supporting features like retrieving package information, searching packages, viewing version history, and download statistics.
⨠Core Features
š Package Search: Query PyPI packages by keywords ā
š Metadata Access: Get detailed metadata for specific packages ā
š¦ Version Information: Get all released versions of a package ā
š Statistics Data: Get download statistics for packages ā
š Efficient Retrieval: Fast access to package information ā
š Quick Start
Prerequisites
Python 3.10+
httpx
BeautifulSoup4
mcp-python-sdk
typing-extensions
Installation
Clone the repository:
git clone https://github.com/JackKuo666/PyPI-MCP-Server.git cd PyPI-MCP-ServerInstall required dependencies:
pip install -r requirements.txt
Running the Server
The server will communicate with MCP clients through standard input/output (stdio).
š MCP Tools
Get Package Information
Get detailed information about a specified package, with optional version specification.
Search Packages
Search PyPI packages by keywords.
Get Package Releases
Get all released version information for a specified package.
Get Package Statistics
Get download statistics for a specified package.
š§ Configuration
The server uses the MCP protocol to communicate with clients through standard input/output (stdio), no network port configuration needed.
š Integration with AI Assistants
Using Claude Desktop
Add the following configuration to your claude_desktop_config.json:
Usage Examples
In your AI assistant, you can call the PyPI MCP tools as follows: