MisterSmallfish/mcp-calculator-server
3.1
If you are the rightful owner of mcp-calculator-server 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.
This project implements a Model Context Protocol (MCP) server that provides basic calculator operations as MCP tools.
Tools
4
Resources
0
Prompts
0
MCP Calculator Server
This project implements a Model Context Protocol (MCP) server that exposes basic calculator operations (add, subtract, multiply, divide) as MCP tools.
Features
- MCP-compliant server using the TypeScript SDK
- Tools: add, subtract, multiply, divide
- Easily connectable to Claude Desktop, VS Code, and other MCP clients
Quickstart
Prerequisites
- Node.js 18+ and npm
Setup
npm install
npm run build
Run the server (for MCP clients)
node build/index.js
MCP Integration
To connect this server to an MCP client (e.g., Claude Desktop, VS Code):
- Add an entry to your
mcp.jsonor client config:{ "servers": { "calculator": { "type": "stdio", "command": "node", "args": ["/ABSOLUTE/PATH/TO/build/index.js"] } } } - Restart your MCP client and enable the "calculator" server.
References
Development
- TypeScript source in
src/ - Build output in
build/ - Add new tools in
src/index.ts
License
MIT