Efi

Finance and commerce

MCP server for EFI (Gerencianet), Pix, charges, carnets, cobranças.

Your AI app calls the Efi MCP server, which does the finance and commerce work and sends the result back to the chat.

About Efi

Efi is a community MCP server from codespar, filed in our directory under finance and commerce. MCP server for EFI (Gerencianet), Pix, charges, carnets, cobranças.

Efi runs on your own machine: your AI app starts it with the command npx -y @codespar/mcp-efi@0.2.2 and talks to it over standard input and output. It needs EFI_CLIENT_SECRET set before Efi starts.

Efi is listed in the official MCP registry as io.github.codespar/mcp-efi, version 0.2.2.

At a glance

Publisher
codespar (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @codespar/mcp-efi
Written in
TypeScript
License
MIT
GitHub stars
278
Official MCP registry
io.github.codespar/mcp-efi

How to set up Efi

  1. Install Node.js on the machine that runs your AI app, because Efi starts with npx and downloads its package on first run.
  2. Create EFI_CLIENT_SECRET for Efi in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Efi to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Efi tools to confirm the connection.
  5. Run one read-only task with Efi first, and keep your app asking before each tool call until the results look right.

Efi compared with similar servers

  • Epayco by codespar has fewer GitHub stars than Efi (278 against 278); both are community servers, and both run locally.
  • Ebanx by codespar has fewer GitHub stars than Efi (278 against 278); both are community servers, and both run locally.
  • Evolution API by codespar has fewer GitHub stars than Efi (278 against 278); both are community servers, and both run locally.

Before you connect Efi

  • Give Efi its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Efi tool call until you trust what it does with them.
  • Treat text that Efi fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Efi on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Efi

How marketing and sales teams put Efi to work, by company size. Pick the size closest to yours and start Efi on one use case.

Small business

  • A small business can ask Efi which products and customers drive margin, then plan promotions around them.
  • Owners can use Efi to check refunds, failed payments and churn reasons without opening three dashboards.
  • Efi runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Ecommerce teams can connect Efi to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Efi to check spend against budget each week and move money to what's working.
  • Start Efi on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should keep Efi read-only for agents, with any money movement handled by people and existing approvals.
  • Large commerce teams can use Efi to answer revenue questions by channel and region with figures finance signs off on.
  • Efi is a community server, so have security review the code and pin a version before Efi touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Efi README

From codespar/mcp-dev-latam on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

@codespar/mcp-efi

MCP server for EFI (Gerencianet), Pix charges, boleto, credit card, and carnets

Quick Start

Claude Desktop

Add to ~/.config/claude/claude_desktop_config.json:

{
  "mcpServers": {
    "efi": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-efi"],
      "env": {
        "EFI_CLIENT_ID": "your-client-id",
        "EFI_CLIENT_SECRET": "your-client-secret",
        "EFI_SANDBOX": "true"
      }
    }
  }
}
Claude Code
claude mcp add efi -- npx @codespar/mcp-efi
Cursor / VS Code

Add to .cursor/mcp.json or .vscode/mcp.json:

{
  "servers": {
    "efi": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-efi"],
      "env": {
        "EFI_CLIENT_ID": "your-client-id",
        "EFI_CLIENT_SECRET": "your-client-secret",
        "EFI_SANDBOX": "true"
      }
    }
  }
}

Tools (18)

Tool Purpose
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
create_charge Create a billing charge (boleto or credit card)
get_charge Get charge details by ID
create_carnet Create a carnet (payment booklet with multiple parcels)
get_pix_key Get details of a registered Pix key
create_pix_evp Create a random Pix key (EVP/alias)
create_cobv Create a Pix due charge (cobranca com vencimento).
get_cobv Get Pix due charge (cobv) details by txid
update_cobv Update an existing Pix due charge (cobv) by txid
create_devolucao Request a Pix devolution (refund) on a received Pix transaction
get_devolucao Get details of a Pix devolution by e2eId and devolution id
list_pix_received List received Pix transactions (recebidos) by date range
delete_pix_key Delete a registered Pix key (DICT)
register_webhook Register a webhook URL for a given Pix key
list_webhooks List registered webhooks by date range
delete_webhook Delete the webhook registered for a Pix key

Authentication

EFI uses OAuth2 client credentials. The server automatically manages token refresh.

Sandbox / Testing

EFI provides a sandbox at pix-h.api.efipay.com.br. Set EFI_SANDBOX=true to use it.

Get your credentials
  1. Go to EFI Pay Dashboard
  2. Create an account
  3. Register an application to get OAuth2 credentials
  4. Set the environment variables

Environment Variables

Variable Required Description
EFI_CLIENT_ID Yes OAuth2 client ID
EFI_CLIENT_SECRET Yes OAuth2 client secret
EFI_SANDBOX No Set to "true" for sandbox mode

Roadmap

v0.2 (planned)
  • create_devolucao, Create a Pix refund (devolucao)
  • get_devolucao, Get Pix refund details
  • list_locations, List Pix payload locations
  • create_webhook, Register a webhook for Pix notifications
  • update_cob, Update an existing Pix charge
v0.3 (planned)
  • batch_charges, Create multiple charges in a single request
  • split_payments, Configure split payment rules

Want to contribute? Open a PR or request a tool.

Links

Enterprise

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

License

MIT

Questions about Efi

What is the Efi MCP server?

MCP server for EFI (Gerencianet), Pix, charges, carnets, cobranças. Efi is maintained by codespar on GitHub at codespar/mcp-dev-latam, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Efi MCP server?

Add Efi to your AI app's MCP config with the command npx -y @codespar/mcp-efi@0.2.2. In Claude Code, run claude mcp add --transport stdio codespar-efi -- npx -y @codespar/mcp-efi@0.2.2. To run Efi this way you need Node.js installed.

Does Efi need an API key?

Yes. Efi expects EFI_CLIENT_SECRET to be set. Create the key for Efi in the connected service's own settings, give it the smallest permissions the job needs, and keep it out of shared config files.

Is Efi an official MCP server?

No. Efi is a community server maintained by codespar. Community servers can be excellent; read the code and the open issues before you give Efi access to company data.

What license is Efi under?

Efi is released under the MIT license, according to its GitHub repository. The license covers the code of Efi; the service it connects to has its own terms.