home / mcp / calculator mcp server

Calculator MCP Server

Provides arithmetic operations and math functions via MCP: add, subtract, multiply, divide, power, sqrt, factorial.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "kelseyee-mcp_calculator": {
      "command": "uvx",
      "args": [
        "mcp-calculator-kel@latest"
      ]
    }
  }
}

You can run a lightweight MCP server that exposes a calculator with simple arithmetic operations. This server lets you perform add, subtract, multiply, divide, power, square root, and factorial calculations through a Client-MCP interface in a straightforward, reliable way.

How to use

Connect your MCP client to the calculator server and select the calculator tool. You can perform the supported operations by providing the required inputs for each function. The server exposes a clean set of tools for floating-point arithmetic, exponentiation, square roots, and integer factorials. Use the results to power your applications, simulations, or any workflow that needs precise numerical calculations.

How to install

Prerequisites: you need Node.js or a suitable runtime that can execute MCP stdio configurations, plus the runtime command you will use. Ensure you have network access if you are pulling the server via a remote tool.

Step 1: Prepare the runtime for MCP execution. Ensure your environment can run the chosen runtime command (for example, a modern Node.js setup or the equivalent for your MCP runtime).

Step 2: Start the server using the explicit runtime command shown in the configuration example below. This starts the calculator MCP server locally in a standard stdio模式.

{
  "mcpServers": {
    "calculator": {
      "command": "uvx",
      "args": [
        "mcp-calculator-kel@latest"
      ]
    }
  }
}

Available tools

add

Execute floating-point addition using inputs a and b.

subtract

Execute floating-point subtraction using inputs a and b.

multiply

Execute floating-point multiplication using inputs a and b.

divide

Execute floating-point division using inputs a and b.

power

Compute base raised to exponent using inputs base and exponent.

sqrt

Compute the square root of a number using input number.

factorial

Compute the factorial of a non-negative integer n.