Exact mathematical calculations, unit conversions, and statistics via a local MCP server powered by mathjs

version
1.0.3
GitHub stars
10

Install

/plugin install calculator@qazi0-claude-plugins

Run it inside Claude Code after adding the marketplace with /plugin marketplace add qazi0/claude-plugins.

Contents

Discovered from source

Skills 1

Calculator Skill

Use the Calculator MCP tools for exact mathematical calculations instead of approximating.

When to Use Calculator

Use these tools when you need to:

  • Evaluate any math expression with exact precision
  • Convert between units (length, mass, temperature, data, etc.)
  • Compute statistics on a dataset (mean, median, std deviation, etc.)
  • Verify a calculation rather than estimating

Available Tools

calculate

Evaluate any mathematical expression safely using mathjs.

expression: "2^10 + sqrt(144)"

Supported syntax:

  • Arithmetic: +, -, *, /, ^, %
  • Functions: sqrt(), abs(), round(), ceil(), floor(), log(), log2(), log10(), exp()
  • Trigonometry: sin(), cos(), tan(), asin(), acos(), atan(), atan2()
  • Constants: pi, e, phi, i (imaginary)
  • Combinatorics: factorial(), combinations(), permutations()
  • Matrices: det(), inv(), transpose() with [[1,2],[3,4]] syntax
  • Complex numbers: 2 + 3i

convert

Convert a value between units.

value: 100
from_unit: "celsius"
to_unit: "fahrenheit"

Supported unit categories: length, mass, time, temperature, volume, area, speed, force, energy, power, pressure, data storage, angle, frequency.

statistics

Compute descriptive statistics on a list of numbers.

numbers: [4, 8, 15, 16, 23, 42]

Returns: count, sum, mean, median, min, max, std_deviation, variance, range.

Best Practices

  1. Use calculate for any math — don't approximate when you can get the exact answer
  2. Use convert for units — more reliable than doing conversion math manually
  3. Use statistics for datasets — returns all common descriptive stats in one call

Commands 2

Calculate

Evaluate the mathematical expression: $ARGUMENTS

Instructions

  1. Use the calculate tool with:

    • expression: "$ARGUMENTS"
  2. Present the result clearly

  3. If the expression is invalid, explain the error and suggest a corrected version

Convert Units

Convert $ARGUMENTS.value $ARGUMENTS.from_unit to $ARGUMENTS.to_unit.

Instructions

  1. Use the convert tool with:

    • value: $ARGUMENTS.value
    • from_unit: "$ARGUMENTS.from_unit"
    • to_unit: "$ARGUMENTS.to_unit"
  2. Present the result clearly

  3. If the conversion fails, explain what went wrong and suggest valid unit names

MCP servers 1

Sponsors

Details

Marketplace
qazi0/claude-plugins
Source
calculator
Category
Community
Keywords
calculator, math, convert, units, statistics, mcp

More from qazi0/claude-plugins

All 2