
Mcp Nupay
io.github.codesparPublished by GitHub account codesparv0.2.2Updated Oct 24, 2026
MCP server for NuPay — Nubank merchant checkout: Pix + wallet one-click for 100M+ BR users
Overview
MCP server for NuPay, Nubank's Brazilian merchant checkout, letting an assistant create, inspect, cancel and refund payments and manage payouts.
- What you can do
- Create, retrieve, list and cancel NuPay checkout payments, and check payment status by reference.
- Issue full or partial refunds and look up refund status and refund lists.
- Register, update, delete and list final beneficiaries (recipients) for split payments.
- List settlement reports and inspect individual payout batches and their transactions.
- Query installment and payment conditions for an amount, optionally with a shopper CPF.
- Run pre-authorized and recurrence flows: start and complete CIBA/OTP authorization, resend OTP, create pre-authorized payments, and exchange or revoke OAuth tokens.
- When to use it
- Useful when an assistant needs to operate a NuPay merchant account for Brazilian customers: taking checkout payments, handling refunds, tracking settlements, or building repeat-buyer one-click and recurrence flows.
- Requirements
- Runs locally over stdio via the npm package (Node.js), or over HTTP when MCP_HTTP and MCP_PORT are set. Requires NUPAY_MERCHANT_KEY and NUPAY_MERCHANT_TOKEN; NUPAY_CLIENT_ID and NUPAY_CLIENT_SECRET are needed only for the backchannel pre-authorization tools. NUPAY_ENV selects sandbox (default) or production and determines the API and auth base URLs. Network access to the NuPay/Spinpay endpoints is required.
Installation
In SourceWeft
- Open Mcp Nupay in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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
Source: packages/payments/nupay/README.md at commit d0a519a
Tools
0Version history
1- v0.2.2LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts