About mcp-nubank
mcp-nubank is an MCP server for Nubank, built on the Open Finance Brasil standard. The project is deprecated: the README states that its api.nubank.com.br host does not resolve, so no tool reaches a live service.
Key features
- 01Account, balance, transaction and bill queries
- 02PIX transfers, scheduled transfers and key management
- 03Debit and credit card lookup, block and unblock
- 04OAuth2 client credentials with mTLS certificate
Use cases
- 01Reference for tool design in Nubank MCP servers
- 02Reconnecting once a working endpoint is configured
MCP support
This is an MCP server that exposes 22 tools to MCP clients, covering account queries, PIX and card operations.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
npx -y @codespar/mcp-nubankNUBANK_CLIENT_IDSecretAPI key/token for nubankLocal servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
Tools
22Saved tool list · updated 2w ago
This tool takes no parameters.
Details
From the project README@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-nupayalready 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 withNUBANK_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
alphanpm dist-tag. Endpoint paths follow public docs and BACEN/provider conventions but have not been fully live-validated. Pin exact versions during0.x.x-alpha. Install withnpm 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
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.