Calculator — Claude Code MCP server: arithmetic in prompts
Calculator — an MCP server for addition, subtraction, multiplication and division via four tools. The agent runs calculations directly, without generating code.
no license 2,021 installs updated 2025-09-08
claude mcp add --transport http calculator-mcp-test https://calculator-mcp-test--aitutor3.run.toolsWhat Calculator does
The server gives the agent four tools: add, sub, mul and div. The agent calls them when it needs to compute a sum, difference, product or quotient. Results come back as floating-point numbers.
Runs on a remote endpoint, https://calculator-mcp-test--aitutor3.run.tools — installs with a single command, no local dependencies. Calling a tool requires no code: the agent gets the result and uses it in the next step.
Useful when you need to verify a calculation in a conversation or prompt chain without opening a terminal or REPL.
What it helps with
- compute sums or differences in a prompt
- divide one value by another without code
- multiply parameters and inject the result
- check agent arithmetic on the fly
Example prompts for the agent
- Add 234 and 567
- Divide 1024 by 8
- Multiply revenue by 1.15
How to install Calculator
Platform CLI: remote server
claude mcp add --transport http calculator-mcp-test https://calculator-mcp-test--aitutor3.run.toolsPlatform CLI: remote server
codex mcp add calculator --url https://calculator-mcp-test--aitutor3.run.toolsConfig file
{
"mcpServers": {
"calculator": {
"url": "https://calculator-mcp-test--aitutor3.run.tools"
}
}
}Config file
{
"servers": {
"calculator": {
"type": "http",
"url": "https://calculator-mcp-test--aitutor3.run.tools"
}
}
}Platform CLI: remote server
gemini mcp add -t http calculator https://calculator-mcp-test--aitutor3.run.toolsStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Calculator
How do I install Calculator in Claude Code?
Run claude mcp add --transport http calculator-mcp-test https://calculator-mcp-test--aitutor3.run.tools or claude mcp add --transport http calculator https://calculator-mcp-test--aitutor3.run.tools. The server is then available to the agent.
What does Calculator do?
Gives the agent four arithmetic tools: addition, subtraction, multiplication and division. The agent calls them directly, without generating code for calculations.
Which operations does Calculator support?
Addition (add), subtraction (sub), multiplication (mul) and floating-point division (div). Each takes two numbers and returns the result.