Skip to main content
Glama

Server Details

Crypto cost-basis lots (FIFO/LIFO/HIFO/specific-ID), Form 8949 rows, 1099-DA diff. 5 of 8 free.

Ownership verified
Status
Healthy
Uptime
100.0% over the last 24 hours
Last Tested
Transport
Streamable HTTP · MCP 2025-11-25
URL
Repository
GarphenGate/moltline-mcp
GitHub Stars
0
Server Listing
moltline-mcp
ChatGPT
–
Claude
–

TDQS

A4.3/5.0

Scored across 8 tools

Disambiguation5/5

Each tool maps to a clearly distinct stage or calculation in the crypto tax-lot workflow: parsing, linting, transfer matching, lot building, Form 8949 layout, 1099-DA reconciliation, wash-sale checking, and LP math. Although several tools consume similar ledger or disposal data, their descriptions make the boundaries unambiguous.

Naming Consistency3/5

All names use readable snake_case, but the naming convention is mixed: some are verb-first (build_lots, match_transfers, parse_transactions, reconcile_1099da) while others are noun-first or noun-phrase style (ledger_lint, form_8949_rows, lp_position_math, wash_window_check). The set remains understandable, but it lacks a single predictable pattern.

Tool Count5/5

Eight tools is well-scoped for a crypto tax-lot engine, covering import, validation, transfer matching, lot building, form drafting, reconciliation, wash-sale review, and LP math. No tool appears redundant or gratuitous.

Completeness4/5

The surface covers the core workflow from CSV import through lot calculation, Form 8949 drafting, and 1099-DA reconciliation, with supporting checks for transfers, wash sales, and LP positions. Minor gaps remain around direct manual ledger adjustment and first-class support for exchanges beyond Coinbase/Kraken, though the generic CSV path provides a workaround.

Available Tools

8 tools
build_lotsBuild LotsA
Read-onlyIdempotent
Inspect

Build the lot inventory per account and every disposal with basis, gain and holding period. PREMIUM (license).

Methods: fifo (the default rule when no specific identification is made, Treas. Reg. 1.1012-1(j)), lifo, hifo, or specific_id via a row's specific_lots {lot_id: qty}. Typical input {"ledger": , "method": "hifo", "transfers": } returns {"disposals": [{"row": "cb9", "asset": "BTC", "qty": "0.5", "proceeds": "31000.00", "basis": "20000.00", "gain": "11000.00", "term": "long", ...}], "open_lots": [...], "summary": {"short_term": {...}, "long_term": {...}}}. Fees: a cash purchase's fee joins basis; a sale's or exchange's fee reduces the amount realized (1.1001-7); a network fee paid in the transferred asset is a disposal of those units (transfer_fee_policy dispose) unless you choose ignore. Transfers between your own accounts move lots with their basis and acquisition date. Use once ledger_lint reports no errors. Not tax advice: it applies the stated rules to your rows and shows its work. Errors: on invalid, missing, or malformed input this tool never raises a protocol error; it returns {"error": ""} (for example {"error": "method must be fifo, lifo, hifo or specific_id"}). Every call is read-only and idempotent, so after correcting the input it is always safe to retry.

Inputs: ledger (required), method, tax_year, transfers, +2 more. Returns: object

form_8949_rowsForm 8949 RowsA
Read-onlyIdempotent
Inspect

Lay the disposals out as Form 8949 rows with box categories and totals. PREMIUM (license).

Typical input {"disposals": , "tax_year": 2026, "default_reporting": "proceeds_only"} returns {"part_i": {"B": [rows]}, "part_ii": {"E": [rows]}, "totals": {...}}. Columns follow the form: description (a), date acquired (b), date sold (c), proceeds (d), cost or other basis (e), code (f), adjustment (g), gain or loss (h). Box: A/D when the broker reported proceeds and basis, B/E when proceeds only, C/F when no broker form - set per row in reporting {row_id: value} or for all rows with default_reporting. Use to draft the schedule from computed disposals. Not a filing: check the current form instructions. Errors: on invalid, missing, or malformed input this tool never raises a protocol error; it returns {"error": ""} (for example {"error": "disposals must be a non-empty list from build_lots"}). Every call is read-only and idempotent, so after correcting the input it is always safe to retry.

Inputs: tax_year (required), disposals (required), reporting, whole_dollars, +1 more. Returns: object

ledger_lintLedger LintA
Read-onlyIdempotent
Inspect

Find the problems that break a lot build: missing values, duplicates, negative balances. FREE.

Typical input {"ledger": } returns {"issues": [{"severity": "error", "row": "cb12", "issue": "sell of 0.5 BTC exceeds balance 0.2 in account coinbase"}], "balances": {"coinbase": {"BTC": "0.2"}}, "counts": {...}}. Balances are running quantities per account and asset in time order, ignoring transfers' fiat values. Use after parse_transactions and before build_lots. Not a tax check: it checks the ledger's arithmetic consistency only. Errors: on invalid, missing, or malformed input this tool never raises a protocol error; it returns {"error": ""}. Every call is read-only and idempotent, so after correcting the input it is always safe to retry.

Inputs: ledger (required). Returns: object

lp_position_mathLp Position MathA
Read-onlyIdempotent
Inspect

Impermanent loss, hold-vs-pool value and basis split for a two-asset constant-product pool. FREE.

