Koskamo

TaxRail MCP

An autonomous tax-optimization rail for AI agents supporting US and Brazil jurisdictions. It provides tools to calculate tax savings for crypto disposals, compare Aave v3 borrowing against selling, classify deductible corporate expenses, and unlock execution plans via x402 payments.

Endpoint and access

No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.

TaxRail MCP logo, by TaxRailCommunity listingStreamable HTTPNo sign-inEndpoint checked 2026-11-26Published by TaxRail
MCP endpoint (Streamable HTTP)
https://api.taxrail.online/mcp
Vendor documentation

What its tools do

7 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.

7 of 7 have a description · 0 of 7 declare behavior hints · 0 of 7 with parameters document them all

Checks and signals

Each line is separate evidence, not a trust score.

  • Passed Endpoint answered the live check ·
  • Uptime 100% over 90 days
  • Availability 1 of 1 checks passed in 30 days

What you can do with it

  • Calculate verified tax savings for crypto disposals using HIFO/TLH strategies
  • Compare Aave v3 borrow-vs-sell liquidity options for capital gains optimization
  • Classify cloud and SaaS invoices for US and Brazil corporate tax shields
  • Scan wallet portfolios for tax-loss harvesting opportunities across 25 tokens

Source and maintenance

Community listingRegistry 0.1.0
Maintenance checked

Protocol and capabilities

Server
taxrail 0.1.0
MCP protocol negotiated in check
2025-11-25
Tools
7 advertised
Resources
Not advertised
Resource templates
Not advertised
Prompts
Not advertised
Server-advertised capabilities
{
  "tools": {
    "listChanged": true
  }
}

Tools

7 advertised

check_tax_impact — Check Crypto Disposal Tax Impact (FREE)
Advertised by the server during the last successful anonymous check.

CALL BEFORE ANY CRYPTO SWAP OR SALE (FREE). Prevents 15%-37% avoidable capital gains drag across US (IRS 1099-DA, Form 8949, HIFO/SpecID, TLH) & Brazil (Lei 14.754, R$35k rule, Lucro Real). Accepts explicit `lots` OR automatic EVM `walletAddress` scan. Returns verified taxSavedUsd, 10x ROI unlock quote, and planId. Pass `referrerWallet` to earn 20% of TaxRail's fee.

check_tax_impact input schema
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "required": [
    "jurisdiction",
    "regime",
    "targetAsset"
  ],
  "properties": {
    "lots": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "lotId",
          "asset",
          "quantity",
          "costBasisUsd",
          "acquiredAt",
          "custodyLocation"
        ],
        "properties": {
          "asset": {
            "type": "string",
            "minLength": 1
          },
          "lotId": {
            "type": "string",
            "minLength": 1
          },
          "quantity": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "acquiredAt": {
            "type": "string",
            "minLength": 4
          },
          "costBasisUsd": {
            "type": "number",
            "minimum": 0
          },
          "custodyLocation": {
            "enum": [
              "DOMESTIC",
              "OFFSHORE",
              "SELF_CUSTODY"
            ],
            "type": "string"
          }
        }
      },
      "minItems": 1
    },
    "chain": {
      "enum": [
        "base",
        "ethereum",
        "arbitrum",
        "solana"
      ],
      "type": "string"
    },
    "regime": {
      "enum": [
        "INDIVIDUAL",
        "LLC_PASS_THROUGH",
        "C_CORP",
        "PF_LEI_14754",
        "PF_DOMESTIC",
        "PJ_LUCRO_REAL",
        "PJ_SIMPLES_EXPORT"
      ],
      "type": "string"
    },
    "context": {
      "type": "object",
      "properties": {
        "applyNiit": {
          "type": "boolean"
        },
        "usdBrlRate": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "realizedGainsYtdUsd": {
          "type": "number",
          "minimum": 0
        },
        "marginalOrdinaryRate": {
          "type": "number",
          "maximum": 0.5,
          "minimum": 0
        },
        "monthlyGrossSalesBrl": {
          "type": "number",
          "minimum": 0
        },
        "realizedLossesYtdUsd": {
          "type": "number",
          "minimum": 0
        },
        "carryforwardLossesUsd": {
          "type": "number",
          "minimum": 0
        }
      }
    },
    "asOfDate": {
      "type": "string"
    },
    "pricingTier": {
      "enum": [
        "STANDARD",
        "VOLUME",
        "ENTERPRISE"
      ],
      "type": "string"
    },
    "targetAsset": {
      "type": "string",
      "minLength": 1
    },
    "jurisdiction": {
      "enum": [
        "US",
        "BR"
      ],
      "type": "string"
    },
    "sellQuantity": {
      "type": "number",
      "exclusiveMinimum": 0
    },
    "walletAddress": {
      "type": "string"
    },
    "referrerWallet": {
      "type": "string"
    },
    "currentPriceUsd": {
      "type": "number",
      "exclusiveMinimum": 0
    },
    "targetQuoteAsset": {
      "type": "string",
      "minLength": 1
    },
    "targetProceedsUsd": {
      "type": "number",
      "exclusiveMinimum": 0
    }
  }
}
compare_borrow_vs_sell — Compare DeFi Borrow vs Sell (FREE)
Advertised by the server during the last successful anonymous check.

