Calculator MCP Server
JSON →Performs basic arithmetic calculations. A TypeScript-based server demonstrating core MCP concepts.
Tools · 17
- add Adds an array of numbers.
- subtract Subtracts numbers sequentially from the first.
- multiply Multiplies an array of numbers.
- divide Divides numbers sequentially. Handles division by zero.
- sin Computes the sine of angles. Input: angles (array of numbers), mode ('radians' or 'degrees', defaults to 'radians').
- cos Computes the cosine of angles. Input: angles (array of numbers), mode ('radians' or 'degrees', defaults to 'radians').
- tan Computes the tangent of angles. Input: angles (array of numbers), mode ('radians' or 'degrees', defaults to 'radians').
- asin Computes the inverse sine of values. Input: values (array of numbers).
- acos Computes the inverse cosine of values. Input: values (array of numbers).
- atan Computes the inverse tangent of values. Input: values (array of numbers).
- sinh Computes the hyperbolic sine of values. Input: values (array of numbers).
- cosh Computes the hyperbolic cosine of values. Input: values (array of numbers).
- tanh Computes the hyperbolic tangent of values. Input: values (array of numbers).
- asinh Computes the inverse hyperbolic sine of values. Input: values (array of numbers).
- acosh Computes the inverse hyperbolic cosine of values. Input: values (array of numbers).
- atanh Computes the inverse hyperbolic tangent of values. Input: values (array of numbers).
- set_precision Configures decimal precision for all subsequent calculations. Takes precision parameter as the number of decimal places.
Links
★ 1 GitHub stars