Skip to main content
Glama
Jackpot Calculator MCP

Jackpot Calculator MCP

Jackpot Calculator MCP

Four read-only MCP tools for US lottery prize taxes, cash vs annuity comparisons, equal pool shares and jackpot probabilities. Calculations use a fixed 2026 data snapshot and the same engine as Jackpot Calculator.

Connect to the hosted server

Add this Streamable HTTP URL in a client that supports remote MCP servers:

https://jackpot-calculator-mcp.jiankn.workers.dev/mcp

No API key is required. The public endpoint allows up to 120 requests per minute per IP at the Cloudflare edge; rate limiting is approximate, not a global quota. Connection examples and output units: Jackpot Calculator MCP setup.

Related MCP server: OptionsAhoy: Stock Equity and Tax Optimizer

Tools

Tool

Required inputs

Output

calculate_lottery_payout

prize, stateCode

Estimated final tax, withholding and cash take-home

compare_lump_sum_annuity

jackpot, cashValue, stateCode

Cash and 30-payment annuity, discounted present value and break-even rate

calculate_pool_share

prize, members, stateCode

One equal owner's share with the whole-ticket withholding threshold

calculate_lottery_odds

game

Distinct-combination jackpot probability; optional expected return with jackpotCash

Money inputs are US dollars. Tax/payout results use integer cents. The odds tool reports money in dollars. Rates and probabilities are fractions, so 0.04 is 4%. Each result states its units, assumptions and related calculator.

Example tool call:

{
  "name": "calculate_lottery_payout",
  "arguments": { "prize": 1000000, "stateCode": "TX", "status": "single" }
}

The bundled 2026 calculation returns an estimated $320,000 final federal tax and $680,000 take-home, separately from $240,000 federal withholding. See the interactive lottery tax calculator to explore other states and filing statuses.

For game-specific cash estimates, select game: "powerball" or game: "megaMillions", provide the known cash prize and compare it with the Powerball payout calculator or Mega Millions tax calculator. For annuities provide both the published cash option and advertised annuity total; the package never guesses the cash option from a fixed percentage.

Run locally from the source or release archive

Node.js 22.12 or newer is required.

git clone https://github.com/jiankn/jackpot-calculator-mcp.git
cd jackpot-calculator-mcp
npm ci
npm test
node src/cli.mjs

The last command starts an MCP stdio server and waits for a client; it is not an interactive CLI prompt. Configure a stdio client with command: "node" and args: ["/absolute/path/to/jackpot-calculator-mcp/src/cli.mjs"]. Only protocol messages go to stdout.

Release archives can also be installed with npm install ./jackpot-calculator-mcp-0.1.0.tgz. An npm registry listing is optional and is not needed for the hosted endpoint.

Calculation boundaries

  • US resident taxpayers, same residence and ticket-purchase state; cross-state credits and nonresident alien withholding are not modeled.

  • Federal and state tax data is bundled, with original source URLs and dates. No live jackpot lookup, automatic tax update, ticket purchase or ticket check.

  • Standard deduction and incremental income tax. State head-of-household uses single-filer state brackets. California assumes a California Lottery prize.

  • NYC and Yonkers need an explicit locality with stateCode: "NY". Maryland uses an average county rate; other local income taxes are excluded.

  • Annuities use 30 payments, first immediately and then annual payments growing 5%. Tax rules and other income stay constant. Future tax law and investment taxes are not modeled. Annuity methodology and calculator.

  • Pool outputs assume all members have the same tax profile. Different people need separate scenarios. Individually rounded fractional-cent shares can differ slightly from the whole prize.

  • Odds assume distinct combinations in one drawing. Expected value excludes taxes, Power Play, jackpot sharing and California pari-mutuel payout differences.

Estimates only, not tax or financial advice. Independent of Powerball, Mega Millions, the Multi-State Lottery Association and state lottery operators. Sources and methodology.

Development and releases

