MCP Calc Tools
The MCP Calc Tools server provides advanced mathematical and financial calculation capabilities through a standardized interface:
Symbolic Calculus: Calculate derivatives, integrals, limits, and solve equations
Numerical Methods: Compute Riemann sums, Darboux sums, areas under curves, and volumes of revolution
Mathematical Transforms: Perform Laplace, Fourier, and Z-transforms
Financial Tools: Calculate compound interest, present value, NPV, Black-Scholes option prices, and option Greeks
Utility Functions: Evaluate logarithms with any base and exponential functions
Provides the runtime environment for the MCP server, required as version 14 or higher to run the mathematical and financial calculation tools.
Used for package management and script execution to install dependencies and start the MCP server.
Alternative package manager that can be used to install dependencies and manage the MCP Calc Tools project.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Calc Tools calculate the derivative of x^2 + sin(x)"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Calc Tools
Advanced calculus, linear algebra, probability, and finance tools for AI agents, exposed via the Model Context Protocol (MCP).
Features
Calculus: Symbolic derivatives/integrals, numerical Riemann sums, limits, volumes of revolution.
Linear Algebra: Matrix multiplication, inversion, determinants, eigenvalues.
Finance: Black-Scholes pricing, Option Greeks, Sharpe Ratio, Value at Risk (VaR), Cashflow schedules.
Probability: Normal, Binomial, and Poisson distributions.
Engineering: Numerical Laplace and Fourier transforms.
Optimization: Newton-method root finding.
Meta-Tools:
describe_available_toolsfor agent discovery.
Related MCP server: Calculator MCP Server
Installation
For AI Agents (Claude Code, Cursor, Cline, Roo Code)
Add the following to your MCP configuration:
{
"mcpServers": {
"calc-tools": {
"command": "node",
"args": ["/path/to/mcp-calc-tools/index.js"],
"env": {}
}
}
}Usage Examples for Agents
Calculus
"Calculate the derivative of x^2 + sin(x)"
"Find the area under x^3 from 0 to 2 using 1000 trapezoids"
Finance
"Price a European call option with S=100, K=105, T=0.5, r=0.03, sigma=0.2"
"Generate a monthly cashflow schedule for a $10,000 loan at 5% interest for 1 year"
Linear Algebra
"Find the eigenvalues of the matrix [[1, 2], [3, 4]]"
Security & Reliability
Safe Evaluation: Uses
mathjsfor expression parsing, avoiding dangerouseval().Input Validation: All parameters are strictly validated via Zod.
Safety Caps: Numerical methods have hard caps on iterations and subintervals to prevent DoS.
CVE Fixes: Dependencies updated to address known vulnerabilities (e.g.,
qs).
Development
pnpm install
pnpm startCitation
@misc{mcp-calc-tools<|2025|>,
author/creator/steward = {ᓂᐲᔥ ᐙᐸᓂᒥᑮ-ᑭᓇᐙᐸᑭᓯ (Nbiish Waabanimikii-Kinawaabakizi), also known legally as JUSTIN PAUL KENWABIKISE, professionally documented as Nbiish-Justin Paul Kenwabikise, Anishinaabek Dodem (Anishinaabe Clan): Animikii (Thunder), descendant of Chief ᑭᓇᐙᐸᑭᓯ (Kinwaabakizi) of the Beaver Island Band and enrolled member of the sovereign Grand Traverse Band of Ottawa and Chippewa Indians},
title/description = {mcp-calc-tools},
type_of_work = {Indigenous digital creation/software incorporating traditional knowledge and cultural expressions},
year = {2025},
publisher/source/event = {GitHub repository under tribal sovereignty protections},
howpublished = {\url{https://github.com/nbiish/mcp-calc-tools}},
note = {Authored and stewarded by ᓂᐲᔥ ᐙᐸᓂᒥᑮ-ᑭᓇᐙᐸᑭᓯ (Nbiish Waabanimikii-Kinawaabakizi), also known legally as JUSTIN PAUL KENWABIKISE, professionally documented as Nbiish-Justin Paul Kenwabikise, Anishinaabek Dodem (Anishinaabe Clan): Animikii (Thunder), descendant of Chief ᑭᓇᐙᐸᑭᓯ (Kinwaabakizi) of the Beaver Island Band and enrolled member of the sovereign Grand Traverse Band of Ottawa and Chippewa Indians. This work embodies Indigenous intellectual property, traditional knowledge systems (TK), traditional cultural expressions (TCEs), and associated data protected under tribal law, federal Indian law, treaty rights, Indigenous Data Sovereignty principles, and international indigenous rights frameworks including UNDRIP. All usage, benefit-sharing, and data governance are governed by the COMPREHENSIVE RESTRICTED USE LICENSE FOR INDIGENOUS CREATIONS WITH TRIBAL SOVEREIGNTY, DATA SOVEREIGNTY, AND WEALTH RECLAMATION PROTECTIONS.}
}License
Copyright © 2025 ᓂᐲᔥ ᐙᐸᓂᒥᑮ-ᑭᓇᐙᐸᑭᓯ (Nbiish Waabanimikii-Kinawaabakizi), also known legally as JUSTIN PAUL KENWABIKISE, professionally documented as Nbiish-Justin Paul Kenwabikise, Anishinaabek Dodem (Anishinaabe Clan): Animikii (Thunder), a descendant of Chief ᑭᓇᐙᐸᑭᓯ (Kinwaabakizi) of the Beaver Island Band, and an enrolled member of the sovereign Grand Traverse Band of Ottawa and Chippewa Indians. This work embodies Traditional Knowledge and Traditional Cultural Expressions. All rights reserved.
Available Tools
18 toolsareaC
Calculate the area under a curve between two points
Inputs: expression (required), start (required), end (required), n.
black_scholesC
Calculate Black-Scholes option price
Inputs: S (required), K (required), T (required), r (required), +2 more.
compound_interestC
Calculate compound interest
Inputs: principal (required), rate (required), time (required), compounds.
darboux_sumC
Calculate the Darboux sum of a function
Inputs: expression (required), variable (required), a (required), b (required), +2 more.
derivativeC
Calculate the derivative of a mathematical expression
Inputs: expression (required), variable.
exponentialC
Calculate exponential function (e^x)
Inputs: power (required).
fourier_transformC
Calculate the Fourier transform of a function
Inputs: expression (required), timeVar (required), freqVar (required).
integralB
Calculate the indefinite integral of a mathematical expression
Inputs: expression (required), variable.
laplace_transformC
Calculate the Laplace transform of a function
Inputs: expression (required), timeVar (required), laplaceVar (required).
limitC
Calculate the limit of a function as it approaches a value
Inputs: expression (required), variable (required), approach (required).
logarithmC
Calculate logarithm with any base
Inputs: value (required), base.
npvC
Calculate Net Present Value of cash flows
Inputs: cashFlows (required), rate (required).
option_greeksB
Calculate the Greeks for a Black-Scholes option
Inputs: S (required), K (required), T (required), r (required), +2 more.
present_valueC
Calculate present value of future cash flows
Inputs: futureValue (required), rate (required), time (required).
riemann_sumC
Calculate the Riemann sum of a function using different methods
Inputs: expression (required), variable (required), a (required), b (required), +2 more.
solveC
Solve an equation for a variable
Inputs: expression (required), variable (required).
volumeC
Calculate the volume of revolution around x-axis
Inputs: expression (required), start (required), end (required).
z_transformC
Calculate the Z-transform of a function
Inputs: expression (required), timeVar (required), zVar (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
Most tools have clearly distinct mathematical purposes, such as 'derivative' for derivatives, 'integral' for integrals, and 'black_scholes' for option pricing. However, there is some overlap between 'area' and 'riemann_sum' (both approximate areas under curves) and 'darboux_sum' (another area approximation method), which could cause confusion in tool selection.
The naming is mixed with some consistency in using descriptive terms like 'compound_interest' and 'fourier_transform', but it lacks a uniform pattern. For example, 'black_scholes' uses underscores while 'npv' is an acronym, and there's no consistent verb_noun structure, making it readable but not predictable.
With 18 tools, the count is borderline high for a calculator server, as it covers a broad range from basic math to advanced transforms and financial calculations. This might feel heavy and could overwhelm agents, though each tool seems purposeful within the mathematical domain.
The tool set provides comprehensive coverage of mathematical operations, including calculus (derivatives, integrals, limits), transforms (Fourier, Laplace, Z), financial calculations (NPV, present value, Black-Scholes), and basic functions (exponential, logarithm). There are no obvious gaps for a mathematical calculation server, supporting a wide range of agent workflows.
Related MCP Connectors
High-precision finance & business calculations for AI agents — exact decimals, never floats.
Scientific compute for AI agents: symbolic, numerical, quantum, chemistry, ODE. Paid via x402.
AI-callable calculators and engineering models with real formulas. No hallucinated math.
Loan & mortgage calculator, compound interest, ROI, crypto prices, FX conversion for AI agents.
Related MCP Servers
- AlicenseAqualityCmaintenanceA Model Context Protocol server that provides basic mathematical and statistical functions to LLMs, enabling them to perform accurate numerical calculations through a simple API.13191MIT
- AlicenseCqualityDmaintenanceA Model Context Protocol server that enables LLMs to perform precise numerical calculations by evaluating mathematical expressions.16,075 PyPI161MIT
- FlicenseNot gradedqualityDmaintenanceAdvanced server for simulating financial models and stochastic processes, offering tools for generating simulations, calculating financial metrics, and visualizing results with interactive components.-
- AlicenseCqualityDmaintenanceA comprehensive MCP server that turns any AI assistant into a powerful mathematical computation engine, providing 52 advanced functions, 158 unit conversions, financial calculations, and secure AST-based evaluation.1816MIT