io.github.rog0x/math

Official registry Data and databases

Calculator, units, statistics for AI agents

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

NPM package @rog0x/mcp-math-tools
Claude Code
claude mcp add math -- npx -y @rog0x/mcp-math-tools@1.0.1
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "math": {
            "command": "npx",
            "args": [
                "-y",
                "@rog0x/mcp-math-tools@1.0.1"
            ]
        }
    }
}

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  1. mcp-math-tools
  2. Tools
  3. Installation
  4. Usage with Claude Desktop
  5. Examples
  6. License

mcp-math-tools

Math and calculation tools for AI agents, exposed via the Model Context Protocol (MCP).

Tools

calculate

Evaluate math expressions safely (no eval). Supports arithmetic operators (+, -, *, /, ^, %), parentheses, functions (sqrt, abs, floor, ceil, round, log, ln, sin, cos, tan, min, max, pow), constants (pi, e), and named variables.

convert_units

Convert between units across six categories:

  • Length: m, km, cm, mm, mi, yd, ft, in
  • Weight: kg, g, mg, lb, oz, ton
  • Temperature: C, F, K
  • Data: B, KB, MB, GB, TB
  • Time: s, min, h, d, week
  • Speed: m/s, km/h, mph, knots
statistics

Statistical analysis on datasets: mean, median, mode, variance, standard deviation, min, max, range, percentile, correlation between two arrays, and a full summary mode.

format_number

Format numbers as: currency ($1,234.56), percentage, scientific notation, binary, octal, hexadecimal, significant figures, or with thousands separators.

percentage_calc

Common percentage operations: X% of Y, what percent X is of Y, percentage change between two values, tip calculator, discount calculator, and markup calculator.

Installation

npm install
npm run build

Usage with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "math-tools": {
      "command": "node",
      "args": ["path/to/mcp-math-tools/dist/index.js"]
    }
  }
}

Examples

Calculate: 2 * (3 + 4) ^ 2 returns 98

Convert: 100 from km/h to mph returns 62.137...

Statistics: summary of [1, 2, 3, 4, 5] returns mean, median, mode, variance, etc.

Format: 1234567.89 as currency returns $1,234,567.89

Percentage: 15% tip on 85.50 bill split 3 ways

License

MIT

Frequently asked questions

What is io.github.rog0x/math?

Calculator, units, statistics for AI agents

How do I install io.github.rog0x/math?

It runs on your machine. In Claude Code: claude mcp add math -- npx -y @rog0x/mcp-math-tools@1.0.1. For other clients, paste the JSON configuration from this page into their MCP settings.

Does io.github.rog0x/math need an API key?

Its registry entry lists no required key or secret. Some features may still need an account with the service it connects to.

Is io.github.rog0x/math open source?

Its code is public on GitHub, but the repository does not declare a standard license.

Who maintains io.github.rog0x/math?

It is published by rog0x. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.