MCP Catalogs
Home

mcp-simple-demo

by arjunprabhulal·4·Score 30

A simple Python MCP server demonstrating basic tool implementation and client interactions.

developer-toolsai-llmother
4
Forks
1
Open issues
14 mo ago
Last commit
2d ago
Indexed

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:

you:Learning MCP protocol fundamentals through hands-on examples
you:Testing MCP client implementations against a simple server
you:Building proof-of-concepts for new MCP tools
you:What tools are included in this demo?
you:How can I test the server?

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 README
  • hello_worldname?: string

    Returns a greeting message

  • adda: number, b: number

    Adds two numbers

Comparable tools

mcp-githubmcp-slackmcp-file-system

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 requests

For 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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.