
Mcp Rinne
io.github.codespar由 GitHub 账号 codespar 发布v0.1.0更新于 Oct 24, 2026
Brazilian card acquiring API — merchants, cards-on-file, 3DS, PIX, banking, pricing.
概览
封装 Rinne 巴西支付 API,让助手管理商户、发起卡与 PIX 交易、划转资金并管理访问权限。
- 可以做什么
- 读取和更新当前认证公司及其下属商户,包括 KYC 入驻
- 创建和查看与支付服务商的 affiliation,保存、列出或删除已存卡
- 创建、认证、取消和退款卡、PIX 及钱包交易,并获取交易凭证
- 管理 PIX 收款密钥、账本条目、余额、对账单、银行账户、内部转账与出款
- 列出和修改手续费与成本策略、MCC,并获取 webhook 配置面板地址
- 管理 API 密钥、角色、权限和用户,并按 CEP 查询巴西地址
- 适用场景
- 适合需要让助手操作 Rinne 商户账户的场景:商户入驻、卡与 PIX 收款或退款、余额出款,或查看定价与账本数据。面向已经在沙箱或生产环境使用 Rinne 的团队,而非通用支付用途。
- 运行要求
- 通过 npx 从 npm 包本地运行,需要 Node.js。必须提供 RINNE_API_KEY,以 x-api-key 请求头发送。访问管理与邮编查询工具还需 RINNE_EMAIL 和 RINNE_PASSWORD 以获取 JWT 会话,可选 RINNE_COMPANY_ID。默认使用沙箱端点,将 RINNE_SANDBOX 设为 "false" 切换到生产。需要能访问 Rinne 的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Mcp Rinne,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
@codespar/mcp-rinne
MCP server for Rinne — Brazilian card acquiring, PIX, banking, and payment infrastructure, covering the full API surface
What is Rinne?
Rinne is a Brazilian payment infrastructure API. It runs a B2B2B model: your Organization manages any number of Merchants, each merchant onboards via KYC and connects to a payment provider (Rinne itself, Cappta, Celcoin, ...) through an Affiliation, and everything downstream flows through that affiliation — card and PIX transactions, cards-on-file, 3D Secure, cashouts/payouts, ledger, and pricing.
This MCP server wraps the entire Rinne REST API — not just card acquiring — so AI agents can manage merchants, run transactions, move money, and administer access in sandbox or production.
Quick Start
Claude Desktop
Add to ~/.config/claude/claude_desktop_config.json:
Claude Code
Cursor / VS Code
Add to .cursor/mcp.json or .vscode/mcp.json:
Tools (62)
Company
Merchants
Affiliations
Cards on file
3D Secure
Transactions
PIX (collection keys)
Ledger
Banking
Cashouts
Pricing
Webhooks
System
Access management — JWT required
Users
Zipcode — JWT required
Sandbox
Card data is never sent in the clear
Rinne does not accept a raw card number or CVV over this API. Every number/cvv field (and, for Apple Pay/Google Pay, network_token/cryptogram) must already be an encrypted token ("ev:...") produced by the rinne-js Card/Wallet Element running in a browser — a raw PAN/CVV is rejected with 400 VALIDATION_ERROR, and there is no server-side encryption path.
In practice, this server is the second half of a checkout: run a rinne-js flow (see rinne-js docs) to collect and encrypt the card client-side, then hand the resulting token to store_card or create_transaction here to finish the operation. Alternatively, use card_id on create_transaction to charge a card already saved via store_card.
Organization vs. merchant scope
Every resource that operates on transactions, cards, 3DS sessions, affiliations, or banking accepts an optional merchant_id:
- Omitted — acts at the organization/self level.
- Provided — acts on that specific merchant (
/v1/merchants/{merchant_id}/...), for an organization managing multiple merchants.
refund_transaction, get_statement, and create_pix_collection_key/list_pix_collection_keys always require merchant_id — they only exist at the merchant level.
Two PIX key resources — don't confuse them
Rinne has two distinct PIX-key resources with similarly-named endpoints:
create_pix_collection_key(/v1/merchants/{id}/pix/keys) — a key the merchant uses to receive PIX payments, tied to a provider affiliation (provider,key_type).register_cashout_pix_key(/v1/merchants/{id}/pix-keysor/v1/companies/me/pix-keys) — an external key registered as a payout destination for cashouts (key,primary).
Authentication
Most of the API uses x-api-key, but Rinne's access-management surface deliberately rejects it — a leaked API key must not be able to create other keys, roles, or users. Those tools need a JWT session instead:
This server logs in lazily on the first JWT-gated tool call and caches the token, re-logging-in once on a 401. If RINNE_COMPANY_ID is set, it selects that company right after login (for accounts with access to multiple companies). If RINNE_EMAIL/RINNE_PASSWORD aren't set, JWT-gated tools return a clear error instead of failing silently — the rest of the server works fine without them.
Sandbox / Testing
Defaults to sandbox (https://api-sandbox.rinne.com.br/core). Set RINNE_SANDBOX=false for production (https://api.rinne.com.br/core).
Sandbox simulation rules
Call get_sandbox_guide for the full JSON, or see below:
Test cards
Outcome by amount
The last two digits of the amount (in cents) determine the result — not the card number:
Example: amount: 1051 → REFUSED with code 51.
PIX
Use simulate_pay_transaction (sandbox only) to mark a WAITING_PAYMENT PIX transaction as paid.
Reference: Rinne testing guide
Environment Variables
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/rinne/README.md,提交 d0a519a
工具
0版本历史
1- v0.1.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分