Skip to main content
MCP server CX Codex

mcp-open-finance — Claude Code MCP server: what it does

Connects a coding agent to Open Finance Brasil: accounts, transactions, consents, cards, loans and investments. Useful when your code talks to Brazilian banking APIs.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add mcp-open-finance -e OPEN_FINANCE_CLIENT_SECRET=<OPEN_FINANCE_CLIENT_SECRET> -- npx -y @codespar/mcp-open-finance
Open on GitHub

What mcp-open-finance does

The server exposes 18 tools to the agent. Accounts and balances, transaction history, overdraft limits, consents (reading, creating, revoking), card bills and card purchases, loan payment schedules, financing contracts, investment products. Qualifications come in two flavours: personal (income, occupation) and business. A separate pair handles payment initiation — creating a payment consent and pushing a payment through it, PIX included.

Auth is OAuth2 client credentials. Every institution hands out its own base URL and a client ID with secret, so the server stays down until OPEN_FINANCE_BASE_URL, OPEN_FINANCE_CLIENT_ID and OPEN_FINANCE_CLIENT_SECRET are set. Sign up with a participating financial institution to get them. Sandbox access depends on the bank — check that first if you plan to test an integration.

The tool list includes revoke_consent and payment calls, which means an agent can touch real money and personal data. Set scopes and limits on the bank side before you wire it into anything automated. Runs on Node.js via npx.

What it helps with

  • pull a customer's account list and balances through Open Finance
  • read transaction history for one account
  • fetch credit card bills and card purchases
  • look up a loan repayment schedule
  • create a PIX payment consent and send the payment

Example prompts for the agent

  • List the client's accounts and show the balance for each one
  • Show transactions on this account for the last month
  • Create a PIX payment consent and run the payment

How to install mcp-open-finance

Platform CLI

claude mcp add mcp-open-finance -e OPEN_FINANCE_CLIENT_SECRET=<OPEN_FINANCE_CLIENT_SECRET> -- npx -y @codespar/mcp-open-finance

Replace <…> with your own values

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about mcp-open-finance

How do I install mcp-open-finance in Claude Code?

Run claude mcp add mcp-open-finance -e OPEN_FINANCE_CLIENT_SECRET=<OPEN_FINANCE_CLIENT_SECRET> -- npx -y @codespar/mcp-open-finance, with the remaining values set in the server config.

What does mcp-open-finance do?

It gives the agent 18 Open Finance Brasil tools: accounts, transactions, consents, credit cards, loans, financings, investments, customer qualifications and payments.

What do I need before the server will start?

An institution's API base URL plus OAuth2 client credentials. A participating bank issues the client ID and secret.

Similar MCP servers

Everything for Finance and business →

From the same set40

mcp-quickbooks Wires QuickBooks Online into your agent with 22 tools for customers, invoices, payments, items, bills and a P&L report. Handy when the books sit in QuickBooks and you would rather stay in the terminal. CX Codex +1 ★ 274repo stars mcp-pix-bcb An MCP server that lets the agent run Pix BCB operations: charges, refunds, DICT keys and webhooks against your bank's API. CX Codex +1 ★ 274repo stars mcp-payway Gives an AI agent access to the Payway gateway: tokenize a card, charge it, capture or refund. Built for teams wiring payments into an Argentine merchant setup. CX Codex +1 ★ 274repo stars mcp-pagbrasil Wires three PagBrasil tools into your agent: create an order, check its status, issue a refund. Useful when your store sells into Brazil and takes Pix or boleto. CX Codex +1 ★ 274repo stars mcp-nuvem-fiscal An MCP server that connects your agent to Nuvem Fiscal for issuing NF-e, NFS-e, NFC-e, CT-e and MDF-e, plus CNPJ and CEP lookups. CX Codex +1 ★ 274repo stars mcp-niubiz An MCP server for Peru's Niubiz acquirer. It opens a checkout session, authorizes the payment and reverses it the same day. CX Codex +1 ★ 274repo stars mcp-moonpay Hands the agent MoonPay tools: quote and place buy or sell orders, check KYC status, and sign payment widget links. CX Codex +1 ★ 274repo stars mcp-mercado-libre Wires Mercado Libre into your coding agent: product search, orders, shipments, buyer questions and reviews. Useful if you sell on the marketplace and work from chat. CX Codex +1 ★ 274repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor