
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 分