mcp-nupay MCP Server
MCP server for NuPay — Nubank merchant checkout: Pix + wallet one-click for 100M+ BR users
mcp-nupay scores 45 (Fair), with no SPDX license recorded. It installs as a local process. It declares 22 tools. Filed under Finance. Package registries report about 61 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
45 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- No license recorded.
License, quality and maintenance
Quality: Grade A
89/100 for listing completeness. Lost points: 1 of 22 tools barely described, short summary, no docs link.
How quality is graded
Where the 45 comes from
22 + 10 + 0 + 0 + 10 + 3 = 45. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 10 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 0 of 10 points.Not archived, a secure install path, a pinned version.
Security: 10 of 10 points.A real summary, a README with depth, listed tools.
Docs: 3 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "codespar-nupay": { "command": "npx", "args": [ "-y", "@codespar/mcp-nupay@0.2.2" ], "env": { "NUPAY_MERCHANT_KEY": "", "NUPAY_MERCHANT_TOKEN": "YOUR_NUPAY_MERCHANT_TOKEN", "NUPAY_CLIENT_ID": "", "NUPAY_CLIENT_SECRET": "YOUR_NUPAY_CLIENT_SECRET", "NUPAY_ENV": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
NUPAY_MERCHANT_KEY | Required | NuPay X-Merchant-Key issued to your merchant |
NUPAY_MERCHANT_TOKENSecret | Required | NuPay X-Merchant-Token issued to your merchant |
NUPAY_CLIENT_ID | Optional | OAuth2/CIBA client_id for pre-authorized (recurrence) flows. Optional unless using backchannel_start / backchannel_complete. |
NUPAY_CLIENT_SECRETSecret | Optional | OAuth2/CIBA client_secret for pre-authorized flows. Optional unless using backchannel_* tools. |
NUPAY_ENV | Optional | sandbox | production. Defaults to sandbox. Drives both checkout API and auth base URLs. |
Tools22Tool docs quality grade C
All capabilitiesComplete a CIBA/OTP flow by submitting the OTP the shopper received.
Resend the OTP to the shopper for an in-flight authorization ticket.
Start a CIBA / OTP pre-authorization for a shopper.
cancel_paymenttoolCancel a payment that has not yet been captured/settled.
create_paymenttoolCreate a NuPay checkout payment.
Create a NuPay payment using a pre-authorized Bearer accesstoken (pre-auth / recurrence flow).
create_recipienttoolRegister a final beneficiary (required for regulatory split payments).
create_refundtoolRefund a settled payment (full or partial).
delete_recipienttoolRemove a registered recipient.
exchange_tokentoolExchange an authorizationcode or refreshtoken at POST /v1/token.
get_paymenttoolRetrieve full payment details (amount, shopper, items, current status, timestamps) by pspReferenceId.
Retrieve a payment's status by pspReferenceId.
About
@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)
| Tool | Purpose |
|---|---|
create_payment | Create a NuPay checkout payment. |
get_payment | Retrieve full payment details (amount, shopper, items, current status, timestamps) by pspReferenceId. |
get_payment_status | Retrieve a payment's status by pspReferenceId. |
list_payments_by_date | List payments created within a date range. |
cancel_payment | Cancel a payment that has not yet been captured/settled. |
create_refund | Refund a settled payment (full or partial). |
get_refund | Retrieve refund status by pspReferenceId + refundId. |
list_refunds | List all refunds issued against a given payment. |
create_recipient | Register a final beneficiary (required for regulatory split payments). |
get_recipient | Retrieve a registered recipient by referenceId. |
update_recipient | Update a registered final beneficiary (name, document, country, type). |
delete_recipient | Remove a registered recipient. |
list_recipients | List registered recipients (final beneficiaries) for the merchant. |
list_settlements | List settlement reports (payouts to the merchant bank account) within a date range. |
get_settlement | Retrieve a single settlement (payout batch) including the list of underlying transactions. |
query_payment_conditions | Query available installment/payment conditions for a given amount and (optionally) shopper CPF. |
create_preauth_payment | Create a NuPay payment using a pre-authorized Bearer access_token (pre-auth / recurrence flow). |
backchannel_start | Start a CIBA / OTP pre-authorization for a shopper. |
backchannel_complete | Complete a CIBA/OTP flow by submitting the OTP the shopper received. |
backchannel_resend_otp | Resend the OTP to the shopper for an in-flight authorization ticket. |
exchange_token | Exchange an authorization_code or refresh_token at POST /v1/token. |
revoke_token | Revoke an issued access_token or refresh_token at POST /v1/token/revoke. |
Install
npm install @codespar/mcp-nupay
Environment
NUPAY_MERCHANT_KEY="..." # X-Merchant-Key issued to your merchant
NUPAY_MERCHANT_TOKEN="..." # X-Merchant-Token (secret)
NUPAY_CLIENT_ID="..." # Optional — OAuth client_id for pre-auth / recurrence
NUPAY_CLIENT_SECRET="..." # Optional — OAuth client_secret
NUPAY_ENV="sandbox" # sandbox (default) | production
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:
| Sandbox | Production | |
|---|---|---|
| API | https://sandbox-api.spinpay.com.br | https://api.spinpay.com.br |
| Auth | https://sandbox-authentication.spinpay.com.br/api | https://authentication.spinpay.com.br/api |
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
# stdio (default)
npx @codespar/mcp-nupay
# HTTP
MCP_HTTP=true MCP_PORT=3000 npx @codespar/mcp-nupay
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
Frequently asked questions
What is mcp-nupay MCP Server?
MCP server for NuPay — Nubank merchant checkout: Pix + wallet one-click for 100M+ BR users
How do I install mcp-nupay MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. mcp-nupay MCP Server runs locally from the npm package @codespar/mcp-nupay with the command npx -y @codespar/mcp-nupay@0.2.2.
Does mcp-nupay MCP Server support remote (HTTP) connections?
No remote endpoint is listed for mcp-nupay MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does mcp-nupay MCP Server provide?
mcp-nupay MCP Server provides 22 tools, including backchannel_complete, backchannel_resend_otp, backchannel_start, and cancel_payment. See the full tool list for descriptions and parameters.
How is mcp-nupay MCP Server's trust score calculated?
mcp-nupay MCP Server scores 45 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.