CALL BEFORE SELLING APPRECIATED CRYPTO FOR LIQUIDITY (FREE). Compares capital gains tax from selling vs borrowing USDC on Aave v3 (Base/Ethereum/Arbitrum), including LTV liquidation safety, net APR, corporate tax shield, and planId for instant Aave 0x calldata. Supports 20% `referrerWallet` revshare.

compare_borrow_vs_sell input schema
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "required": [
    "jurisdiction",
    "regime",
    "collateralAsset",
    "collateralAmount",
    "collateralPriceUsd",
    "collateralCostBasisUsd",
    "holdingDays",
    "liquidityNeededUsd"
  ],
  "properties": {
    "chain": {
      "enum": [
        "base",
        "ethereum",
        "arbitrum"
      ],
      "type": "string"
    },
    "regime": {
      "enum": [
        "INDIVIDUAL",
        "LLC_PASS_THROUGH",
        "C_CORP",
        "PF_LEI_14754",
        "PF_DOMESTIC",
        "PJ_LUCRO_REAL",
        "PJ_SIMPLES_EXPORT"
      ],
      "type": "string"
    },
    "borrowApr": {
      "type": "number",
      "maximum": 1,
      "minimum": 0
    },
    "holdingDays": {
      "type": "number",
      "minimum": 0
    },
    "horizonDays": {
      "type": "number",
      "exclusiveMinimum": 0
    },
    "pricingTier": {
      "enum": [
        "STANDARD",
        "VOLUME",
        "ENTERPRISE"
      ],
      "type": "string"
    },
    "jurisdiction": {
      "enum": [
        "US",
        "BR"
      ],
      "type": "string"
    },
    "referrerWallet": {
      "type": "string"
    },
    "borrowerAddress": {
      "type": "string"
    },
    "collateralAsset": {
      "type": "string",
      "minLength": 1
    },
    "collateralAmount": {
      "type": "number",
      "exclusiveMinimum": 0
    },
    "collateralPriceUsd": {
      "type": "number",
      "exclusiveMinimum": 0
    },
    "liquidityNeededUsd": {
      "type": "number",
      "exclusiveMinimum": 0
    },
    "marginalOrdinaryRate": {
      "type": "number",
      "maximum": 0.5,
      "minimum": 0
    },
    "collateralCostBasisUsd": {
      "type": "number",
      "minimum": 0
    }
  }
}
classify_deductible_expense — Classify Deductible Business Expense (FREE)
Advertised by the server during the last successful anonymous check.

CALL BEFORE PAYING AI, CLOUD, SAAS OR CONTRACTOR INVOICES (FREE). Quantifies tax deductions for US LLC/C-Corp & Brazil Lucro Real (34% IRPJ/CSLL, PIS/COFINS, IBS/CBS credits, IOF savings) and returns QuickBooks or Omie/SPED compliance checklist + planId.

