mcpField
M
mcp-nubank

mcp-nubank

Local
github.com/codesparFinance275Updated 4w ago

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

  1. 01Account, balance, transaction and bill queries
  2. 02PIX transfers, scheduled transfers and key management
  3. 03Debit and credit card lookup, block and unblock
  4. 04OAuth2 client credentials with mTLS certificate

Use cases

  1. 01Reference for tool design in Nubank MCP servers
  2. 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.

mcp.json · Universal config
{
"mcpServers": {
"codespar-mcp-nubank": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-nubank"
],
"env": {
"NUBANK_CLIENT_ID": "<NUBANK_CLIENT_ID>"
}
}
}
}
Run commandnpx -y @codespar/mcp-nubank
Environment variables to set
NUBANK_CLIENT_IDSecretAPI key/token for nubank

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@codespar/mcp-nubank0.2.0-alpha.4

Tools

22

Saved 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-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

npm License: MIT

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

VariableRequiredDescription
NUBANK_CLIENT_IDYesOAuth2 client ID
NUBANK_CLIENT_SECRETYesOAuth2 client secret
NUBANK_CERT_PATHYesPath to mTLS certificate file
MCP_HTTPNoSet to "true" to enable HTTP transport
MCP_PORTNoHTTP port (default: 3000)

Tools (22)

ToolPurpose
get_accountsList all accounts (checking, savings)
get_balanceGet account balance
get_transactionsList transactions with filters
get_credit_card_billGet credit card bill details
get_investmentsList investments and yields
initiate_pixInitiate a PIX transfer
get_pix_keysList registered PIX keys
get_statementGet account statement for a period
get_profileGet authenticated user profile information
list_cardsList debit and credit cards
get_pix_transferGet status and details of a specific PIX transfer
schedule_pixSchedule a future-dated PIX transfer
cancel_scheduled_pixCancel a previously scheduled PIX transfer
create_pix_keyRegister a new PIX key for the authenticated account
delete_pix_keyRemove a registered PIX key
get_card_detailsGet details for a single debit or credit card
block_cardBlock a card (reports lost/stolen or temporarily disables it)
unblock_cardUnblock a previously blocked card (only valid for temporary blocks)
get_credit_card_transactionsList transactions for a given credit card bill
pay_credit_card_billPay a credit card bill from a linked account
get_boletoRetrieve boleto details by barcode or digitable line
pay_boletoPay 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

Markdown supported

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.