Mcp Stone

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

MCP server for Stone — open banking, payments, Pix, transfers

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

概览

AI 生成的概览

面向 Stone 开放银行的本地 MCP 服务器,让助手查询余额、发起转账与收款、刷卡与 Pix 支付,并管理应收账款和终端。

可以做什么
读取账户数据:余额、交易、对账单、支付、应收账款、终端与 webhook,支持筛选和状态查询。创建支付、银行转账、对外 Pix 付款、Pix 收款、boleto 账单和银行卡收款。将银行卡令牌化以便后续扣款。对已结算交易退款,取消已授权未捕获的交易。申请应收账款提前结算并查询提前结算额度。注册并列出 Stone 事件的 webhook 端点。
适用场景
适合让助手操作巴西的 Stone 商户账户:查看余额与对账单、发起或退款支付、开具 Pix 或 boleto 收款,以及处理应收账款和 POS 终端。建议先在 Stone 沙箱环境试用,再改用正式凭据。
运行要求
通过 npx 从 npm 包 @codespar/mcp-stone 在本地运行,需要 Node.js。需要 Stone OAuth2 凭据:STONE_CLIENT_ID 和 STONE_CLIENT_SECRET,需注册开发者并创建应用获取。可选 STONE_BASE_URL 和 STONE_AUTH_URL 用于覆盖 API 与令牌地址以接入沙箱。需要访问 Stone API 的网络。
安装前请注意
这些凭据可访问真实金融账户并调动资金:转账、Pix 付款、银行卡收款、退款、取消和提前结算都会实际调用 Stone API。请将密钥放在环境变量中,测试时优先使用沙箱凭据。注册 webhook 会更改账户配置。README 指出 0.2.2 及更早版本使用了不存在的令牌主机,导致所有工具在认证阶段失败。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@codespar/mcp-stone

MCP server for Stone — acquiring (card / Pix / boleto), anticipations, receivables, terminals, and open banking

[npm] [License: MIT]

Quick Start

Claude Desktop

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

json
{  "mcpServers": {    "stone": {      "command": "npx",      "args": ["-y", "@codespar/mcp-stone"],      "env": {        "STONE_CLIENT_ID": "your-client-id",        "STONE_CLIENT_SECRET": "your-client-secret"      }    }  }}

Claude Code

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

Cursor / VS Code

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

json
{  "servers": {    "stone": {      "command": "npx",      "args": ["-y", "@codespar/mcp-stone"],      "env": {        "STONE_CLIENT_ID": "your-client-id",        "STONE_CLIENT_SECRET": "your-client-secret"      }    }  }}

Tools (21)

ToolPurpose
get_balanceGet account balance
list_transactionsList account transactions
get_statementGet account statement for a period
create_paymentCreate a payment via Stone
get_paymentGet payment details by ID
list_paymentsList payments with optional filters
create_transferCreate a bank transfer (internal or external)
create_pix_paymentCreate a Pix payment (outbound) via Stone
create_pix_chargeCreate a Pix charge (QR Code / cob) to receive a payment
create_boletoCreate a boleto bancário for charging a customer
create_card_chargeCharge a credit or debit card (Stone acquiring)
tokenize_cardTokenize a card to PCI-safe token for later charging
refund_transactionRefund a settled transaction (full or partial)
cancel_transactionCancel an authorized (not-yet-captured) transaction
create_anticipationAnticipate future receivables (Stone's flagship 'antecipação')
get_anticipation_limitsGet current anticipation limits (max / min / available) for a merchant
list_receivablesSearch receivables (future credits from card transactions)
list_terminalsList physical Stone / TON terminals for a merchant
get_terminal_statusGet current status of a specific POS terminal (online / offline / last seen)
register_webhookRegister a webhook endpoint for Stone events
list_webhooksList registered webhook endpoints

Authentication

Stone uses OAuth2 client credentials for authentication. The server automatically manages token refresh.

Sandbox / Testing

Stone provides a sandbox via the developer portal.

Get your credentials

  1. Go to Stone Open Bank Documentation
  2. Register as a developer
  3. Create an application to get OAuth2 credentials
  4. Set the environment variables

Environment Variables

VariableRequiredDescription
STONE_CLIENT_IDYesOAuth2 client ID
STONE_CLIENT_SECRETYesOAuth2 client secret
STONE_BASE_URLNoOverride base URL (default https://api.openbank.stone.com.br/api/v1; sandbox https://sandbox-api.openbank.stone.com.br/api/v1)
STONE_AUTH_URLNoOverride the OAuth2 token URL (default https://accounts.openbank.stone.com.br/auth/realms/stone_bank/protocol/openid-connect/token; sandbox https://sandbox-accounts.openbank.stone.com.br/auth/realms/stone_bank/protocol/openid-connect/token). Up to 0.2.2 the token call went to login.openbank.stone.com.br, which does not exist, so every tool failed at authentication.

Roadmap

v0.3 (planned)

  • list_pix_keys — List registered Pix keys for a merchant
  • create_recipient — Marketplace / split recipients
  • create_transfer_batch — Batch transfer processing
  • get_boleto — Fetch boleto details
  • create_scheduled_payment — Schedule future-dated payments
  • list_payouts — List anticipation / settlement payouts

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/stone/README.md,提交 d0a519a

工具

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

版本历史

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

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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