Calculator MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Calculator MCP ServerWhat's 20 divided by 4?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Calculator MCP Server
A small Model Context Protocol (MCP) server that exposes basic calculator operations over stdio.

Features
The server provides these tools:
Tool | Description | Arguments |
| Adds two numbers |
|
| Subtracts the second number from the first |
|
| Multiplies two numbers |
|
| Divides the first number by the second |
|
All arguments must be numbers. div returns an error when op2 is 0.
Related MCP server: Math MCP Server
Requirements
Node.js 18 or later
npm
Setup
Install the dependencies from this directory:
npm installRun the server
Start the MCP server over stdio:
npm startThe server waits for an MCP client to connect, so it does not print normal application output to the terminal.
Test with the example client
The example client starts the server, lists its tools, and calls div with 10 and 0 to demonstrate the division-by-zero error:
npm run test-clientTo test a successful operation, update the callTool arguments in mcp-client-test.ts, for example:
arguments: { op1: 10, op2: 2 },Use MCP Inspector
Run the interactive MCP Inspector with:
npm run mcp-inspectOpen the URL printed by the command, then select a calculator tool and provide values for op1 and op2.
Project files
mcp-server.ts- MCP server and calculator tool definitionsmcp-client-test.ts- example MCP clientmcp-calculator.gif- tutorial walkthroughpackage.json- scripts and dependencies
This server cannot be deployed
Maintenance
Related MCP Connectors
Model Context Protocol server for Studex tools, notifications, and profile integrations
Deterministic liquidity and leverage ratio tools for AI agents — current, quick and cash ratios, defensive interval, debt-to-equity, debt-to-assets, equity multiplier and interest coverage via Model Context Protocol. Useful for corporate finance, credit analysis, financial analysis, financial formulas and financial modeling.
Precision math engine for AI agents. 203 exact methods. Zero hallucination.
A Model Context Protocol server for Wix AI tools
Related MCP Servers
- FlicenseCqualityDmaintenanceA server that provides tools for performing basic arithmetic operations (addition, subtraction, multiplication, division) via the Model Context Protocol.4-
- AlicenseAqualityDmaintenanceEnables basic arithmetic operations (addition, subtraction, multiplication, division) with 64-bit precision and matrix multiplication capabilities. Provides mathematical computation tools for AI assistants through the Model Context Protocol.51MIT
- FlicenseAqualityDmaintenanceProvides basic mathematical operations including addition, subtraction, multiplication, division, and power calculations through a Model Context Protocol interface.51-
- FlicenseNot gradedqualityDmaintenanceProvides file reading and mathematical calculation tools through the Model Context Protocol. Enables reading file contents and evaluating mathematical expressions via stdio transport.-