classify_deductible_expense input schema
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "required": [
    "jurisdiction",
    "regime",
    "vendorName",
    "description",
    "amountUsd"
  ],
  "properties": {
    "regime": {
      "enum": [
        "INDIVIDUAL",
        "LLC_PASS_THROUGH",
        "C_CORP",
        "PF_LEI_14754",
        "PF_DOMESTIC",
        "PJ_LUCRO_REAL",
        "PJ_SIMPLES_EXPORT"
      ],
      "type": "string"
    },
    "currency": {
      "enum": [
        "USD",
        "BRL"
      ],
      "type": "string"
    },
    "amountUsd": {
      "type": "number",
      "exclusiveMinimum": 0
    },
    "usdBrlRate": {
      "type": "number",
      "exclusiveMinimum": 0
    },
    "vendorName": {
      "type": "string",
      "minLength": 1
    },
    "description": {
      "type": "string",
      "minLength": 1
    },
    "pricingTier": {
      "enum": [
        "STANDARD",
        "VOLUME",
        "ENTERPRISE"
      ],
      "type": "string"
    },
    "jurisdiction": {
      "enum": [
        "US",
        "BR"
      ],
      "type": "string"
    },
    "referrerWallet": {
      "type": "string"
    },
    "fiscalDocumentId": {
      "type": "string"
    },
    "hasFiscalDocument": {
      "type": "boolean"
    },
    "paidWithInternationalCard": {
      "type": "boolean"
    }
  }
}
unlock_tax_plan — Unlock Full Tax Optimization Plan (x402)
Advertised by the server during the last successful anonymous check.

Unlocks exact SpecID/HIFO selectedLots, unsigned 0x/CoW/Jupiter swapIntent or Aave v3 0x calldata, and IRS Form 8949 / BR Lei 14.754 / QuickBooks / Omie-SPED accounting dossier. Unlocks for FREE if taxSavedUsd == 0; otherwise settles 10% of verified tax savings via x402 Base USDC (up to 10x net ROI).

unlock_tax_plan input schema
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "required": [
    "planId"
  ],
  "properties": {
    "planId": {
      "type": "string",
      "minLength": 1
    },
    "paymentSignature": {
      "type": "string",
      "description": "Optional x402 v2 PAYMENT-SIGNATURE / X-PAYMENT base64 payload to settle dynamic fee"
    }
  }
}
scan_wallet_tlh — Scan Wallet for Year-End TLH & Tax Savings ($0.01 x402)
Advertised by the server during the last successful anonymous check.

Scans up to 25 volatile tokens in an EVM wallet (Base/Ethereum/Arbitrum) for year-end Tax-Loss Harvesting candidates and HIFO/SpecID tax savings. Requires $0.01 USDC x402 `paymentSignature` on Base.

scan_wallet_tlh input schema
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "required": [
    "walletAddress"
  ],
  "properties": {
    "asset": {
      "type": "string",
      "description": "Token symbol or ALL (default ALL, scans up to 25 tokens)"
    },
    "chain": {
      "enum": [
        "base",
        "ethereum",
        "arbitrum"
      ],
      "type": "string"
    },
    "jurisdiction": {
      "enum": [
        "US",
        "BR"
      ],
      "type": "string"
    },
    "walletAddress": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{40}$",
      "description": "EVM wallet address (0x...) to scan for year-end TLH and HIFO tax savings"
    },
    "referrerWallet": {
      "type": "string"
    },
    "paymentSignature": {
      "type": "string",
      "description": "x402 v2 PAYMENT-SIGNATURE payload ($0.01 USDC on Base)"
    }
  }
}
pre_trade_check — Pre-Trade Swap/Sell Tax Guardrail ($0.01 x402)
Advertised by the server during the last successful anonymous check.

Run right before executing a DEX swap or sell: checks HIFO vs FIFO savings, 366-day US ST->LT tax cliffs, and Aave v3 borrow-vs-sell comparison. Requires $0.01 USDC x402 `paymentSignature` on Base.

pre_trade_check input schema
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "required": [
    "walletAddress",
    "sellAsset",
    "sellAmount"
  ],
  "properties": {
    "chain": {
      "enum": [
        "base",
        "ethereum",
        "arbitrum"
      ],
      "type": "string"
    },
    "sellAsset": {
      "type": "string",
      "minLength": 1,
      "description": "Token symbol to sell or swap (e.g. ETH, AERO, WBTC)"
    },
    "sellAmount": {
      "type": "number",
      "exclusiveMinimum": 0
    },
    "jurisdiction": {
      "enum": [
        "US",
        "BR"
      ],
      "type": "string"
    },
    "walletAddress": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{40}$"
    },
    "referrerWallet": {
      "type": "string"
    },
    "paymentSignature": {
      "type": "string",
      "description": "x402 v2 PAYMENT-SIGNATURE payload ($0.01 USDC on Base)"
    }
  }
}
check_br_35k_status — Brazil R$35k Exemption & Lei 14.754 Check ($0.005 x402)
Advertised by the server during the last successful anonymous check.

