@sum-modelcontextprotocol/sum-number
v0.1.1
Published
MCP server for summing two numbers
Readme
MCP Add Numbers Server A Model Context Protocol (MCP) server to add two numbers using stdio transport. Installation Install the package globally or use npx: npm install -g @aml-modelcontextprotocol/add-numbers
or npx -y @aml-modelcontextprotocol/add-numbers
Usage
Create a config file (e.g., mcp-config.json) with the following content:
{ "mcpServers": { "sum": { "command": "npx", "args": [ "-y", "@aml-modelcontextprotocol/add-numbers" ] } } }
Run the server using npx:
npx -y @aml-modelcontextprotocol/add-numbers
The server communicates via stdio. To test, use an MCP client (e.g., Claude) with the following JSON-RPC requests:
Initialize: { "jsonrpc": "2.0", "id": 0, "method": "initialize", "params": { "protocolVersion": "2024-11-05", "capabilities": {}, "clientInfo": { "name": "claude-ai", "version": "0.1.0" } } }
Sum: { "jsonrpc": "2.0", "id": 1, "method": "sum", "params": { "a": 5, "b": 3 } }
Response: { "jsonrpc": "2.0", "id": 1, "result": 8 }
Requirements
Node.js v22.15.0 or higher npm
License MIT
