Skip to main content
EF

Efi

v0.2.1OAuth2

Direct Pix via BCB, charges, and carnets. One of the first fintechs authorized as a PSP by the Brazilian Central Bank.

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

What your agent can do

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

  • create_cob β€” Create an immediate Pix charge (cobranca imediata)
  • get_cob β€” Get Pix charge details by txid
  • list_cobs β€” List Pix charges by date range
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("create_cob", { /* ... */ });

Install

terminal
$ npm install @codespar/mcp-efi

Quickstart

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

claude_desktop_config.json
{
  "mcpServers": {
    "efi": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-efi"
      ],
      "env": {
        "EFI_CLIENT_SECRET": "<your_efi_client_secret>"
      }
    }
  }
}

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

Environment variables Β· 1

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

EFI_CLIENT_SECRET
requiredsecret

API key for efi

Available tools Β· 18

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

WRITEcreate_cob
Create an immediate Pix charge (cobranca imediata)
READget_cob
Get Pix charge details by txid
READlist_cobs
List Pix charges by date range
WRITEcreate_charge
Create a billing charge (boleto or credit card)
WRITEget_charge
Get charge details by ID
WRITEcreate_carnet
Create a carnet (payment booklet with multiple parcels)
READget_pix_key
Get details of a registered Pix key
WRITEcreate_pix_evp
Create a random Pix key (EVP/alias)

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-efi` 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.
Efi β€” MCP server Β· 18 tools | CodeSpar