mcp_server_research

mcp_server_research

3.2

This project contains research and demos related to MCP (Message Coordination Protocol) server implementation.

The Message Coordination Protocol (MCP) provides a standardized way for distributed systems to communicate and coordinate actions. This repository includes a reference implementation and demonstrations of the protocol in action. The project is structured to include documentation, source code, and demo implementations. It requires Python 3.8+, Flask, and Requests to run. The demo features a simple MCP server that registers and tracks connected clients, processes various message types, routes messages, provides a web dashboard, and maintains an in-memory message history. The project is open for contributions and is licensed under MIT.

Features

  • Registers and tracks connected clients
  • Processes various message types (heartbeat, data, command)
  • Routes messages to appropriate destinations
  • Provides a web dashboard for monitoring system activity
  • Maintains an in-memory message history

Usage with Different Platforms

mcp_server

bash
# Clone the repository
git clone https://github.com/ckz/mcp_server_research.git
cd mcp_server_research

# Set up virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Run the MCP server
dcd src/demo
python simple_mcp_server.py

# Run with custom settings
DEBUG=true PORT=5001 python simple_mcp_server.py

# Run a client demo
python client_demo.py --server http://localhost:5001 --duration 30 --interval 2