Typical input {"deposit": {"asset_a": "ETH", "qty_a": "1", "price_a": "2000", "asset_b": "USDC", "qty_b": "2000", "price_b": "1"}, "current_prices": {"ETH": "3000", "USDC": "1"}} returns {"il_pct": "-2.02", "hold_value": "5000.00", "pool_value": "4898.98", "deposit_value": "4000.00", "basis_split": {...}}. The pool value assumes x*y=k with no fees; add fees_earned_fiat to see the net. The basis split is the deposit's fiat value at deposit, allocated by each side's share, which is the arithmetic a lot engine needs if the LP position is treated as one asset. Use for DeFi position reviews. Not a determination of whether the deposit is a taxable exchange. Errors: on invalid, missing, or malformed input this tool never raises a protocol error; it returns {"error": ""} (for example {"error": "deposit and current_prices must be objects"}). Every call is read-only and idempotent, so after correcting the input it is always safe to retry.

Inputs: deposit (required), current_prices (required), fees_earned_fiat. Returns: object

match_transfersMatch TransfersA
Read-onlyIdempotent
Inspect

Pair withdrawals with the deposits that received them between your own accounts. FREE.

Typical input {"ledger": , "window_minutes": 1440} returns {"pairs": [{"out": "kr91", "in": "cb14", "asset": "BTC", "from": "kraken", "to": "coinbase", "network_fee": "0.0001", "minutes": 42.0}], "unmatched": {"transfer_out": [...], "transfer_in": [...]}}. A pair needs the same asset, a different account, the deposit inside the window after the withdrawal, and a quantity within tolerance_pct of the amount sent net of the fee. Use before build_lots so basis and holding period move with the coins instead of being treated as a sale. Not for transfers to third parties: those stay unmatched and should be typed gift_out or sell. Errors: on invalid, missing, or malformed input this tool never raises a protocol error; it returns {"error": ""}. Every call is read-only and idempotent, so after correcting the input it is always safe to retry.

Inputs: ledger (required), tolerance_pct, window_minutes. Returns: object

parse_transactionsParse TransactionsA
Read-onlyIdempotent
Inspect

Normalise an exchange CSV export into the canonical ledger rows. FREE.

Supports the Coinbase transaction-history export (Transaction Type / Asset / Quantity Transacted columns), the Kraken ledgers export (txid / refid / type / asset / amount / fee) and a generic CSV with the canonical columns ts, type, asset, qty, fiat_value, fee_qty, fee_asset, fee_fiat, counter_asset, counter_qty, account, id. Typical input {"csv_text": "...", "source_hint": "coinbase"} returns {"rows": [...], "detected": "coinbase", "unrecognised": [...], "warnings": [...]}. Rows it cannot read are returned under unrecognised with the reason, never dropped silently. In every row qty is the whole amount that entered or left the account; when a fee was paid in the same asset, fee_qty is the part of qty that was the fee. Use before ledger_lint and build_lots. Not for other exchanges: convert those to the generic columns first. Errors: on invalid, missing, or malformed input this tool never raises a protocol error; it returns {"error": ""} (for example {"error": "csv_text must be the CSV file contents"}). Every call is read-only and idempotent, so after correcting the input it is always safe to retry.

Inputs: csv_text (required), account, source_hint. Returns: object

reconcile_1099daReconcile 1099DaA
Read-onlyIdempotent
Inspect

Diff the broker's 1099-DA lines against the computed disposals. PREMIUM (license).

Typical input {"disposals": , "form_rows": [{"asset": "BTC", "date_sold": "2026-03-04", "qty": "0.5", "proceeds": "31000", "basis": "", "account": "coinbase"}]} returns {"matched": [...], "broker_missing_basis": [...], "basis_mismatch": [...], "proceeds_mismatch": [...], "unmatched_form_rows": [...], "unmatched_disposals": [...]}. A line matches a disposal on the same account (when given), asset and sale date with quantity and proceeds inside the tolerances; several lots sold in one order are summed first. Use when the form arrives and the basis column is blank for coins that came from your own wallet. Not a substitute for the broker's statement. Errors: on invalid, missing, or malformed input this tool never raises a protocol error; it returns {"error": ""} (for example {"error": "disposals must be a non-empty list from build_lots"}). Every call is read-only and idempotent, so after correcting the input it is always safe to retry.

Inputs: disposals (required), form_rows (required), money_tolerance, qty_tolerance_pct. Returns: object

wash_window_checkWash Window CheckA
Read-onlyIdempotent
Inspect

Flag loss disposals with a repurchase of the same asset inside the window. FREE.

Typical input {"disposals": , "acquisitions": [{"asset": "ETH", "ts": "2026-02-10T10:00:00Z", "qty": "2"}]} returns {"flags": [{"row": "cb7", "asset": "ETH", "loss": "-410.00", "repurchases": [...]}], "rule_status": "..."}. The 30-day window before and after the sale is the one IRC 1091 uses for stock or securities; as checked on the verification date that statute had not been extended to digital assets that are not securities, so the output is a heads-up for planning, not an adjustment. Use when reviewing loss harvesting. Not a determination that any rule applies. Errors: on invalid, missing, or malformed input this tool never raises a protocol error; it returns {"error": ""} (for example {"error": "disposals and acquisitions must be lists"}). Every call is read-only and idempotent, so after correcting the input it is always safe to retry.

Inputs: disposals (required), acquisitions (required), window_days. Returns: object

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      A
      maintenance
      Parse crypto exchange CSVs (Coinbase, Binance, Kraken, +11 more) and bank statement PDFs (Chase, BofA, +11 more) into Koinly, TurboTax, CoinLedger, or ZenLedger formats. Free tier: 25 files/month, no credit card required.
      1 npm
      ISC
    • A
      license
      Not graded
      quality
      D
      maintenance
      Cost basis tracking, capital gains calculation, and 1099-DA reconciliation for Claude, built on top of the Crypto Portfolio MCP data layer.
      MIT
    • 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
      541 npm
      13
      MIT
    Try in Browser

    Glama MCP Gateway

    Add one secure layer between your agents and this server.