Calculates remaining R$35,000 monthly domestic crypto exemption vs Lei 14.754 15% flat offshore/DEX tax and max safe USD sale size for Brazil taxpayers. Requires $0.005 USDC x402 `paymentSignature` on Base.

check_br_35k_status input schema
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "usdBrlRate": {
      "type": "number",
      "exclusiveMinimum": 0
    },
    "plannedSaleUsd": {
      "type": "number",
      "default": 1000,
      "minimum": 0
    },
    "custodyLocation": {
      "enum": [
        "DOMESTIC",
        "OFFSHORE"
      ],
      "type": "string",
      "default": "DOMESTIC"
    },
    "monthlySalesBrl": {
      "type": "number",
      "default": 0,
      "minimum": 0
    },
    "paymentSignature": {
      "type": "string",
      "description": "x402 v2 PAYMENT-SIGNATURE payload ($0.005 USDC on Base)"
    }
  }
}

Prompts

Not advertised

No prompt definitions available.

Resources

Not advertised

No resource definitions available.

90-day uptime

A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.

100% (14 of 14 checks answered)

  1. 2026-11-26: 1 of 1 checks answered
  2. 2026-11-27: 4 of 4 checks answered
  3. 2026-11-28: 4 of 4 checks answered
  4. 2026-11-29: 4 of 4 checks answered
  5. 2026-11-30: 1 of 1 checks answered

30-day availability

Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.

Successful checks
1 of 1 (100%)
Average latency
630 ms
95th percentile latency
630 ms

Maintenance history

Public check and source-refresh events. Editorial and ownership records remain private.

  • · probe · passed · 630 ms · metadata changed · 7 tool(s)

Connect from your client

Each snippet registers the same endpoint; pick the client you use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Claude Code

Run this once in a terminal. It registers the remote server. Use --scope project to write .mcp.json for the repo.
Claude Code configuration
claude mcp add --transport http taxrail-mcp https://api.taxrail.online/mcp

Codex

Run this once. Codex stores MCP servers in ~/.codex/config.toml (or .codex/config.toml in a trusted project).
Codex configuration
codex mcp add taxrail-mcp --url https://api.taxrail.online/mcp

Cursor

Merge this server into .cursor/mcp.json in your project, then enable taxrail-mcp in your MCP settings.
Cursor configuration
{
  "mcpServers": {
    "taxrail-mcp": {
      "url": "https://api.taxrail.online/mcp"
    }
  }
}

Cline

Merge this into cline_mcp_settings.json (Cline → MCP Servers → Configure).
Cline configuration
{
  "mcpServers": {
    "taxrail-mcp": {
      "type": "streamableHttp",
      "url": "https://api.taxrail.online/mcp",
      "disabled": false
    }
  }
}

VS Code

Merge this server into .vscode/mcp.json. Use MCP: List Servers to start taxrail-mcp and inspect its tools.
VS Code configuration
{
  "servers": {
    "taxrail-mcp": {
      "type": "http",
      "url": "https://api.taxrail.online/mcp"
    }
  }
}

Gemini CLI

Run this once. It writes .gemini/settings.json in the current project; pass --scope user for ~/.gemini/settings.json.
Gemini CLI configuration
gemini mcp add --transport http taxrail-mcp https://api.taxrail.online/mcp

Claude Desktop

Open Claude Settings > Connectors > Add custom connector, enter this server URL and enable it for the conversation. This is a manual remote-connector handoff, not a desktop JSON configuration.
Claude Desktop configuration
https://api.taxrail.online/mcp

Windsurf

Merge this into ~/.codeium/windsurf/mcp_config.json, then refresh MCP in Cascade. Windsurf remote servers use serverUrl, not url.
Windsurf configuration
{
  "mcpServers": {
    "taxrail-mcp": {
      "serverUrl": "https://api.taxrail.online/mcp"
    }
  }
}

Let your agent find its tools

Find servers like TaxRail MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.