python-pip-mcp
by: 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
Purpose: To provide a reference implementation of an MCP client and server in Python, facilitating easy debugging and development.
Overview: This repository serves as a minimal example of how to implement an Anthropic Model Context Protocol (MCP) Client and Server using Python with Pip. It’s designed for ease of use in a Visual Studio Code environment on Windows, while also being adaptable to other IDEs and operating systems with slight modifications.
Key Features:
-
Easy Setup: A straightforward installation process through pip, enabling users to create a virtual environment and set up dependencies quickly.
-
Debugging Support: Built for compatibility with the Python Debugger extension in Visual Studio Code, enabling enhanced debugging capabilities for developers.
python-pip-mcp
Minimal example implementation of an Anthropic MCP client and server in Python with Pip.
This repository provides a reference implementation of an MCP client and server that can be easily debugged in VSCode on Windows using the Python / Python Debugger extension.
Alternative IDEs and operating systems are not tested but should work with minimal adjustments.
Installation
# create venv
python -m venv myenv
myenv\Scripts\activate
# install requirements
pip install -r requirements.txt
# create a .env file and set your anthropic api key
cp .env.sample .env
# run mcp_client.py script
python mcp_client.py