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.
https://api.taxrail.online/mcpWhat its tools do
7 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.
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
- 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
{
"tools": {
"listChanged": true
}
}Tools
7 advertised
check_tax_impact — Check Crypto Disposal Tax Impact (FREE)
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.
{
"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)
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.
{
"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)
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.
{
"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)
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).
{
"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)
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.
{
"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)
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.
{
"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)
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.
{
"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
Resources
Not advertised
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.
- 2026-11-26: 1 of 1 checks answered
- 2026-11-27: 4 of 4 checks answered
- 2026-11-28: 4 of 4 checks answered
- 2026-11-29: 4 of 4 checks answered
- 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.
Claude Code
claude mcp add --transport http taxrail-mcp https://api.taxrail.online/mcpCodex
codex mcp add taxrail-mcp --url https://api.taxrail.online/mcpCursor
{
"mcpServers": {
"taxrail-mcp": {
"url": "https://api.taxrail.online/mcp"
}
}
}Cline
{
"mcpServers": {
"taxrail-mcp": {
"type": "streamableHttp",
"url": "https://api.taxrail.online/mcp",
"disabled": false
}
}
}VS Code
{
"servers": {
"taxrail-mcp": {
"type": "http",
"url": "https://api.taxrail.online/mcp"
}
}
}Gemini CLI
gemini mcp add --transport http taxrail-mcp https://api.taxrail.online/mcpClaude Desktop
https://api.taxrail.online/mcpWindsurf
{
"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.