AgentTax

io.github.AgentTaxv1.1.1更新于 Oct 8, 2026

US sales/use tax, nexus thresholds, capital gains and 1099-DA tools for AI agent transactions.

已验证STDIO仅桌面FinanceBusiness & Commerce

概览

AI 生成的概览

让助手记录收款与交易、计算美国销售税和使用税及资本利得,并查询各州经济关联门槛。

功能
AgentTax 提供面向 AI 代理与数字服务交易的美国税务合规工具。track_payment 记录收到的付款并返回应纳税额、税率、应税金额与合规说明;calculate_tax 给出按辖区分拆的计算结果、审计轨迹与置信度评分;ingest_transactions 可批量记录最多 100 笔交易。此外还覆盖经济关联(get_nexus_thresholds、get_nexus、configure_nexus)、税率(get_rates、get_local_rate、get_capital_gains_rates)、带已实现盈亏的交易记录,以及 1099-DA 草稿导出。
适用场景
适合运营付费 MCP 工具、API 或数字服务并需要按买方所在州跟踪美国销售税与使用税责任的场景,也适合需要查询各州经济关联门槛、销售税率、资本利得税率或数字资产交易 1099-DA 草稿数据的场景。
运行要求
通过 npx @agenttax/mcp-server 以 stdio 在本地运行,需要 Node.js。AgentTax 账号与 AGENTTAX_API_KEY 环境变量可解锁历史记录和大部分工具;没有密钥时以演示模式运行,每天 50 次调用。需要访问 agenttax.io 的网络连接。付费套餐自每月 25 美元起。
安装前请注意
该服务器会把付款与交易详情(包括买方所在州、邮编、金额和支付 ID)发送给 AgentTax。AGENTTAX_API_KEY 是密钥,注册时仅显示一次。track_payment、ingest_transactions、configure_nexus、log_trade 和 export_1099_da 会向你的账户写入数据。1099-DA 导出只是草稿,并非已申报的税表;税务结果仅供参考,不构成专业税务建议。

安装

在 SourceWeft 中

  1. 打开 控制台中的 AgentTax,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

AgentTax MCP Server

Tax compliance for MCP tool developers and AI agents, powered by AgentTax.

For MCP tool developers

If you build MCP tools that charge for usage, you have sales tax obligations in states where your buyers are located. Most payment processors don't handle this correctly for digital services.

Add AgentTax to your MCP setup and call track_payment after every payment. That's it.

json
{  "mcpServers": {    "agenttax": {      "command": "npx",      "args": ["@agenttax/mcp-server"],      "env": {        "AGENTTAX_API_KEY": "atx_live_your_key"      }    }  }}

After a payment:

track_payment({  amount: 49.00,  buyer_state: "TX",  buyer_zip: "78701",  description: "MCP API access — monthly subscription",  payment_id: "pi_stripe_abc123",  source: "stripe"})

Returns your tax liability, compliance status, and logs it to your account. All transactions are viewable in your AgentTax dashboard.

Stripe webhook (fully automated)

For fully automatic tax tracking without calling any tool manually, point your Stripe webhook to AgentTax:

  1. In Stripe Dashboard → Developers → Webhooks, add an endpoint:
    https://agenttax.io/api/v1/webhooks/stripe?key=atx_live_YOUR_KEY
  2. Select events: payment_intent.succeeded, checkout.session.completed, invoice.paid, charge.succeeded
  3. Optional: set metadata.work_type on your Stripe products (compute | research | content | consulting | trading) for precise tax classification

Every payment is automatically classified, taxed, and logged. No code changes required.

Requires a billing address on the Stripe payment. Enable full address collection in your Stripe Checkout settings.


Install

Claude Code

bash
claude mcp add agenttax -- npx @agenttax/mcp-serverexport AGENTTAX_API_KEY=atx_live_your_key

Claude Desktop / Cursor / Windsurf

Add to your MCP config file:

