Loading...

Cal Server is a lightweight mathematical expression evaluator using stdio for input/output, offering basic arithmetic and constants within a Bun runtime environment.
Boost this tool
Subscribe to listing upgrades or segmented pushes.
Cal Server is a lightweight mathematical expression evaluator using stdio for input/output, offering basic arithmetic and constants within a Bun runtime environment.
Cal Server is generally safe for evaluating mathematical expressions due to its sandboxed environment and lack of external dependencies. However, it's crucial to monitor resource usage to prevent denial-of-service attacks and keep the expr-eval library updated to mitigate potential vulnerabilities. It is safe to use with trusted inputs.
Performance depends on the complexity of the expression. Simple expressions are evaluated quickly, while complex expressions may take longer. The Bun runtime environment provides generally good performance.
Minimal cost; primarily CPU usage for expression evaluation. No external API calls or services are used.
npx -y @smithery/cli install @pwh-pwh/cal-mcp --client claudecalEvaluates a mathematical expression provided as a string.
Read-only execution of mathematical expressions with no side effects beyond computation.
None
local
Cal Server is generally safe for evaluating mathematical expressions due to its sandboxed environment and lack of external dependencies. However, it's crucial to monitor resource usage to prevent denial-of-service attacks and keep the `expr-eval` library updated to mitigate potential vulnerabilities. It is safe to use with trusted inputs.
The tool's autonomy is limited by its read-only nature and reliance on stdio for input. Sandboxing is provided by the `expr-eval` library.
Production Tip
Monitor resource usage to prevent denial-of-service attacks from excessively complex expressions.
The service supports basic arithmetic operations, including addition, subtraction, multiplication, division, and exponentiation. It also supports the constants E, PI, true, and false.
The service may throw exceptions for invalid mathematical expressions. Error messages are output to standard error.
The service is relatively secure due to its sandboxed environment and lack of external dependencies. However, it's important to monitor resource usage and keep the `expr-eval` library updated.
No, the service does not support user-defined variables. Only the built-in constants E, PI, true, and false are supported.
Performance depends on the complexity of the expression. Simple expressions are evaluated quickly, while complex expressions may take longer.
No, the service does not natively support trigonometric functions. You would need to implement them yourself using the supported operators and constants.
You need to have Bun installed. Then, clone the repository, install the dependencies using `bun install`, and start the service using `bun run index.ts`.