AgentTax MCP服务器
MCP工具开发人员和人工智能代理的税务合规性,由 代理税务.
面向MCP工具开发人员
如果您构建了按使用收费的MCP工具,那么您在买家所在的州就有销售税义务。对于数字服务,大多数支付处理商都没有正确处理这一点。
将AgentTax添加到MCP设置中并调用 track_payment 每次付款后。就这样
{
"mcpServers": {
"agenttax": {
"command": "npx",
"args": ["@agenttax/mcp-server"],
"env": {
"AGENTTAX_API_KEY": "atx_live_your_key"
}
}
}
}付款后:
track_payment({
amount: 49.00,
buyer_state: "TX",
buyer_zip: "78701",
description: "MCP API access — monthly subscription",
payment_id: "pi_stripe_abc123",
source: "stripe"
})返回您的纳税义务、合规状态,并将其记录到您的帐户中。所有交易都可以在您的 AgentTax仪表板.
条纹webhook(全自动)
要在不手动调用任何工具的情况下进行全自动税务跟踪,请将您的Stripe webhook指向AgentTax:
- 在 Stripe 仪表盘→ 开发者→ 网络钩子,添加端点:
https://agenttax.io/api/v1/webhooks/stripe?key=atx_live_YOUR_KEY- 选择事件:
payment_intent.succeeded,checkout.session.completed,invoice.paid,charge.succeeded - 可选:设置
metadata.work_type在您的Stripe产品上(compute|research|content|consulting|trading)用于精确的税务分类
每笔付款都会自动分类、征税和记录。无需更改代码。
需要在Stripe付款上提供账单地址。在Stripe Checkout设置中启用完整地址收集。
______________________________________________________________________
安装
克劳德代码
claude mcp add agenttax -- npx @agenttax/mcp-server
export AGENTTAX_API_KEY=atx_live_your_key克劳德桌面/光标/风帆
添加到MCP配置文件中:
{
"mcpServers": {
"agenttax": {
"command": "npx",
"args": ["@agenttax/mcp-server"],
"env": {
"AGENTTAX_API_KEY": "atx_live_your_key"
}
}
}
}演示模式无需密钥即可工作(每天50次通话,无需帐户)。
______________________________________________________________________
工具
跟踪付款
跟踪您收到的付款并计算您的销售税负债。MCP工具开发人员的主要工具。
track_payment({
amount: 49.00,
buyer_state: "TX",
buyer_zip: "78701",
description: "MCP tool subscription",
payment_id: "pi_stripe_abc123",
source: "stripe"
})退货:
{
"payment_tracked": true,
"amount": 49.00,
"buyer_state": "TX",
"tax_owed": 4.04,
"tax_rate": 0.0825,
"taxable": true,
"work_type": "content",
"transaction_id": "atx_...",
"compliance_note": "$4.04 sales tax owed to TX. Remit to the state DOR."
}交易分类是自动的。集 description 为了获得最佳效果而销售的产品,或通过明确的 work_type 通过Stripe元数据字段。
计算最大值
完整的税务计算和完整的审计跟踪。当您需要管辖权详细信息、置信度评分和建议时,请使用此功能。
calculate_tax({
role: "seller",
amount: 500,
buyer_state: "TX",
buyer_zip: "78701",
transaction_type: "saas",
work_type: "content",
counterparty_id: "customer-abc",
is_b2b: false
})log_trade
记录买入或卖出以跟踪资本收益。
log_trade({
asset_symbol: "COMPUTE",
trade_type: "buy",
quantity: 100,
price_per_unit: 12.50
})卖出交易以成本为基础(FIFO、LIFO或特定ID)返回已实现的损益。
get_rates
获取美国所有51个司法管辖区或单个州的税率。
get_rates({ state: "TX", explain: true })configure_nexus
设置您在哪些州有经济联系。卖家获得非零税收结果所必需的。
configure_nexus({
nexus: {
TX: { hasNexus: true, reason: "Economic nexus" },
NY: { hasNexus: true, reason: "Physical presence" }
}
})健康检查
检查API运行状况和可用终结点。
______________________________________________________________________
获取API密钥
curl -X POST https://agenttax.io/api/v1/auth/signup \
-H "Content-Type: application/json" \
-d '{"email": "you@example.com", "password": "securepass", "agent_name": "my-mcp-server"}'保存 api_key.key 从响应来看,它只显示一次。
定价
| 级别 | 价格 | 通话/月 |
|---|---|---|
| 免费 | 0 | 100美元 |
| 起步价 | 每月25美元 | 10000 |
| 增长 | 99美元/月 | 100000 |
| 专业 | 199美元/月 | 1000000 |
| x402 | ~$0.001/通话 | 每次通话付费,无需注册 |
链接
许可证
麻省理工学院
