- Explore MCP Servers
- pypi-mcp-demo
Pypi Mcp Demo
What is Pypi Mcp Demo
pypi-mcp-demo is a demo repository for a Model Context Protocol (MCP) server that retrieves information about Python packages from the Python Package Index (PyPI).
Use cases
Use cases for pypi-mcp-demo include automating the retrieval of package information for documentation, integrating package metadata into development tools, and providing insights into package updates and maintainers for project management.
How to use
To use pypi-mcp-demo, first install the dependencies using ‘pip install -e .’ or by creating a Python environment. Then, run the server with ‘python server.py’. You can call the ‘get_pypi_package_info’ tool via the MCP protocol or directly in Python.
Key features
Key features of pypi-mcp-demo include querying PyPI for package metadata, returning maintainers, version, changelog URL, summary, and full project description, as well as attempting to find changelog links from project homepages if not directly available.
Where to use
pypi-mcp-demo can be used in software development environments where developers need to retrieve and manage information about Python packages, such as in CI/CD pipelines, package management tools, or development dashboards.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Pypi Mcp Demo
pypi-mcp-demo is a demo repository for a Model Context Protocol (MCP) server that retrieves information about Python packages from the Python Package Index (PyPI).
Use cases
Use cases for pypi-mcp-demo include automating the retrieval of package information for documentation, integrating package metadata into development tools, and providing insights into package updates and maintainers for project management.
How to use
To use pypi-mcp-demo, first install the dependencies using ‘pip install -e .’ or by creating a Python environment. Then, run the server with ‘python server.py’. You can call the ‘get_pypi_package_info’ tool via the MCP protocol or directly in Python.
Key features
Key features of pypi-mcp-demo include querying PyPI for package metadata, returning maintainers, version, changelog URL, summary, and full project description, as well as attempting to find changelog links from project homepages if not directly available.
Where to use
pypi-mcp-demo can be used in software development environments where developers need to retrieve and manage information about Python packages, such as in CI/CD pipelines, package management tools, or development dashboards.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
PyPI Info Demo
This project is a simple Model Context Protocol (MCP) server that provides information about Python packages on PyPI. It exposes a tool to fetch package maintainers, version, changelog, summary, and full project description using the PyPI JSON API.
Features
- Query PyPI for package metadata
- Returns maintainers, version, changelog URL, summary, and full project description
- Attempts to find changelog links from project homepages if not directly available
Usage
-
Install dependencies:
using the python environments extension run the command “create environment”
or install viapip install -e . -
Run the server:
python server.py -
Call the tool:
You can call theget_pypi_package_infotool via the MCP protocol, or directly in Python:from server import get_pypi_package_info print(get_pypi_package_info("requests"))
File Overview
server.py: Main MCP server and PyPI info tool implementationpyproject.toml: Project metadata and dependencies
Requirements
- Python 3.7+
mcp,requests,beautifulsoup4
License
MIT
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










