AshishSinha5/mcp-adder
If you are the rightful owner of mcp-adder and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
This document provides a structured overview of a Model Context Protocol (MCP) server designed to perform addition operations.
MCP Adder Demo
Minimal example showing a FastMCP server that adds two numbers and a Python client that calls it over StreamableHTTP. Includes an OpenRouter (generic LLM) client example for tool-calling.

Setup
- Create and activate the venv (Python 3.10):
python3.10 -m venv .venv && source .venv/bin/activate - Install deps:
pip install -r requirements.txt - Set environment variables as needed (e.g.,
OPENROUTER_API_KEYin.envif you use OpenRouter).
Run the MCP server
source .venv/bin/activate
python add_server.py # starts FastMCP with streamable-http on http://127.0.0.1:8000/mcp
Call the MCP tool from Python
source .venv/bin/activate
python test_mcp_call.py # should print the sum from the MCP server
OpenRouter tool-call example
openrouter-client.py shows how to let a model call the add tool and then return a combined answer. Configure MODEL and OPENROUTER_API_KEY before running.
MCP UI [Optional]
You can also run the MCP UI to visualize tool calls:
npx -y @modelcontextprotocol/inspector
Then open in your browser: http://localhost:6274/?MCP_PROXY_AUTH_TOKEN=[your_token]