El riel de checkout para merchants de Nubank — one-click con saldo de billetera, Pix y recurrencia, respaldado por la distribución de más de 100M de clientes BR de Nubank. OpenAPI completo verificado; la plataforma base es Spinpay.
NuPay le da a tu agente 22 tools que llama directo — elegí las que necesite, en Claude, Cursor o cualquier cliente MCP.
create_payment — Create a NuPay checkout payment. Returns pspReferenceId + the redirect/QR payload the shopper needs to complete the charge (NuPay wallet push or Pix). Use merchant-key auth.get_payment — Retrieve full payment details (amount, shopper, items, current status, timestamps) by pspReferenceId. Use this for richer detail than get_payment_status.get_payment_status — Retrieve a payment's status by pspReferenceId.// Your agent calls a tool directly — no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("create_payment", { /* ... */ });$ npm install @codespar/mcp-nupayAgregá esta entrada a tu claude_desktop_config.json (o a la config de cualquier cliente compatible con MCP).
{
"mcpServers": {
"nupay": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-nupay"
],
"env": {
"NUPAY_MERCHANT_KEY": "<your_nupay_merchant_key>",
"NUPAY_MERCHANT_TOKEN": "<your_nupay_merchant_token>"
}
}
}
}Después de reiniciar, tu agente puede llamar cualquiera de las 22 herramientas de abajo — probá create_payment primero.
Necesarias para autenticar el server. Almacenadas cifradas al usar el hosting gestionado de CodeSpar.
NUPAY_MERCHANT_KEYNuPay X-Merchant-Key issued to your merchant
NUPAY_MERCHANT_TOKENNuPay X-Merchant-Token issued to your merchant
NUPAY_CLIENT_IDOAuth2/CIBA client_id for pre-authorized (recurrence) flows. Optional unless using backchannel_start / backchannel_complete.
NUPAY_CLIENT_SECRETOAuth2/CIBA client_secret for pre-authorized flows. Optional unless using backchannel_* tools.
NUPAY_ENVsandbox | production. Defaults to sandbox. Drives both checkout API and auth base URLs.
Cada herramienta es independiente — tu agente carga solo lo que necesita para reducir contexto y tiempo de respuesta.
create_paymentget_paymentget_payment_statuslist_payments_by_datecancel_paymentcreate_refundget_refundlist_refundsMCP es un protocolo — cualquier framework que lo hable puede montar este server.