Simple MCP Demo
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_numbersTool: 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.
Related MCP server: MCP Boilerplate
📂 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:
pip install -r requirements.txt2. Run with MCP Inspector (Recommended)
The easiest way to test the server is using the official tool inspector:
npx @modelcontextprotocol/inspector python server.py3. Run Reference Clients
Standard I/O (stdio)
python client_stdio.pyServer-Sent Events (SSE)
Terminal 1 (Start Server):
python server.py --transport sseTerminal 2 (Run Client):
python client_sse.pyStreamable HTTP
Terminal 1 (Start Server):
python server.py --transport httpTerminal 2 (Run Client):
python client_http.py📈 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
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseCqualityDmaintenanceA demonstration server based on Model Context Protocol (MCP) that showcases how to build custom tools for AI assistants, providing mathematical calculation and multilingual greeting capabilities.Last updated3
- Alicense-qualityDmaintenanceA minimal, production-ready MCP server with a simple addition calculator tool that demonstrates integration with the Model Context Protocol.Last updated311MIT
- Flicense-qualityDmaintenanceA demonstration server designed to showcase core Model Context Protocol (MCP) primitives including tools, resources, and prompts for presentations. It provides functional examples like text analysis and financial calculations to illustrate how AI models interact with external functions and data.Last updated5
- FlicenseBqualityDmaintenanceA demonstration MCP server providing basic tools for returning greetings and performing mathematical addition. It serves as a practical workshop guide for setting up and configuring Model Context Protocol servers from scratch using Python.Last updated24
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/anupamsharnagat/mcpdemo'
If you have feedback or need assistance with the MCP directory API, please join our Discord server