json
{  "mcpServers": {    "agenttax": {      "command": "npx",      "args": ["@agenttax/mcp-server"],      "env": {        "AGENTTAX_API_KEY": "atx_live_your_key"      }    }  }}

Demo mode works without a key (50 calls/day, no account required). Tools marked "Yes" below need AGENTTAX_API_KEY.


Tools

ToolWhat it doesKey needed
track_paymentLog a payment you received and get your sales tax liability. The main tool for paid MCP servers and APIs.Demo works; key for history
calculate_taxFull sales/use tax calculation with jurisdiction breakdown, audit trail, confidence score and advisoriesDemo works; key for full response
ingest_transactionsBulk-log up to 100 transactions (e.g. x402 purchases), idempotent on external_tx_idYes
list_transactionsYour transaction history with running totalsYes
get_nexus_thresholdsEach state's economic nexus thresholds (revenue / transaction count), notes and DOR sourceNo
get_nexusThe states you have configured nexus inYes
configure_nexusSet the states you have nexus in (merge semantics)Yes
log_tradeLog a buy/sell; sells return realized gain/loss with cost basisYes
list_tradesTrades you have loggedYes
export_1099_daDraft Form 1099-DA payload for realized digital-asset gainsYes (Pro)
get_ratesState sales tax rates and digital-goods taxability, all 51 jurisdictions or oneNo
get_local_rateCombined state + local rate for a zip codeNo
get_capital_gains_ratesState short/long-term capital gains ratesNo
get_pricingMachine-readable pricing contractNo
check_healthAPI health and endpoint listNo

Read-only tools carry the MCP readOnlyHint annotation so clients can auto-approve them.

track_payment

track_payment({  amount: 49.00,  buyer_state: "TX",  buyer_zip: "78701",  description: "MCP tool subscription",  payment_id: "pi_stripe_abc123",  source: "stripe"})

Returns tax_owed, tax_rate, taxable, transaction_id and a compliance_note. Classification comes from description. Sellers get $0 in states where no nexus is configured; the response says so in nexus_warning.

calculate_tax

calculate_tax({  role: "buyer",  amount: 500,  buyer_state: "TX",  buyer_zip: "78701",  transaction_type: "compute",  work_type: "compute",  counterparty_id: "seller-agent-123",  is_b2b: true})

Optional fields: seller_state / seller_zip (origin-sourced intrastate sales in TX, UT, AZ, TN and some OH sales), use_context (Maryland B2B), digital_content_type (with transaction_type: "digital_good"), seller_remitting.

Nexus

get_nexus_thresholds({ state: "NY" })          // what triggers registrationconfigure_nexus({ nexus: { TX: { hasNexus: true, reason: "Economic nexus" } } })get_nexus()                                     // what you have configured

Capital gains and 1099-DA

log_trade({ asset_symbol: "ETH", trade_type: "buy", quantity: 2, price_per_unit: 2500, asset_class: "crypto" })log_trade({ asset_symbol: "ETH", trade_type: "sell", quantity: 1, price_per_unit: 3100, asset_class: "crypto" })export_1099_da({ year: 2026 })                  // draft, not a filed return

Get an API Key

bash
curl -X POST https://agenttax.io/api/v1/auth/signup \  -H "Content-Type: application/json" \  -d '{"email": "[email protected]", "password": "securepass", "agent_name": "my-mcp-server", "agent_work_type": "compute"}'

All four fields are required; agent_work_type is one of compute, research, information_service, content, consulting, trading. Save the api_key.key from the response — it's only shown once.

Pricing

TierPriceCalls/month
Free$01,500
Starter$25/mo10,000
Growth$99/mo100,000
Pro$199/mo1,000,000
x402$0.005/call in USDC on BasePay per call, no signup

Current machine-readable pricing: get_pricing or GET https://agenttax.io/api/v1/pricing.

Links

License

MIT

来源:README.md,提交 3893fa2

工具

0
工具元数据尚未被收录。

版本历史

1
  1. v1.1.1最新Oct 8, 2026