
Mcp Nupay
io.github.codespar由 GitHub 帳號 codespar 發布v0.2.2更新於 Oct 24, 2026
MCP server for NuPay — Nubank merchant checkout: Pix + wallet one-click for 100M+ BR users
概覽
NuPay(Nubank 巴西商家結帳)的 MCP 伺服器,讓助理建立、查詢、取消與退款付款,並管理結算與收款人。
- 可以做什麼
- 建立、查詢、依日期列出並取消 NuPay 結帳付款,依參考號查看付款狀態。
- 發起全額或部分退款,查詢退款狀態與某筆付款的所有退款。
- 註冊、更新、刪除與列出最終收款人(分帳所需)。
- 列出結算報告,檢視單筆結算批次及其包含的交易。
- 依金額(可選擇帶入購物者 CPF)查詢分期與付款條件。
- 執行預先授權與回購流程:發起並完成 CIBA/OTP 授權、重送 OTP、建立預先授權付款,以及換取或撤銷 OAuth 權杖。
- 適用情境
- 適合需要為巴西客戶操作 NuPay 商家帳戶的情境:收款結帳、處理退款、追蹤結算,或為回購客戶建立一鍵付款與定期扣款流程。
- 執行需求
- 透過 npm 套件以 stdio 在本機執行(需 Node.js),設定 MCP_HTTP 與 MCP_PORT 時也可改用 HTTP。需要 NUPAY_MERCHANT_KEY 與 NUPAY_MERCHANT_TOKEN;只有使用 backchannel 預先授權工具時才需要 NUPAY_CLIENT_ID 與 NUPAY_CLIENT_SECRET。NUPAY_ENV 選擇 sandbox(預設)或 production,並決定 API 與驗證的基礎位址。需要能連線至 NuPay/Spinpay 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mcp Nupay,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
@codespar/mcp-nupay
MCP server for NuPay — Nubank's merchant checkout rail.
NuPay is Nubank's answer to PayPal / Shop Pay for Brazil: a wallet-backed checkout that leverages Nubank's 100M+ BR customer distribution. Agents create a payment, the shopper confirms inside the Nubank app (push + biometric) or via Pix, and funds settle to the merchant. Pre-authorized flows (CIBA / OTP) unlock recurrence and true one-click for repeat buyers.
Tools (22)
Install
Environment
Authentication
Two flows:
- Standard merchant API (payments, refunds, recipients, payment-conditions) uses
X-Merchant-Key+X-Merchant-Tokenheaders. No token exchange. - Pre-authorized / recurrence uses OAuth2 + CIBA / OTP. Start with
backchannel_start, validate viabackchannel_complete, then callcreate_preauth_paymentwith the returned Beareraccess_token. Refresh withexchange_token(grant_type=refresh_token). Access tokens expire in 5 minutes; refresh tokens should be stored long-term for recurrence.
Base URLs are derived from NUPAY_ENV:
JWT client_assertion signing is the caller's responsibility — exchange_token expects an already-signed assertion with client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer.
Run
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/nupay/README.md,提交 d0a519a
工具
0版本歷史
1- v0.2.2最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分