About Mcp Test Add
Mcp Test Add is a lightweight MCP JSON-RPC server for testing protocol initialization and tool calls. It provides simple addition and subtraction tools for developers validating MCP clients.
Key features
- 01MCP JSON-RPC initialization
- 02Tool listing
- 03Addition tool
- 04Subtraction tool
Use cases
- 01Testing MCP client initialization
- 02Checking tool discovery and invocation
- 03Trying basic arithmetic calls
MCP support
Implements MCP JSON-RPC methods `initialize`, `tools/list`, and `tools/call`. Exposes `add` and `minus` tools to MCP clients.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEMCP Protocol Test Server (Smithery-compatible)
Implements initialize, tools/list, tools/call for MCP JSON-RPC.
How to run
pip install -r requirements.txt uvicorn app:app --reload
Docker build/run
docker build -t mcp-test . docker run -p 8081:8081 mcp-test
How to test
List tools
curl -X POST http://localhost:8081/ -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"tools/list","id":1}'
Call add
curl -X POST http://localhost:8081/ -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"add","arguments":{"a":3,"b":2}},"id":2}'
Call minus
curl -X POST http://localhost:8081/ -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"minus","arguments":{"a":5,"b":1}},"id":3}'
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.