Calculator MCP Server
Click on "Install 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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseCqualityDmaintenanceA server that provides tools for performing basic arithmetic operations (addition, subtraction, multiplication, division) via the Model Context Protocol.4
- AlicenseAqualityCmaintenanceEnables 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.
Related MCP Connectors
Precision math engine for AI agents. 203 exact methods. Zero hallucination.
A Model Context Protocol server for Wix AI tools
AI-callable calculators and engineering models with real formulas. No hallucinated math.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/souravjai/calculator-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server