
calculator
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-pluginsRun it inside Claude Code after adding the marketplace with /plugin marketplace add qazi0/claude-plugins.
Contents
Discovered from sourceSkills 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
- Use
calculatefor any math — don't approximate when you can get the exact answer - Use
convertfor units — more reliable than doing conversion math manually - Use
statisticsfor datasets — returns all common descriptive stats in one call
Commands 2
Calculate
Evaluate the mathematical expression: $ARGUMENTS
Instructions
-
Use the
calculatetool with:expression: "$ARGUMENTS"
-
Present the result clearly
-
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
-
Use the
converttool with:value: $ARGUMENTS.valuefrom_unit: "$ARGUMENTS.from_unit"to_unit: "$ARGUMENTS.to_unit"
-
Present the result clearly
-
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