loading…
Search for a command to run...
loading…
A Python-based demonstration server showcasing multiple Model Context Protocol transport mechanisms, including stdio, SSE, and HTTP. It provides a functional re
A Python-based demonstration server showcasing multiple Model Context Protocol transport mechanisms, including stdio, SSE, and HTTP. It provides a functional reference for tool discovery and execution using a sample number addition tool.
A comprehensive demonstration of a Model Context Protocol (MCP) server implemented in Python. This project showcases how to build a unified server that supports multiple transport mechanisms: Standard I/O (stdio), Server-Sent Events (SSE), and Streamable HTTP.
add_numbers Tool: A functional example of a tool discovery and execution flow.server.py: The core MCP server containing tool logic and transport routing.client_stdio.py: Client for local subprocess communication (pipes).client_sse.py: Client for web-based event streaming.client_http.py: Client for stateful session-based HTTP streaming.DOCUMENTATION.md: Detailed functional and technical specifications.requirements.txt: Project dependencies.Clone the repo and install the required packages:
pip install -r requirements.txt
The easiest way to test the server is using the official tool inspector:
npx @modelcontextprotocol/inspector python server.py
python client_stdio.py
Terminal 1 (Start Server):
python server.py --transport sse
Terminal 2 (Run Client):
python client_sse.py
Terminal 1 (Start Server):
python server.py --transport http
Terminal 2 (Run Client):
python client_http.py
add_numbers tool.a, b) and receives the sum.For a deeper dive into the architecture, flow diagrams, and transport implementation details, see DOCUMENTATION.md.
Built with ❤️ using the Model Context Protocol
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"simple-mcp-demo": {
"command": "npx",
"args": []
}
}
}PRs, issues, code search, CI status
Database, auth and storage
Reference / test server with prompts, resources, and tools.
Secure file operations with configurable access controls.