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 分