home / mcp / calculator mcp server
Provides arithmetic operations and math functions via MCP: add, subtract, multiply, divide, power, sqrt, factorial.
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.
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.
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"
]
}
}
}Execute floating-point addition using inputs a and b.
Execute floating-point subtraction using inputs a and b.
Execute floating-point multiplication using inputs a and b.
Execute floating-point division using inputs a and b.
Compute base raised to exponent using inputs base and exponent.
Compute the square root of a number using input number.
Compute the factorial of a non-negative integer n.