Skip to main content
NU

Nubank

v0.2.0-alpha.2OAuth2alpha

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

What your agent can do

Nubank gives your agent 22 tools it calls directly β€” pick the ones it needs, in Claude, Cursor, or any MCP client.

  • get_accounts β€” List all accounts (checking, savings)
  • get_balance β€” Get account balance
  • get_transactions β€” List transactions with filters
Example call
// 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("get_accounts", { /* ... */ });

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

Run `npx -y @codespar/mcp-nubank` and add the config block above to your MCP client β€” Claude, Cursor, VS Code, or any MCP-compatible client. No build step, no SDK required. Prefer hosted? CodeSpar's managed tier runs it for you with auth handled.
Nubank β€” MCP server Β· 22 tools | CodeSpar