Skip to main content
IT

Itaú

v0.2.0-alpha.2OAuth2alpha

El banco privado más grande de BR. API bancaria directa para Pix de alto volumen, boleto, estados de cuenta y pago de cuentas/impuestos. OAuth2 + mTLS (requisito del BACEN para Pix v2). Alpha en npm — devportal.itau.com.br está cerrado por contrato, paths de endpoint marcados con TODO(verify).

22 herramientas5 env vars🇧🇷 Brasilalpha — validación pendiente

Qué puede hacer tu agente

Itaú le da a tu agente 22 tools que llama directo — elegí las que necesite, en Claude, Cursor o cualquier cliente MCP.

  • get_oauth_tokenMint or return a cached OAuth2 client_credentials bearer token for the Itaú Developer Portal. Exposed so agents can inspect token freshness; normal tool calls obtain tokens implicitly.
  • send_pixInitiate an outbound Pix payment from the merchant's Itaú account. Amount in BRL major units (e.g. '10.50').
  • create_pix_qrCreate a dynamic Pix charge with QR code (cob). Returns the txid, copy-paste EMV payload, and location URL.
Ejemplo de llamada
// 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_oauth_token", { /* ... */ });

Instalar

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

Quickstart

Agregá esta entrada a tu claude_desktop_config.json (o a la config de cualquier cliente compatible con MCP).

claude_desktop_config.json
{
  "mcpServers": {
    "itau": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-itau@alpha"
      ],
      "env": {
        "ITAU_CLIENT_ID": "<your_itau_client_id>",
        "ITAU_CLIENT_SECRET": "<your_itau_client_secret>",
        "ITAU_CERT_PATH": "<your_itau_cert_path>",
        "ITAU_KEY_PATH": "<your_itau_key_path>"
      }
    }
  }
}

Después de reiniciar, tu agente puede llamar cualquiera de las 22 herramientas de abajo — probá get_oauth_token primero.

Variables de entorno · 5

Necesarias para autenticar el server. Almacenadas cifradas al usar el hosting gestionado de CodeSpar.

ITAU_CLIENT_ID
obligatorio

Itaú OAuth client_id issued via the Developer Portal after contract onboarding.

ITAU_CLIENT_SECRET
obligatoriosecret

Itaú OAuth client_secret.

ITAU_CERT_PATH
obligatorio

Absolute path to the mTLS client certificate (.crt or .pem). BACEN mandates mTLS for Pix v2.

ITAU_KEY_PATH
obligatoriosecret

Absolute path to the mTLS private key (.key or .pem).

ITAU_ENV
opcional

Environment: 'sandbox' or 'production'. Defaults to 'sandbox'.

Herramientas disponibles · 22

Cada herramienta es independiente — tu agente carga solo lo que necesita para reducir contexto y tiempo de respuesta.

READget_oauth_token
Mint or return a cached OAuth2 client_credentials bearer token for the Itaú Developer Portal. Exposed so agents can inspect token freshness; normal tool calls obtain tokens implicitly.
WRITEsend_pix
Initiate an outbound Pix payment from the merchant's Itaú account. Amount in BRL major units (e.g. '10.50').
WRITEcreate_pix_qr
Create a dynamic Pix charge with QR code (cob). Returns the txid, copy-paste EMV payload, and location URL.
READget_pix
Retrieve a Pix transaction by its BCB endToEndId (E<ispb><yyyymmddhhmm><sequence>).
READresolve_dict_key
Resolve a DICT key (CPF, CNPJ, email, phone, EVP) to the owner's account data before sending a Pix. Subject to BCB rate limits per consenting payer.
DELETErefund_pix
Refund (devolução) a previously received Pix. Must reference the original endToEndId and a merchant-side refund id.
WRITEcreate_boleto
Issue a boleto via Itaú Cobrança. Returns nosso_numero, linha_digitável, barcode, and PDF URL.
READget_boleto
Retrieve a boleto by its Itaú identifier (id or nosso_numero).

Frameworks compatibles

MCP es un protocolo — cualquier framework que lo hable puede montar este server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Cualquier cliente MCPProtocolo

Preguntas frecuentes

Corré `npx -y @codespar/mcp-itau` y agregá el bloque de config de arriba a tu cliente MCP — Claude, Cursor, VS Code o cualquier cliente compatible con MCP. Sin build, sin SDK. ¿Preferís hosted? El tier gestionado de CodeSpar lo corre por vos, con la auth resuelta.
Itaú — MCP server · 22 tools | CodeSpar