calculator-mcp
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-mcpround 3.14159 to 2 decimal places"
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
calculator-mcp is an MCP (Model Context Protocol) server that exposes 16
arithmetic operations as callable tools for use by LLMs within agentic
applications. It contains no mathematical logic of its own. Instead, each tool
is a thin synchronous wrapper that logs its arguments and delegates execution to
the open-source
calculator-lib package
published on PyPI as
calculator-lib-rubens.
Features
16 calculator functions exposed through an MCP server for consumption by AI agentic programs:
Two-operand operations:
add,subtract,multiply,divide,power,nth_root,modulo,floor_divideSingle-operand operations:
sqrt,absolute,floor,ceil,log10,ln,expRounding:
round_number(with configurable decimal places)
The following are the supported MCP JSON-RPC 2.0 methods:
Lifecycle Methods:
initialize,notifications/initializedTools Methods:
tools/list,tools/callResources Methods:
resources/list,resources/templates/list,resources/readPrompts Methods:
prompts/list,prompts/get
The following MCP protocols are supported, selected by the client per request:
Legacy MCP (Version: 2025-06-18):
initializehandshake andMcp-Session-IdsessionModern MCP (Version: 2026-07-28): no handshake or session
Related MCP server: Simple Calculator MCP Server
Unsupported Features
Unsupported JSON-RPC methods:
Logging & Progress Utilities (e.g.
notifications/progress)Server-to-Client calls (e.g.
sampling/createMessage,elicitation/create,roots/list)
AI Disclaimer
This project includes code and documentation created with the assistance of AI tools. For details on usage, limits, and review practices, please see the AI Disclaimer.
Prerequisites
Python 3.14+
pip
Installation
Install using
pip
pip install calculator-mcp-rubensConfirm the installed version matches the latest GitHub release at calculator-mcp/releases
calculator-mcp --version
pip show calculator-mcp-rubensUninstall
pip uninstall calculator-mcp-rubens
pip cache purgeConfiguration
Copy the file config.yaml to
${HOME}/cfg/calculator-mcp/config.yaml.
export CALCULATORMCP_CONFIG="${HOME}/cfg/calculator-mcp/config.yaml"Usage
Run
calculator-mcpHealth check
curl -v http://localhost:8080/health
# Expect: OKTo stop, press
Ctrl+Cin the running terminal
Open Source Project Information
This project is open source and publicly hosted on GitHub at rubensgomes-org. It is published under an OSI-approved open-source license.
Public availability and the use of an OSI-approved license are requirements for eligibility to useSonarQube Cloud under its free plan for open-source projects.
License
The project is licensed under the MIT License.
Links
Author: Rubens Gomes
This server cannot be deployed
Maintenance
Related MCP Connectors
This MCP server enables users to perform scientific computations regarding linear algebra and vect…
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Educational MCP server with 17 math/stats tools, visualizations, and persistent workspace
Tested financial & practical calculators as free, no-auth MCP tools for AI agents.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceA calculator server that exposes mathematical functions as tools (add, subtract, multiply, divide, square, power, square root), enabling language models to perform calculations through Model Context Protocol (MCP).-
- AlicenseNot gradedqualityDmaintenanceEnables basic arithmetic operations (add, subtract, multiply, divide, modulo) via natural language, with a FastMCP-based server and client for exploring MCP tool calling.MIT
- FlicenseNot gradedqualityDmaintenanceAn advanced calculator MCP server that provides a wide range of mathematical operations over streamable HTTP, enabling users to perform complex calculations via natural language with any MCP client.-
- AlicenseNot gradedqualityBmaintenanceA calculator MCP server built as part of a step-by-step tutorial that demonstrates core MCP primitives—tools, resources, and prompts—and can be upgraded to a live weather server.MIT