finance-calc-mcp
A read-only local finance/business calculator MCP server with ten tools, also usable as CLI commands.
Evaluate bounded numeric math expressions.
Compute gross profit, gross margin, and markup.
Estimate ordinary federal income tax by taxable income, filing status, and explicit tax year (2024–2026).
Estimate individual self-employment tax and deductible half, plus separate return-level Additional Medicare Tax handling.
Estimate annual one-employer payroll FICA withholding and employer costs with configurable SUTA/FUTA assumptions.
Calculate straight-line or double-declining book depreciation with salvage reconciliation.
Generate fixed-rate monthly loan amortization schedules with rounded payments and an optional schedule.
Calculate signed percent change, returning null for a zero baseline.
Calculate fractional break-even units and whole units needed.
Format USD amounts with configurable decimal places and half-up rounding.
Return structured results with assumptions and sources, and support
--jsonfor CLI use.
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., "@finance-calc-mcp what's the monthly payment for a $200k mortgage at 6% for 30 years?"
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.
finance-calc-mcp
Local business and financial calculator: ten read-only MCP tools, also available as CLI commands. No bank connections, market-data requests, or stored financial records. Requires Python 3.10+ and an MCP client that can launch stdio servers.
Install and run
# Run without a permanent installation (uv must be installed)
uvx --upgrade 'finance-calc-mcp>=0.3.0' calc '185000 * 0.21'
# Or install / upgrade a persistent command
uv tool install finance-calc-mcp
uv tool upgrade finance-calc-mcp
# Alternative: pip install --upgrade finance-calc-mcpInstall uv from its official instructions.
Related MCP server: Arc & Ledger Tax Tools MCP server
Connect an MCP client
Configure your client's local MCP server command as uvx, with arguments
["--upgrade", "finance-calc-mcp>=0.3.0"]. For clients using JSON configuration:
{
"mcpServers": {
"finance-calculator": {
"command": "uvx",
"args": ["--upgrade", "finance-calc-mcp>=0.3.0"]
}
}
}If a desktop app cannot find uvx, replace command with the absolute path
reported by command -v uvx (macOS/Linux) or where uvx (Windows). Restart the
client after configuring or upgrading it. No arguments starts the stdio server;
there is no HTTP listener.
For Claude Code:
claude mcp add finance-calculator -- uvx --upgrade 'finance-calc-mcp>=0.3.0'Example prompts:
“Revenue is $850,000 and COGS is $612,000. Calculate margin and markup.”
“Compare a $400,000 loan at 6.5% over 15 and 30 years.”
“Estimate 2026 ordinary federal income tax on $185,000 of taxable income, filing single. Show the assumptions.”
The assistant receives both readable text and structured results. Values passed through an AI client are also handled by that client and its provider.
Migrating from 0.2.x to 0.3.0
Tax and payroll calls now require
tax_year: 2024, 2025, or 2026. CLI commands require--tax-year. There is no clock-dependent default or fallback for an unsupported year, including 2027.Self-employment tax requires
filing_status(CLI--filing-status). Regular individual SE tax and return-level Additional Medicare Tax are separate results. Do not interpret the regular SE tax as the complete tax on all income.The double-declining depreciation method now switches to straight line when appropriate and reconciles to salvage. It is book depreciation, not MACRS.
Loan totals sum rounded actual payments; the final payment may differ from the regular monthly payment. This can change totals from earlier unrounded estimates.
Undefined percentages are
nullin structured output andundefinedin text.Numeric inputs must be finite; invalid or unknown arguments return errors. Financial inputs are bounded to magnitude $1 trillion (general math expressions have separate limits). Existing tool names and CLI command names remain available.
The SDK now negotiates protocol versions normally. Modern clients receive structured content; readable text remains available to older clients.
Tools and inputs
Amounts are USD. Unless noted, monetary inputs must be nonnegative. Filing status
is single, married_jointly, married_separately, or head_of_household.
Qualifying surviving spouse is not currently a supported input status.
Tool | Required inputs | Optional inputs |
|
| — |
|
| — |
|
| — |
|
|
|
|
|
|
|
|
|
|
|
|
|
| — |
|
| — |
|
|
|
Tax estimates
us_income_tax_estimate applies ordinary-income rate schedules to taxable
income after deductions, before credits. It does not compute deductions, QBI,
credits, capital-gain rates, AMT, NIIT, or state taxes. It uses rate schedules rather
than the IRS tax-table income bands used for some returns. It returns bracket
amounts, tax, effective rate, selected year, assumptions, and source URLs.
self_employment_tax uses the normal Schedule SE method. Profit/loss is combined
for this individual; negative net profit produces zero taxable SE earnings. The
$400 minimum applies after the 92.35% adjustment. It excludes optional methods,
church employee rules, and special exemptions.
social_security_wages: this individual's Social Security wages/tips, reducing the remaining annual cap. Do not include spouse wages.medicare_wages: total Medicare wages for the return, including both spouses for married filing jointly. Supply independently of Social Security wages.spouse_net_self_employment_income: spouse net business profit/loss, allowed only for joint returns. Each spouse's earnings threshold is applied separately; a loss by one spouse does not offset the other's SE earnings.regular_self_employment_taxanddeductible_halfconcern this individual only. Spouse regular SE tax is excluded. Additional Medicare Tax is reported separately for wages and combined SE earnings at the return level, before withholding credits. Additional Medicare Tax is excluded from the deductible half.
Tax data is reviewed and versioned locally; there are no live tax lookups during calculations. See tax sources and annual review procedure.
Payroll estimates
payroll_summary models one employee at one employer over a full calendar year,
assuming the supplied salary is taxable for all modeled taxes. It reports FICA
withholding, pay after FICA before income tax and other deductions, and employer
costs. It excludes income-tax withholding, benefits, and other deductions.
Additional Medicare withholding starts at $200,000 regardless of filing status;
this is not the employee's final return-level tax liability and has no employer
match. SUTA rate and wage base are explicit user assumptions, not state-specific
data. The default FUTA credit is 5.4 percentage points, assuming full eligibility;
set futa_credit_pct to the actual allowable credit, including reductions.
Schedules, arithmetic, and rounding
Financial calculations use decimal arithmetic. Monetary inputs and tax/schedule line items round to cents using ROUND_HALF_UP. Totals sum the rounded line items. Percentages and fractional break-even units display four decimal places. Structured decimal values are strings to preserve precision; counts are integers.
Loans use a fixed nominal annual percentage rate divided by 12, monthly payments in arrears, no fees, and no extra payments. Monthly interest and regular payments round to cents; the last payment clears the remaining balance. A very small loan may have a zero rounded regular payment and a nonzero final payment. Principal must be at least $0.01, APR is 0–100%, and term is 1–100 whole years.
Depreciation uses full years (1–100). Salvage must be between zero and cost. Methods
are straight_line and double_declining; the latter uses a remaining-life
straight-line switch when larger, with the last year reconciled to salvage.
Schedules do not implement tax depreciation conventions, MACRS, Section 179,
or bonus depreciation.
percent_change uses (new - old) / old * 100, retaining the signed denominator
for negative starting values. A zero starting value gives an undefined percentage.
Margin and markup likewise return undefined for a zero denominator.
calculate uses bounded floating-point math, not decimal monetary arithmetic.
It supports +, -, *, /, **, %, parentheses, pi, e, and round, abs,
max, min, sum, sqrt, log, floor, ceil, and two-argument pow.
Numeric lists/tuples work with aggregates, e.g. sum([1, 2, 3]). No attributes,
indexing, comprehensions, strings, or arbitrary Python calls are executed.
Limits: 4,096 characters, 256 syntax-tree nodes, 32 nesting levels, and finite
real intermediates/results. Currency formatting allows 0–20 decimal places.
CLI examples
Every command accepts --json for the same structured result returned by MCP.
finance-calc-mcp calc '185000 * 0.21'
finance-calc-mcp margin 850000 612000
finance-calc-mcp tax 185000 single --tax-year 2026 --json
finance-calc-mcp tax 185000 single --tax-year 2024
finance-calc-mcp se-tax 95000 --tax-year 2026 --filing-status single
finance-calc-mcp se-tax 100000 --tax-year 2026 --filing-status married_jointly \
--social-security-wages 150000 --medicare-wages 250000 \
--spouse-net-self-employment-income 50000
finance-calc-mcp payroll 95000 3.4 --tax-year 2026 \
--state-suta-wage-base 15000 --futa-credit-pct 5.1
finance-calc-mcp amortize 400000 6.5 30 --schedule
finance-calc-mcp depreciation 50000 5 5000 --method double_declining
finance-calc-mcp break-even 120000 49.99 18.50
finance-calc-mcp pct-change 1200000 1485000
finance-calc-mcp format 1234567.89 --decimals 2Structured results
Every successful result contains tool, tax_year (null for nontax tools),
inputs, results, assumptions, sources, and data_reviewed_on (null when
there is no tax data). Schedules and brackets are arrays in results.
For example, finance-calc-mcp margin 850000 612000 --json returns these result
fields (within the full envelope):
{
"gross_profit": "238000.00",
"gross_margin_pct": "28.0000",
"markup_pct": "38.8889"
}MCP errors set isError=true. CLI errors write a concise message to stderr and
exit nonzero. Text layout is intended for people; integrations should consume
structured content or --json.
Development and release
uv sync --locked
uv run --locked python -m unittest discover -s tests -v
uv export --locked --no-dev --no-emit-project -o /tmp/finance-calc-requirements.txt
uvx pip-audit -r /tmp/finance-calc-requirements.txt --no-deps --disable-pip
uv buildCI tests and audits dependencies on Python 3.10 and 3.14 on pushes, pull requests,
and weekly. Tests cover independent IRS bracket anchors, tax thresholds, schedule
reconciliation, input rejection, CLI use, and modern/legacy stdio connections.
Dependabot checks uv and GitHub Actions weekly. Keep security floors in
pyproject.toml and the tested dependency versions in uv.lock up to date.
The Publish to PyPI workflow builds, tests, and audits a version tag, then uses
trusted publishing with the GitHub environment pypi. Configure the PyPI trusted
publisher for owner FellowTraveler, repository finance-calc-mcp, workflow
publish.yml, and environment pypi. After CI passes, push a tag matching the
package version and run:
gh workflow run publish.yml -f tag=v0.3.0Verify PyPI availability and test a fresh installation before publishing the GitHub release announcement.
License
MIT
Available Tools
10 toolsbreak_evenBRead-onlyIdempotent
Calculate fractional break-even units and whole units needed to cover fixed costs.
Inputs: fixed_costs (required), price_per_unit (required), variable_cost_per_unit (required). Returns: tool, inputs, results, sources, +3 more
calculateBRead-onlyIdempotent
Evaluate a bounded numeric math expression.
Inputs: expression (required). Returns: tool, inputs, results, sources, +3 more
currency_formatBRead-onlyIdempotent
Format USD using decimal half-up rounding.
Inputs: amount (required), decimals. Returns: tool, inputs, results, sources, +3 more
depreciationARead-onlyIdempotent
Full-year book depreciation, straight line or double declining with a straight-line switch; not MACRS.
Inputs: asset_cost (required), useful_life (required), method, salvage_value. Returns: tool, inputs, results, sources, +3 more
gross_marginARead-onlyIdempotent
Calculate gross profit, margin, and markup; undefined percentages are null.
Inputs: cogs (required), revenue (required). Returns: tool, inputs, results, sources, +3 more
loan_amortizationBRead-onlyIdempotent
Fixed-rate monthly loan schedule with cent-rounded payments and an adjusted final payment.
Inputs: principal (required), term_years (required), annual_rate_pct (required), show_schedule. Returns: tool, inputs, results, sources, +3 more
payroll_summaryARead-onlyIdempotent
Annual one-employer payroll estimate: FICA withholding and employer costs, excluding income-tax withholding and benefits.
Inputs: tax_year (required), gross_annual_salary (required), futa_credit_pct, state_suta_rate, +1 more. Returns: tool, inputs, results, sources, +3 more
percent_changeARead-onlyIdempotent
Calculate signed percentage change; zero baseline returns null.
Inputs: new_value (required), old_value (required). Returns: tool, inputs, results, sources, +3 more
self_employment_taxARead-onlyIdempotent
Individual regular SE tax and deductible half, plus separate return-level Additional Medicare Tax. Normal method only.
Inputs: tax_year (required), filing_status (required), net_self_employment_income (required), medicare_wages, +2 more. Returns: tool, inputs, results, sources, +3 more
us_income_tax_estimateARead-onlyIdempotent
Ordinary federal income-tax rate-schedule estimate from taxable income, before credits. Requires tax year.
Inputs: tax_year (required), filing_status (required), taxable_income (required). Returns: tool, inputs, results, sources, +3 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool maps to a distinct finance calculation (tax, payroll, depreciation, amortization, margins, break-even), so misselection is unlikely. The only real overlap is the generic 'calculate' tool, which could plausibly be used for percent change, margins, or break-even instead of the specialized tools.
Mostly snake_case, but the word order and part of speech vary: 'calculate' is a bare verb, 'gross_margin'/'depreciation'/'break_even' are noun phrases, and 'currency_format' is noun_verb. Readable but no single predictable pattern.
Ten tools is a well-scoped size for a finance calculator server, and each one covers a distinct, non-redundant computation. No obvious filler or trivial wrappers.
Covers taxes, payroll, depreciation, loan amortization, margins, break-even, and formatting, but core time-value-of-money operations (NPV, IRR, compound interest / future value) are absent. Tax coverage is also narrow (US federal only, SE tax 'normal method only'), which agents cannot work around.
Maintenance
Related MCP Connectors
MCP server for Financial Modeling Prep API with 250+ financial data tools
MCP server for Quaderno — tax-rate calculation, invoices, contacts, products, receipts & expenses.
MCPCalc gives agents access to a comprehensive library of calculators spanning finance, math, health, construction, engineering, food, automotive, and more. It includes a full Computer Algebra System (CAS) and a grid-based Spreadsheet calculator.
44 calculators for AI agents: US tax, finance, business + an MCP engineering & security suite.
Related MCP Servers
- FlicenseAqualityDmaintenanceProvides precise decimal arithmetic and Excel-style rounding for accounting and tax calculations via MCP protocol.1-
- FlicenseNot gradedqualityBmaintenanceA public, no-auth remote MCP server that exposes Arc & Ledger's free tax calculators and intake funnel as tools inside AI assistants. Provides tools for IRS notice explanation, FBAR/FATCA, LLC vs S-Corp comparison, quarterly tax estimates, and more.-
- AlicenseAqualityDmaintenanceA personal finance and business economics MCP server that provides math-backed answers to financial questions, including investment growth, loan amortization, debt payoff strategies, and tax estimation, all computed locally without API keys or network calls.11MIT
- AlicenseAqualityDmaintenanceMCP server exposing UK financial adviser calculations (tax, IHT, pensions, portfolios) to any MCP-capable client.6MIT