mcp-simple-demo
by arjunprabhulal·★ 4·Score 30
A simple Python MCP server demonstrating basic tool implementation and client interactions.
Overview
This repository provides a straightforward implementation of the Model Context Protocol (MCP) in Python. It includes a server with two sample tools (hello_world and add) and a client for testing interactions. The README is well-structured with clear installation instructions, usage examples, and protocol details. The project demonstrates the fundamental MCP concepts including server setup, tool definition, and client-server communication patterns.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this for learning MCP basics or as a starting point for developing custom MCP tools in Python.
When NOT to choose this
Don't choose this for production use as it lacks authentication, error handling, and scalability features needed for real applications.
Tools this server exposes
2 tools extracted from the READMEhello_worldname?: stringReturns a greeting message
adda: number, b: numberAdds two numbers
Comparable tools
Installation
# Clone the repository
git clone https://github.com/arjunprabhulal/mcp-simple-demo.git
cd mcp-simple-demo
# Install dependencies
pip install -r requirements.txt
# Or install manually
pip install mcp llama-index llama-index-tools-mcp requestsFor Claude Desktop, add to your configuration.json:
{
"mcpServers": {
"simple-demo": {
"command": "python",
"args": ["/path/to/mcp-simple-demo/server.py"]
}
}
}FAQ
- What tools are included in this demo?
- The demo includes two simple tools: 'hello_world' (returns a greeting) and 'add' (performs addition of two numbers).
- How can I test the server?
- Use the provided client.py script with commands like 'python client.py tools' to list available tools, or 'python client.py add 5 3' to call the add tool.
Compare mcp-simple-demo with
Last updated · Auto-generated from public README + GitHub signals.