Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Simple MCP Demoadd 15 and 27"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π Simple MCP Demo
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.
π οΈ Features
Multi-Transport Server: One server, three ways to connect.
add_numbers: A functional example of a tool discovery and execution flow.Reference Clients: Dedicated Python scripts for each transport type.
Inspector Ready: Fully compatible with the official MCP Inspector.
π Project Structure
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.
π Getting Started
1. Installation
Clone the repo and install the required packages:
2. Run with MCP Inspector (Recommended)
The easiest way to test the server is using the official tool inspector:
3. Run Reference Clients
Standard I/O (stdio)
Server-Sent Events (SSE)
Terminal 1 (Start Server):
Terminal 2 (Run Client):
Streamable HTTP
Terminal 1 (Start Server):
Terminal 2 (Run Client):
π Protocol Flow
Initialize: Client and Server exchange capabilities.
List Tools: Client discovers the
add_numberstool.Call Tool: Client sends parameters (
a,b) and receives the sum.
π Technical Details
For a deeper dive into the architecture, flow diagrams, and transport implementation details, see DOCUMENTATION.md.
Built with β€οΈ using the Model Context Protocol