Skip to main content
NU

Nubank

v0.2.0-alpha.1OAuth2alpha

Brazil's largest neobank via Open Finance. Account data, Pix, and transfers. Your agent reads balances and initiates payments.

22 tools1 env vars๐Ÿ‡ง๐Ÿ‡ท Brazilalpha โ€” pending validation

Install

terminal
$ npm install @codespar/mcp-nubank@alpha

Quickstart

Add this entry to your claude_desktop_config.json (or any MCP-compatible client config).

claude_desktop_config.json
{
  "mcpServers": {
    "nubank": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-nubank@alpha"
      ],
      "env": {
        "NUBANK_CLIENT_ID": "<your_nubank_client_id>"
      }
    }
  }
}

After restart, your agent can call any of the 22 tools below โ€” try get_accounts first.

Environment variables ยท 1

Required to authenticate the server. Stored encrypted when using CodeSpar managed hosting.

NUBANK_CLIENT_ID
requiredsecret

API key/token for nubank

Available tools ยท 22

Each tool is independent โ€” your agent loads only what it needs to reduce context and response time.

READget_accounts
List all accounts (checking, savings)
READget_balance
Get account balance
READget_transactions
List transactions with filters
READget_credit_card_bill
Get credit card bill details
READget_investments
List investments and yields
READinitiate_pix
Initiate a PIX transfer
READget_pix_keys
List registered PIX keys
READget_statement
Get account statement for a period

Compatible frameworks

MCP is a protocol โ€” any framework that speaks it can mount this server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Any MCP clientProtocol

Frequently asked questions

All credentials are encrypted at rest in an isolated vault scoped per organization. OAuth2 tokens are automatically refreshed before expiry. Your agent code never sees raw secrets โ€” it receives scoped, short-lived session tokens.
Servers โ€” Every LatAm commerce API your agent needs | CodeSpar