Nubank

Finance and commerce

DEPRECATED: no live endpoint (api.nubank.com.br does not resolve).

Your AI app calls the Nubank MCP server, which does the finance and commerce work and sends the result back to the chat.

About Nubank

Nubank is a community MCP server from codespar, filed in our directory under finance and commerce. DEPRECATED: no live endpoint (api.nubank.com.br does not resolve).

Nubank runs on your own machine: your AI app starts it with the command npx -y @codespar/mcp-nubank@0.2.0-alpha.4 and talks to it over standard input and output. It needs NUBANK_CLIENT_ID set before Nubank starts.

Nubank is listed in the official MCP registry as io.github.codespar/mcp-nubank, version 0.2.0-alpha.4.

At a glance

Publisher
codespar (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @codespar/mcp-nubank
Written in
TypeScript
License
MIT
GitHub stars
278
Official MCP registry
io.github.codespar/mcp-nubank

How to set up Nubank

  1. Install Node.js on the machine that runs your AI app, because Nubank starts with npx and downloads its package on first run.
  2. Create NUBANK_CLIENT_ID for Nubank in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Nubank to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Nubank tools to confirm the connection.
  5. Run one read-only task with Nubank first, and keep your app asking before each tool call until the results look right.

Nubank compared with similar servers

  • Nupay by codespar has fewer GitHub stars than Nubank (278 against 278); both are community servers, and both run locally.
  • Niubiz by codespar has fewer GitHub stars than Nubank (278 against 278); both are community servers, and both run locally.
  • Nuvem Fiscal by codespar has fewer GitHub stars than Nubank (278 against 278); both are community servers, and both run locally.

Before you connect Nubank

  • Give Nubank its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Nubank tool call until you trust what it does with them.
  • Treat text that Nubank fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Nubank on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Nubank

How marketing and sales teams put Nubank to work, by company size. Pick the size closest to yours and start Nubank on one use case.

Small business

  • A small business can ask Nubank which products and customers drive margin, then plan promotions around them.
  • Owners can use Nubank to check refunds, failed payments and churn reasons without opening three dashboards.
  • Nubank runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Ecommerce teams can connect Nubank to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Nubank to check spend against budget each week and move money to what's working.
  • Start Nubank on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should keep Nubank read-only for agents, with any money movement handled by people and existing approvals.
  • Large commerce teams can use Nubank to answer revenue questions by channel and region with figures finance signs off on.
  • Nubank is a community server, so have security review the code and pin a version before Nubank touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Nubank README

From codespar/mcp-dev-latam on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

@codespar/mcp-nubank

Deprecated: no live endpoint. Measured on 2026-09-27 against two public DNS resolvers (8.8.8.8 and 1.1.1.1): api.nubank.com.br, the host this server calls, does not resolve in DNS. Nubank's only public API we found is NuPay for Business (api.spinpay.com.br), which @codespar/mcp-nupay already covers. No tool in this server reaches a service. The package is deprecated on npm and stays in this repository for reference only. If you have a working endpoint, point the server at it with NUBANK_BASE_URL. To bring the package back, open an issue in mcp-dev-latam with the provider's documented base URL.

MCP server for Nubank, Brazil's largest digital bank, using the Open Finance Brasil standard

Alpha release, published under the alpha npm dist-tag. Endpoint paths follow public docs and BACEN/provider conventions but have not been fully live-validated. Pin exact versions during 0.x.x-alpha. Install with npm install @codespar/mcp-nubank@alpha.

Quick Start

# Set your credentials
export NUBANK_CLIENT_ID="your-client-id"
export NUBANK_CLIENT_SECRET="your-client-secret"
export NUBANK_CERT_PATH="/path/to/certificate.pem"

# Run via stdio
npx -y @codespar/mcp-nubank@alpha

# Run via HTTP
MCP_HTTP=true MCP_PORT=3000 npx -y @codespar/mcp-nubank@alpha

Environment Variables

Variable Required Description
NUBANK_CLIENT_ID Yes OAuth2 client ID
NUBANK_CLIENT_SECRET Yes OAuth2 client secret
NUBANK_CERT_PATH Yes Path to mTLS certificate file
MCP_HTTP No Set to "true" to enable HTTP transport
MCP_PORT No HTTP port (default: 3000)

Tools (22)

Tool Purpose
get_accounts List all accounts (checking, savings)
get_balance Get account balance
get_transactions List transactions with filters
get_credit_card_bill Get credit card bill details
get_investments List investments and yields
initiate_pix Initiate a PIX transfer
get_pix_keys List registered PIX keys
get_statement Get account statement for a period
get_profile Get authenticated user profile information
list_cards List debit and credit cards
get_pix_transfer Get status and details of a specific PIX transfer
schedule_pix Schedule a future-dated PIX transfer
cancel_scheduled_pix Cancel a previously scheduled PIX transfer
create_pix_key Register a new PIX key for the authenticated account
delete_pix_key Remove a registered PIX key
get_card_details Get details for a single debit or credit card
block_card Block a card (reports lost/stolen or temporarily disables it)
unblock_card Unblock a previously blocked card (only valid for temporary blocks)
get_credit_card_transactions List transactions for a given credit card bill
pay_credit_card_bill Pay a credit card bill from a linked account
get_boleto Retrieve boleto details by barcode or digitable line
pay_boleto Pay a boleto from a linked account

Auth

Uses OAuth2 client credentials flow with mTLS certificate. Register your application through Nubank's Open Finance portal to obtain credentials.

API Reference

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.

Authentication

Set these environment variables before launching the server:

  • NUBANK_CLIENT_ID (required, secret), API key/token for nubank

Issue credentials at the provider's developer portal: https://openfinancebrasil.org.br.

License

MIT

Questions about Nubank

What is the Nubank MCP server?

DEPRECATED: no live endpoint (api.nubank.com.br does not resolve). Nubank is maintained by codespar on GitHub at codespar/mcp-dev-latam, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Nubank MCP server?

Add Nubank to your AI app's MCP config with the command npx -y @codespar/mcp-nubank@0.2.0-alpha.4. In Claude Code, run claude mcp add --transport stdio codespar-nubank -- npx -y @codespar/mcp-nubank@0.2.0-alpha.4. To run Nubank this way you need Node.js installed.

Does Nubank need an API key?

Yes. Nubank expects NUBANK_CLIENT_ID to be set. Create the key for Nubank in the connected service's own settings, give it the smallest permissions the job needs, and keep it out of shared config files.

Is Nubank an official MCP server?

No. Nubank is a community server maintained by codespar. Community servers can be excellent; read the code and the open issues before you give Nubank access to company data.

What license is Nubank under?

Nubank is released under the MIT license, according to its GitHub repository. The license covers the code of Nubank; the service it connects to has its own terms.