python-pip-mcp
@lukeage
Minimal Example Implementation of a MCP Server / Client with Python and Pip. This example is tested in VSCode and Windows and both server and client are debuggable.
Overview
What is python-pip-mcp?
python-pip-mcp is a minimal example implementation of an Anthropic Model Context Protocol (MCP) client and server in Python using Pip. It provides a reference implementation designed for debugging in VSCode on Windows with the Python Debugger extension.
How to use python-pip-mcp?
Create a Python virtual environment, install dependencies from requirements.txt, copy .env.sample to .env and set your Anthropic API key, then run python mcp_client.py. The client will query the MCP server for the current time.
Key features of python-pip-mcp
- Minimal reference implementation of MCP client and server
- Built with Python and Pip
- Designed for VSCode debugging on Windows
- Provides a simple time query example
Use cases of python-pip-mcp
- Learning the MCP protocol by examining a working example
- Setting up a debuggable MCP environment in VSCode on Windows
- Testing custom MCP tools or integrations locally
- Reference for building your own MCP client or server
FAQ from python-pip-mcp
What does python-pip-mcp demonstrate?
It demonstrates a minimal MCP client and server that can be run and debugged in VSCode on Windows, with a simple time-query tool.
What dependencies are required?
Python 3, a virtual environment, the packages listed in requirements.txt, and an Anthropic API key (set in a .env file).
How do I run the example?
After installing dependencies and setting the API key, run python mcp_client.py from the activated virtual environment.
What operating systems and IDEs are supported?
Windows with VSCode is explicitly supported; other IDEs and OS are untested but should work with minimal adjustments.
Where does the example query get data?
The server responds with the current time; no external data source is required beyond the Anthropic API for MCP communication.