Skip to main content
OP

Open Finance

v0.2.1OAuth2

Open Finance Brasil standard: account data, transactions, consent management, and payment initiation across 100+ institutions.

18 tools1 env varsπŸ‡§πŸ‡· Brazilstable on npm

What your agent can do

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

  • list_accounts β€” List customer bank accounts via Open Finance
  • get_account_balance β€” Get account balance via Open Finance
  • list_transactions β€” List account transactions via Open Finance
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("list_accounts", { /* ... */ });

Install

terminal
$ npm install @codespar/mcp-open-finance

Quickstart

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

claude_desktop_config.json
{
  "mcpServers": {
    "open-finance": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-open-finance"
      ],
      "env": {
        "OPEN_FINANCE_CLIENT_SECRET": "<your_open_finance_client_secret>"
      }
    }
  }
}

After restart, your agent can call any of the 18 tools below β€” try list_accounts first.

Environment variables Β· 1

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

OPEN_FINANCE_CLIENT_SECRET
requiredsecret

API key for open-finance

Available tools Β· 18

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

READlist_accounts
List customer bank accounts via Open Finance
READget_account_balance
Get account balance via Open Finance
READlist_transactions
List account transactions via Open Finance
READget_account_overdraft_limits
Get account overdraft (limites) via Open Finance
READget_consent
Get consent details by ID
WRITEcreate_consent
Create a new consent request for data access
DELETErevoke_consent
Revoke an existing consent (data or payment)
READlist_credit_cards
List credit card accounts via Open Finance

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-open-finance` 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.
Open Finance β€” MCP server Β· 18 tools | CodeSpar