Mcp Efi

io.github.codesparPublished by GitHub account codesparv0.2.2Updated Oct 24, 2026

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

VerifiedSTDIODesktop onlyFinanceBusiness & Commerce

Overview

AI-generated overview

Local MCP server for the EFI (Gerencianet) payment API, letting an assistant create and inspect Pix charges, boletos, carnets and webhooks.

What you can do
  • Create and look up immediate Pix charges (cob) by txid, and list charges by date range
  • Create and read billing charges (boleto or credit card) and multi-parcel carnets
  • Create, read and update Pix due charges (cobv), and request or inspect Pix refunds (devolução)
  • List received Pix transactions and manage Pix keys, including creating random EVP keys and deleting keys
  • Register, list and delete Pix webhooks for a key
When to use it
Useful when an assistant should work with a Brazilian EFI/Gerencianet merchant account: drafting Pix charges, checking payment status, issuing boletos or carnets, or handling refunds and webhook setup. Test against the sandbox first before touching live payments.
Requirements
Runs locally via npx (Node.js) over stdio. Needs an EFI Pay account and an OAuth2 application; the README sets EFI_CLIENT_ID and EFI_CLIENT_SECRET, and the manifest lists EFI_CLIENT_SECRET as a required secret. Optional EFI_SANDBOX=true switches to the sandbox. Network access to the EFI API is required.
Before you install
These tools move real money: they create charges, request Pix refunds, delete Pix keys and register or delete webhooks, so mistakes or prompt-injected calls can bill customers or alter payment routing. Credentials EFI_CLIENT_ID and EFI_CLIENT_SECRET are sent to EFI; keep them out of shared configs and prefer the sandbox while testing. The README also advertises a separate paid enterprise offering.

Installation

In SourceWeft

  1. Open Mcp Efi in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

@codespar/mcp-efi

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

[npm] [License: MIT]

Quick Start

Claude Desktop

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

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

bash
claude mcp add efi -- npx @codespar/mcp-efi

Cursor / VS Code

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

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)

ToolPurpose
create_cobCreate an immediate Pix charge (cobranca imediata)
get_cobGet Pix charge details by txid
list_cobsList Pix charges by date range
create_chargeCreate a billing charge (boleto or credit card)
get_chargeGet charge details by ID
create_carnetCreate a carnet (payment booklet with multiple parcels)
get_pix_keyGet details of a registered Pix key
create_pix_evpCreate a random Pix key (EVP/alias)
create_cobvCreate a Pix due charge (cobranca com vencimento).
get_cobvGet Pix due charge (cobv) details by txid
update_cobvUpdate an existing Pix due charge (cobv) by txid
create_devolucaoRequest a Pix devolution (refund) on a received Pix transaction
get_devolucaoGet details of a Pix devolution by e2eId and devolution id
list_pix_receivedList received Pix transactions (recebidos) by date range
delete_pix_keyDelete a registered Pix key (DICT)
register_webhookRegister a webhook URL for a given Pix key
list_webhooksList registered webhooks by date range
delete_webhookDelete 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

VariableRequiredDescription
EFI_CLIENT_IDYesOAuth2 client ID
EFI_CLIENT_SECRETYesOAuth2 client secret
EFI_SANDBOXNoSet 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

Source: packages/payments/efi/README.md at commit d0a519a

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.2.2LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts