A demonstration project implementing the Model Context Protocol (MCP), showcasing client-server communication with various functionalities including web content fetching and system monitoring.
- Web content fetching and parsing
- System information monitoring
- Real-time server-sent events (SSE) communication
- MCP protocol implementation
- Resource management and tool execution
- Python 3.10+
- Dependencies (install via pip):
- httpx
- beautifulsoup4
- uvicorn
- psutil
- mcp-sdk
- Clone the repository:
git clone https://github.com/rmrf2020/decision-mind.git
cd decision-mind- Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate # On Windows, use: .venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Start the server:
python server.pyThe server will start on http://localhost:8000
- In a separate terminal, run the client:
python client.pyThe client will connect to the server and demonstrate various functionalities including:
- Listing available resources
- Reading greeting message
- Fetching system information
- Processing web content
This project implements the Model Context Protocol (MCP), providing a framework for:
- Server-Sent Events (SSE) based communication
- Resource management
- Tool execution
- Client-server interaction
See the