Implements the Model Context Protocol with a Python server-client architecture enabling efficient management and interaction of model contexts through request handling and data exchange.
Unlock the full potential of MCP Python Server through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.
Free tier available • No credit card required
This project implements the Model Context Protocol (MCP) using a server-client architecture in Python. The MCP Server handles requests related to model context management, while the MCP Client interacts with the server to send and receive data.
Create a Virtual Environment Open a terminal and navigate to the project directory. Run the following command to create a virtual environment:
python -m venv venv
Activate the Virtual Environment
venv\Scripts\activate
source venv/bin/activate
Install Required Packages After activating the virtual environment, install the required packages using:
pip install -r requirements.txt
Start the MCP Server
Open a terminal (while the virtual environment is activated) and navigate to the directory containing mcp_server.py
. Run the following command:
python mcp_server.py
Start the MCP Client
Open another terminal window (or tab) (while the virtual environment is activated) and navigate to the directory containing mcp_client.py
. Run the following command:
python mcp_client.py
Feel free to fork the repository and submit pull requests for any improvements or bug fixes.
This project is licensed under the MIT License - see the LICENSE file for details.
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!