crypto-tax-cost-basis-mcp logo

crypto-tax-cost-basis-mcp

by Abdullah Al JahidWebsiteUpdated Jul 30, 2026

Crypto tax calculator MCP: exact cost basis & capital gains via FIFO, LIFO, HIFO & specific-ID short/long-term splits, Form 8949, audit trail. 100% offline, no API keys.

crypto taxcost basiscapital gains+7

Start using this server

Get Pro →

Connect crypto-tax-cost-basis-mcp

Pick where you'll use it. We'll show the one step you need.

  1. Get access

    Pro · $9/mo. Create an account and pick a plan to get your API key.

    Get Pro
  2. Add it to Claude

    Opens Claude with this server filled in as a custom connector. Click Add, then Connect and sign in with MCPize. Works on claude.ai, Claude Desktop and mobile.

    Unlocks once you have access above

    On Claude Team and Enterprise, only organization Owners can add custom connectors.

    Using Claude Code?

    terminal
    claude mcp add --transport http --scope user crypto-tax-cost-basis-mcp https://crypto-tax-cost-basis-mcp.mcpize.run --header "Authorization: Bearer YOUR_API_KEY"
    Manual setup & config

    Paste this JSON config

    JSON
    {
      "mcpServers": {
        "crypto-tax-cost-basis-mcp": {
          "type": "http",
          "url": "https://crypto-tax-cost-basis-mcp.mcpize.run",
          "headers": {
            "Authorization": "Bearer YOUR_API_KEY"
          }
        }
      }
    }

    Config file: Claude Code: .mcp.json (project) or ~/.claude.json (user). claude.ai, Claude Desktop and mobile: use Add to Claude above.

    Subscribe to get your API key

Config files for Claude, Cursor and VS Code

Replace the YOUR_ placeholder values with your own API key or credentials.

Claude Code

Run in your terminal.

claude mcp add --transport http --scope user crypto-tax-cost-basis-mcp https://crypto-tax-cost-basis-mcp.mcpize.run --header "Authorization: Bearer YOUR_API_KEY"

Cursor

Add to ~/.cursor/mcp.json, or .cursor/mcp.json in your project.

{
  "mcpServers": {
    "crypto-tax-cost-basis-mcp": {
      "url": "https://crypto-tax-cost-basis-mcp.mcpize.run",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

VS Code

Run in your terminal, or add the server to .vscode/mcp.json.

code --add-mcp '{"name":"crypto-tax-cost-basis-mcp","type":"http","url":"https://crypto-tax-cost-basis-mcp.mcpize.run","headers":{"Authorization":"Bearer YOUR_API_KEY"}}'

About crypto-tax-cost-basis-mcp

Deterministic crypto tax calculator for AI agents. Turn a raw list of buys and sells into exact, audit-defensible capital gains and cost basis — computed with precise decimal math (never floats), fully offline, with no API keys and nothing leaving your machine.

What it does

  • Cost basis & realized gains using FIFO, LIFO, HIFO, or specific-identification
  • Short-term vs long-term classification (IRS holding-period rules) with per-year rollups
  • Fee-adjusted basis and a carried-forward open-lot ledger for multi-year tracking
  • Compare methods side by side (FIFO vs LIFO vs HIFO) to find the lowest-liability approach — built-in tax optimization
  • Plain-English audit trace showing exactly which lots were matched for every disposal
  • Form 8949-ready output

Tools

validate_transactions · calculate_cost_basis · capital_gains_report · compare_methods · remaining_open_lots · audit_trace

Why it's different

LLMs silently drop and mis-match tax lots — dangerous at filing time. This engine is deterministic and reproducible: same input, same numbers, every time, with a line-by-line trail you can defend. Unlike black-box tax apps, it's privacy-first — you supply the transactions, it returns the math. No accounts, no uploads, no data retention.

Pricing

Free tier to try it · Pro $9/mo · CPA $29/mo for higher volume.

⚠️ For informational purposes only. Not tax, legal, or accounting advice. The U.S. wash-sale rule (§1091) does not currently apply to crypto and is intentionally excluded. Verify figures and consult a qualified tax professional before filing.

Tools

  • Explain, in plain language, exactly how each disposal was matched to lots.

    Produces a per-disposal, line-by-line narrative (which lots were consumed, their acquisition dates, basis, proceeds, gain, and term) so the numbers are reproducible and defensible. This is the audit-trail differentiator.

    Try: "Show me the audit trail for my BTC sale tx_99"
  • Compute cost basis and realized capital gains per disposal.

    Matches each sell against acquisition lots using the chosen method, applying fee-adjusted basis and classifying each match as short- or long-term (holding period > 1 year = long-term). This is the core calculation.

    Try: "Calculate my 2023 capital gains using LIFO"
  • Produce a capital-gains summary grouped by tax year with short/long-term split.

    Gives the numbers you actually file: per-year proceeds, cost basis, and net gain, broken into short-term and long-term. Use this for a filing-ready overview.

    Try: "Generate a tax report for my 2023 crypto trades"
  • Compare realized gains across FIFO, LIFO, and HIFO to find the lowest liability.

    Runs the same transactions through each method and shows the resulting total gain (with short/long split), then flags the method with the lowest total realized gain. A powerful tax-optimization view. (specific-id is included only if every sell carries lot_ids.)

    Try: "Which accounting method minimizes my tax liability for 2023?"
  • List unsold acquisition lots carried forward (the open-lot ledger).

    After applying disposals up to as_of_date, returns every lot still holding remaining quantity, its remaining cost basis, and whether it would be short- or long-term if sold on that date. Use it to roll basis forward across tax years.

    Try: "List my remaining open crypto lots as of end of 2023"
  • Check a list of crypto transactions for problems before computing taxes.

    Flags missing/invalid fields, non-positive quantities, negative prices/fees, duplicate ids, and sells that exceed holdings at that point in time. Returns structured issues so they can be fixed row by row. Run this first.

    Try: "Check my transaction history for errors before filing taxes"

Loading reviews...

Developer

AA
@jahid.iit.du