Mcp Asaas

io.github.codespar由 GitHub 账号 codespar 发布v0.2.1更新于 Oct 24, 2026

MCP server for Asaas — billing automation, Pix, boleto, credit card, subscriptions

已验证STDIO仅桌面金融商业与电商

概览

AI 生成的概览

面向巴西 Asaas 支付平台的 MCP 服务器,让助手创建和管理收款、Pix 收款码、boleto、订阅与转账。

可以做什么
  • 创建、查询、更新、删除和退款收款单,支持 Pix、boleto 与信用卡分期
  • 获取收款的 Pix 二维码以及 boleto 可输入行与条码
  • 创建和列出客户,并查询客户详情
  • 创建、列出、查询和取消周期性订阅
  • 查询账户余额、创建用于分账的子账户,以及创建或列出银行转账(Pix 转出或 TED)
  • 列出 webhook 事件,并创建或列出 webhook 通知配置
适用场景
适合让助手直接处理 Asaas 的计费事务:开单、查询收款状态、管理订阅与客户,或查看转账和 webhook 事件。演示模式可在没有真实凭据的情况下构建和测试智能体。
运行要求
通过 npx 在本地运行(需要 Node.js)。需要 Asaas 账户,并在 ASAAS_API_KEY 环境变量中提供 API 密钥,除非使用演示模式(--demo 参数或 MCP_DEMO=true)。可选 ASAAS_SANDBOX=true 指向 Asaas 沙箱环境。需要能访问 Asaas 的网络。
安装前请注意
ASAAS_API_KEY 中的 API 密钥可访问真实支付账户。多个工具会动钱或改动记录:create_payment、create_transfer、refund_payment、cancel_subscription、delete_payment 和 update_payment。建议先用 ASAAS_SANDBOX 或演示模式测试,并复核智能体发起的扣款、退款或转账操作。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@codespar/mcp-asaas

MCP server for Asaas — billing automation with Pix, boleto, and credit card payments

[npm] [License: MIT]

Quick Start

Claude Desktop

Add to ~/.config/claude/claude_desktop_config.json:

json
{  "mcpServers": {    "asaas": {      "command": "npx",      "args": ["-y", "@codespar/mcp-asaas"],      "env": {        "ASAAS_API_KEY": "your-key",        "ASAAS_SANDBOX": "true"      }    }  }}

Claude Code

bash
claude mcp add asaas -- npx @codespar/mcp-asaas

Cursor / VS Code

Add to .cursor/mcp.json or .vscode/mcp.json:

json
{  "servers": {    "asaas": {      "command": "npx",      "args": ["-y", "@codespar/mcp-asaas"],      "env": {        "ASAAS_API_KEY": "your-key",        "ASAAS_SANDBOX": "true"      }    }  }}

Tools (24)

ToolPurpose
create_paymentCreate a payment in Asaas (Pix, boleto, or credit card); pass installments (>=2) with billingType: CREDIT_CARD to split into equal monthly installments
get_paymentGet payment details by ID
list_paymentsList payments with optional filters
get_pix_qrcodeGet Pix QR code for a payment (returns payload and image)
get_boletoGet boleto digitable line and barcode for a payment
create_customerCreate a customer in Asaas
list_customersList customers with optional filters
create_subscriptionCreate a recurring subscription
get_balanceGet current account balance
list_subscriptionsList subscriptions with optional filters
cancel_subscriptionCancel a subscription by ID
get_webhook_eventsList webhook events (payment confirmations, transfers, etc.)
create_subaccountCreate a subaccount for payment splitting
get_installmentsGet installment details for an existing payment by id, OR preview a hypothetical schedule by passing value + installments without an id
create_transferCreate a bank transfer (Pix out or TED)
create_pix_qrcodeGenerate a static PIX QR code for receiving payments
list_transfersList transfers with optional filters
create_notificationCreate a webhook notification configuration
list_notificationsList webhook notification configurations
get_customerGet customer details by ID
update_paymentUpdate a pending payment
delete_paymentDelete a payment by ID
refund_paymentRefund a received payment
get_subscriptionGet subscription details by ID

Authentication

Asaas uses an API key passed via the access_token header. You can generate your key from the Asaas dashboard.

Sandbox / Testing

Asaas provides a full sandbox environment at sandbox.asaas.com. Set ASAAS_SANDBOX=true to use it.

Get your credentials

  1. Go to Asaas
  2. Create an account or sign up for sandbox at sandbox.asaas.com
  3. Navigate to Integracoes > API and generate your API key
  4. Set the ASAAS_API_KEY environment variable

Environment Variables

VariableRequiredDescription
ASAAS_API_KEYYes (unless in demo mode)API key from Asaas dashboard
ASAAS_SANDBOXNoSet to "true" for sandbox mode
MCP_DEMONoSet to "true" (equivalent to passing --demo on the command line) for stateful demo-mode fixtures — no API key required

Demo mode

Pass the --demo flag (or set MCP_DEMO=true) to make every tool return deterministic fixture responses instead of calling the real Asaas API. Useful for building and testing agents without burning sandbox credentials.

The demo handlers for create_payment and get_installments are stateful: create_payment issues distinct ids per call (pay_demo_001, pay_demo_002, ...) and, when called with billingType: CREDIT_CARD + installments >= 2 + value > 0, records the installment schedule in an in-process ledger. A subsequent get_installments({ id }) against that id echoes the recorded schedule back. get_installments also supports a preview path — pass value + installments without an id and it returns a hypothetical schedule (status: "PREVIEW", preview: true) without creating a payment. Other tools return static fixture payloads.

bash
# Start the server in demo mode (no key required):npx -y @codespar/mcp-asaas --demo

Roadmap

v0.2 (planned)

  • list_subscriptions — List all recurring subscriptions with filters
  • cancel_subscription — Cancel an active subscription
  • get_webhook_events — List webhook events for debugging integrations
  • create_subaccount — Create a subaccount for marketplace splits
  • get_installments — Get installment details for a payment

v0.3 (planned)

  • create_anticipation — Request anticipation of receivables
  • get_fiscal_info — Get fiscal/tax information for payments
  • batch_payments — Create multiple payments in a single request

Want to contribute? Open a PR or request a tool.

Links

Enterprise

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

License

MIT

来源:packages/payments/asaas/README.md,提交 d0a519a

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分