Mcp Efi

io.github.codespar由 GitHub 账号 codespar 发布v0.2.2更新于 Oct 24, 2026

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

已验证STDIO仅桌面金融商业与电商

概览

AI 生成的概览

面向 EFI(Gerencianet)支付 API 的本地 MCP 服务器,让助手创建和查询 Pix 收款、账单、分期付款册和 webhook。

可以做什么
  • 创建并按 txid 查询即时 Pix 收款(cob),按日期范围列出收款
  • 创建和读取账单收款(boleto 或信用卡)以及多期付款册(carnet)
  • 创建、读取和更新带到期日的 Pix 收款(cobv),申请或查询 Pix 退款(devolução)
  • 列出已收到的 Pix 交易,并管理 Pix 密钥,包括生成随机 EVP 密钥和删除密钥
  • 为指定密钥注册、列出和删除 Pix webhook
适用场景
适合需要让助手操作巴西 EFI/Gerencianet 商户账户的场景:起草 Pix 收款、查询支付状态、开具 boleto 或付款册、处理退款和配置 webhook。涉及真实支付前建议先在沙箱中测试。
运行要求
通过 npx(Node.js)以 stdio 在本地运行。需要 EFI Pay 账户和 OAuth2 应用;README 要求设置 EFI_CLIENT_ID 与 EFI_CLIENT_SECRET,清单将 EFI_CLIENT_SECRET 列为必需密钥。可选 EFI_SANDBOX=true 切换到沙箱。需要访问 EFI API 的网络连接。
安装前请注意
这些工具涉及真实资金:会创建收款、发起 Pix 退款、删除 Pix 密钥以及注册或删除 webhook,误操作或被提示注入的调用可能导致向客户收费或改变收款路由。凭据 EFI_CLIENT_ID 与 EFI_CLIENT_SECRET 会发送给 EFI,请勿放入共享配置,测试时优先使用沙箱。README 还宣传了另一项付费企业版服务。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcp Efi,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

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

来源:packages/payments/efi/README.md,提交 d0a519a

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分