hadi-alhadi/mcp-server-sum
If you are the rightful owner of mcp-server-sum and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A simple Model Context Protocol (MCP) server that provides a `calculate_sum` tool to add two numbers together.
calculate_sum
Adds two numbers together.
MCP Sum Server
A simple Model Context Protocol (MCP) server that provides a calculate_sum
tool to add two numbers together.
Prerequisites
- Node.js (v20+ recommended)
- npm
Install Dependencies
npm install
Build the Server
npm run build
This will compile the TypeScript source code into the build/
directory.
Running the Server
The server is designed to be launched by Claude Desktop via MCP integration, not directly from the command line.
Configure Claude Desktop
-
Open (or create) the file:
/Users/hadialhadi/Library/Application Support/Claude/claude_desktop_config.json
-
Add or update the configuration to include your MCP server:
{ "mcpServers": { "mcp-server": { "command": "/Users/[YOU-USER]/.nvm/versions/node/v20.14.0/bin/node", "args": [ "[PATH-TO-YOUR-PROJECT]/mcp-server-sum/build/index.js" ] } } }
- Make sure the
command
path points to your Node.js binary. - The
args
array should point to the built server file.
- Make sure the
-
Save the file and restart Claude Desktop.
Usage
Once configured, Claude Desktop will automatically launch and communicate with your MCP server when needed. The server exposes a calculate_sum
tool that adds two numbers.