MCP-Server-python
1
This project is a simple Python-based implementation of a Model Communication Protocol (MCP) server. It serves as a demonstration of basic MCP server functionality and is suitable for testing and development. The server operates on port 8000 using uvicorn and supports `sse` transport for network exposure.
MCP Server Demo in Python
This repository contains a simple implementation of a Model Communication Protocol (MCP) server using Python. The server is designed to demonstrate the basic functionality of an MCP server and can be used for testing and development purposes.
- The server uses
uvicorn
and by default runs on port 8000. - To expose the server over the network, use the
sse
transport.
Setup Instructions
- Create and Activate a Virtual Environment to set up your Python environment.
Starting the Server
- To start the server, execute the server script.
- Verify the server is running on port 8000 with network checking commands.
Running Tests
- Project includes a comprehensive test suite using
pytest
covering various functionalities. - Tools like Cursor or Claude can be integrated using
mcp.json
configuration.
Notes
- Default transport is
stdio
. Usesse
to expose over the network.
Feel free to contribute or open issues if you encounter any problems!