
Xendit Mcp
io.github.mrslbt由 GitHub 帳號 mrslbt 發布v0.3.0更新於 Oct 24, 2026
Xendit payment APIs for AI agents. Payment links, payouts, balances, and transactions.
概覽
非官方的 Xendit 支付 API MCP 伺服器,讓助理查詢餘額、發票與交易,並在啟用後建立付款連結與撥款。
- 可以做什麼
- 依類型查詢帳戶餘額,列出或取得發票與交易紀錄
- 建立與作廢發票並回傳付款連結(預設關閉)
- 暫存、確認、取消與查詢撥款,並列出撥款通道(預設關閉)
- 說明目前運作模式並產生用戶端設定片段
- 提供餘額、近期收款、未付發票與每日摘要等內建提示詞
- 適用情境
- 適合在印尼、菲律賓、泰國、越南或馬來西亞使用 Xendit 的情境,希望助理回答餘額、發票與交易問題,或在明確的人工核准下準備付款連結與撥款。
- 執行需求
- 透過 npm 或 npx 在本機執行(需 Node.js)。需要 Xendit 帳戶與 XENDIT_API_KEY 中的 API 金鑰,建議先使用開發金鑰。啟用發票寫入或撥款需額外環境變數,撥款還必須設定四項安全限制,否則伺服器會拒絕啟動。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Xendit Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
xendit-mcp
[npm version] [npm downloads] [MCP Badge] [xendit-mcp MCP server] [License: MIT]
Model Context Protocol server for the Xendit payment API. Supports payment links via invoices, payouts/disbursements, balances, and transactions across Indonesia, the Philippines, Thailand, Vietnam, and Malaysia.
Install
Or run on demand with npx xendit-mcp.
Upgrading from 0.1.x
0.2.0 introduces breaking defaults. If you were on 0.1.x and relied on invoice creation or one-shot payouts working out of the box, those tools are now disabled by default.
To restore the old behavior, set these in your MCP config env:
If you enable disbursements, you must also set the four safety gates (XENDIT_MAX_DISBURSEMENT_AMOUNT, XENDIT_MAX_DAILY_AMOUNT, XENDIT_ALLOWED_ACCOUNTS, XENDIT_APPROVAL_CODE) or the server will refuse to start.
The recommended migration is to adopt the new two-step payout flow (prepare_disbursement → confirm_disbursement with an approval code) instead of re-enabling the legacy one-shot. See Safety for details.
User-facing modes
Think about the product in 3 modes:
read-only: balances, invoices read, transactions readinvoices: read-only pluscreate_invoiceandexpire_invoiceguarded-payouts: invoices mode plusprepare_disbursementandconfirm_disbursement
For non-technical users, the easiest helpers are:
doctorprints the current mode, enabled capabilities, and what is still blocked.setupgenerates a Claude Code or Claude Desktop snippet for the mode you want.
Configuration
- Sign up at the Xendit Dashboard.
- Go to Settings → API Keys and generate a key.
- Use a test key (
xnd_development_...) for development or a live key for production.
Guided setup
If you do not want to hand-edit env vars, run:
It will ask which client you use and which mode you want, then output a ready-to-paste Claude config snippet with placeholders for secrets.
If the MCP is already connected in Claude, you can also ask Claude to use:
get_workspace_modeguided_setup
guided_setup uses MCP elicitation in Claude Code when available, so the user sees a form instead of raw config details.
Claude Desktop
Edit claude_desktop_config.json:
Claude Code
Cursor
Add to ~/.cursor/mcp.json with the same shape as Claude Desktop.
Tools
Prompts
Resources
Example queries
With XENDIT_ENABLE_DISBURSEMENTS=true:
Environments
Xendit issues separate test and live API keys. Test keys operate against the Xendit sandbox, so no real funds move. Live keys (xnd_production_..., iluma_production_..., sk_live_...) operate against production.
Safety
This server can move real money through the Xendit API. Key safeguards:
- Read-only by default. Invoice write tools are disabled unless
XENDIT_ENABLE_INVOICE_MUTATIONS=true. Money-moving tools are disabled unlessXENDIT_ENABLE_DISBURSEMENTS=true. - Live keys are refused by default. Keys with the prefixes
xnd_production_,iluma_production_, orsk_live_are rejected at startup unlessXENDIT_ALLOW_LIVE=true. Always test with a development key (xnd_development_...) first. - Fail-closed money movement. If you enable disbursements, the server refuses to start unless
XENDIT_MAX_DISBURSEMENT_AMOUNT,XENDIT_MAX_DAILY_AMOUNT,XENDIT_ALLOWED_ACCOUNTS, andXENDIT_APPROVAL_CODEare configured. - Human-in-the-loop flow.
confirm_disbursementrequires both the staged token and a separateapprovalCode. - Legacy one-shot payouts stay off by default.
create_disbursementis not even registered unlessXENDIT_ENABLE_LEGACY_ONE_SHOT_DISBURSEMENT=true. - Hard caps and allowlists.
XENDIT_MAX_DISBURSEMENT_AMOUNT,XENDIT_MAX_DAILY_AMOUNT, andXENDIT_ALLOWED_ACCOUNTSlet you fail closed before a payout is sent. - Idempotency. Payout calls use your
externalIdas theIdempotency-Key, so safe retries do not create duplicate transfers. - Setup helpers are always available.
get_workspace_modeandguided_setupare exposed even in read-only mode so users can understand what is blocked and how to enable the next mode safely. - Important limitation. No MCP server can be fully immune to prompt injection if you expose sensitive read or write tools to an untrusted model context. These defaults reduce risk, but you should still only connect this server to trusted agent workflows.
Even with these gates on, review any money-moving request before approving the tool call. Treat tool inputs derived from model output as untrusted.
Payout lifecycle
A confirmed payout does not always succeed or fail immediately. Xendit returns one of these statuses, and the terminal state may arrive seconds or minutes later:
ACCEPTED— accepted by Xendit, channel processing in progressREQUESTED— submitted to the destination channel, waiting for the channel's responseSUCCEEDED— funds deliveredFAILED— final failure (e.g.INVALID_DESTINATION,REJECTED_BY_CHANNEL,INSUFFICIENT_BALANCE)
Some destinations (observed in PHP sandbox testing) sit in REQUESTED for a while before transitioning to FAILED. Always re-fetch with get_disbursement before assuming the final state. Do not treat the initial response from confirm_disbursement as proof of delivery.
Sandbox verification scope
0.2.0 was verified against the Xendit sandbox using IDR and PHP development keys (May 25, 2026). Verified flows:
- Invoice create / get / list / expire (IDR + PHP)
- Payout channel discovery (PHP)
- Guarded payout
prepare → confirm → get(IDR + PHP) - Negative payout reasons
INVALID_DESTINATIONandREJECTED_BY_CHANNEL(PHP only — the IDR sandbox key hadbalance: 0, so negative IDR cases surfaced asINSUFFICIENT_BALANCErather than destination-specific failures)
Thailand, Vietnam, and Malaysia behavior is not yet verified against real sandbox keys. Behavior should be similar but cannot be claimed as tested.
Optional Claude Code hardening
Claude Code supports PreToolUse hooks that can force an extra approval dialog for sensitive tools such as confirm_disbursement. That gives you a second control outside the model context.
Example .claude/settings.json snippet:
Disclaimer
This is an unofficial, community-built MCP server. Not affiliated with, endorsed by, or sponsored by Xendit. Xendit is a trademark of its respective owners. Use at your own risk. The author accepts no liability for funds lost through misuse, prompt injection, or bugs.
License
來源:README.md,提交 fb78bc5
工具
0版本歷史
1- v0.3.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分