npm test checks known payouts, validation, pool withholding, annuity totals, odds and real stdio/HTTP protocol calls. npm run verify:package packs the allowlisted files, installs the archive into a clean directory and invokes the installed server. CI runs both on Windows and Linux.

scripts/sync-engine.mjs is a maintainer-only snapshot step run within the website checkout, before release. It records source hashes in PROVENANCE.md. Standalone users already have the copied files and do not need to run it.

Code: MIT. Compiled data: CC BY 4.0; see LICENSE-DATA.md and the source URLs inside data/. Issues: https://github.com/jiankn/jackpot-calculator-mcp/issues

Available Tools

4 tools
calculate_lottery_oddsJackpot probability and expected returnB
Read-onlyIdempotent
Inspect

Calculate jackpot coverage for distinct combinations in one drawing and optional before-tax expected ticket return.

Inputs: game (required), tickets, jackpotCash.

calculate_lottery_payoutLottery cash prize after taxesA
Read-onlyIdempotent
Inspect

Estimate taxes and withholding on a known lottery cash prize. Input dollars; result integer cents. Bundled 2026 rules.

Inputs: prize (required), stateCode (required), game, status, +2 more.

calculate_pool_shareEqual lottery pool sharesB
Read-onlyIdempotent
Inspect

Estimate one equal member’s cash prize, taxes and withholding. Each member is assumed to have the specified tax profile.

Inputs: prize (required), members (required), stateCode (required), game, +3 more.

compare_lump_sum_annuityCompare cash and annuityB
Read-onlyIdempotent
Inspect

Compare a published cash option with 30 growing annuity payments after taxes, including present value and break-even rate.

Inputs: jackpot (required), cashValue (required), stateCode (required), game, +6 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 4 tools

    Disambiguation4/5

    Each tool targets a distinct lottery calculation: payout taxes, lump-sum vs annuity comparison, pool share, and odds/expected return. The main overlap is between calculate_lottery_payout and calculate_pool_share, since both estimate taxes and withholding on a prize amount; the pool context helps distinguish them but an agent could still hesitate between them.

    Naming Consistency4/5

    Three tools use the clear calculate_<object> pattern, which makes their intent readable and predictable. compare_lump_sum_annuity is a minor deviation in verb style, but it remains descriptive and consistent with the snake_case convention.

    Tool Count5/5

    Four tools is a well-scoped set for a focused jackpot calculator. Each tool covers a distinct calculation type without obvious filler or excessive surface area.

    Completeness4/5

    The surface covers the core lottery calculator lifecycle: prize payout taxes, annuity comparison, pool sharing, and odds/expected value. Minor gaps remain, such as explicit state-tax variation or reverse calculations, but the main workflows are represented.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      39 tax tools for US individual taxpayers — federal/state tax calculations, credits, deductions, retirement strategies, audit risk, and tax planning. All calculations run locally, no data leaves the machine. Supports TY2024 and TY2025 (One Big Beautiful Bill Act).
      45
      1,628 npm
      13
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Deterministic US equity-compensation tax optimizer. Six tools cover ISO/AMT exercise scheduling, NSO sell-vs-hold, RSU vest-and-sell, single-stock concentration, protective put / zero-cost collar pricing, and Section 1202 QSBS qualification. Federal plus 50-state plus DC tax math.
      8
      113 npm
      6
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables models to query real US government data (BLS, BEA, Census, IRS 2026) to calculate 2026 take-home pay across all 50 states plus DC, compare cost-of-living-adjusted salaries between 50 US metros, retrieve tax bracket ladders, and look up occupation-level salary percentiles. Exposes five read-only tools over a free, keyless remote Streamable HTTP endpoint.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables users to calculate 2025–2026 take-home pay, compare net pay across states, convert salary and hourly wages, and retrieve federal tax brackets and deductions, including FICA, Additional Medicare, and pre-tax 401(k)/HSA effects.
      5
      97 npm
      MIT