🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@codespar/mcp-efi

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codespar/mcp-efi

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

latest
npmnpm
Version
0.2.2
Version published
Maintainers
2
Created
Source

@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:

{
  "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)

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

  • Go to EFI Pay Dashboard
  • Create an account
  • Register an application to get OAuth2 credentials
  • 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.

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

Keywords

mcp

FAQs

Package last updated on 22 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts