xendit-mcp
xendit-mcp (只读)
用于 Xendit 的极简只读 MCP 服务器。专为 CareNow 问题解决代理构建 — 用于查找付款、支出、退款和虚拟账户 (VA) 交易。绝不进行资金转移。
非官方项目。未与 Xendit 关联或受其认可。
为什么选择只读?
代理不应能够调用 create_disbursement、create_refund 或 expire_invoice — 即使是通过 Xendit 端字段的提示注入也不行。此服务器仅公开 GET 端点。为了实现深度防御,请同时使用权限范围限定为 *_READ 的 Xendit API 密钥。
Related MCP server: mcp-hevo-service
安装与运行
无需克隆。通过 npx 直接从 GitHub 安装:
{
"mcpServers": {
"xendit": {
"command": "npx",
"args": ["-y", "github:indratjhai/xendit-mcp"],
"env": {
"XENDIT_API_KEY": "xnd_development_..."
}
}
}
}首次运行时,npm 会克隆仓库、安装依赖项,并通过 prepare 脚本运行 npm run build。之后它将从缓存的安装中启动。
锁定特定提交以实现可重复性:
"args": ["-y", "github:indratjhai/xendit-mcp#<commit-sha>"]本地开发
git clone https://github.com/indratjhai/xendit-mcp.git
cd xendit-mcp
npm install
cp .env.example .env # fill in XENDIT_API_KEY
npm run devAPI 密钥
创建一个具有只读权限的密钥:
BALANCE_READINVOICE_READTRANSACTION_READDISBURSEMENT_READREFUND_READPAYMENT_REQUEST_READ
开发时请使用
xnd_development_...测试密钥。
工具
工具 | 用途 |
| 按类型(现金 / 持有 / 税务)查询账户余额 |
| 按 external_id、状态、日期范围筛选 |
| 按 ID 查询发票 |
| 核心工具 — 按 reference_id、类型、渠道、日期筛选 |
| 按 ID 查询交易 |
| 按 ID 查询支出 |
| 按您的参考编号查询支出 |
| 按 payment_request_id / invoice_id / reference_id 筛选 |
| 按 ID 查询退款 |
| 新版支付 API — 按 reference_id 筛选 |
| 按 ID 查询支付请求 |
| 虚拟账户 — 用于调查错误的虚拟账户支付 |
| 按 payment_id 查询虚拟账户支付 |
不包含的功能(设计使然)
create_invoice、expire_invoicecreate_disbursementcreate_refundcreate_payment_request任何 POST / PATCH / DELETE 操作
如果工作流需要进行变更操作,应在 Xendit 仪表板中手动完成,或通过人工审核的独立审批流程完成 — 而不是通过代理会话。
安全说明
API 密钥从
XENDIT_API_KEY环境变量中读取。绝不记录,绝不发送到工具输出。网络出口硬编码为
https://api.xendit.co— 不允许访问其他主机。路径组件 ID 经过
^[a-zA-Z0-9_-]+$验证并进行 URL 编码。所有工具输入均经过 zod 验证。
仅有的运行时依赖:
@modelcontextprotocol/sdk、zod。
许可证
MIT
Available Tools
13 toolsxendit_get_balanceA
Get Xendit account balance. Returns available balance by account type (CASH, HOLDING, TAX).
Inputs: accountType, currency.
xendit_get_disbursementA
Get disbursement status by Xendit disbursement ID. Use for refund/payout status lookups.
Inputs: disbursementId (required).
xendit_get_disbursement_by_external_idB
Look up disbursements by your external_id (usually CareNow reference). Returns array of matching disbursements.
Inputs: externalId (required).
xendit_get_fixed_vaB
Get fixed virtual account details by Xendit VA ID. Critical for Wrong VA investigations.
Inputs: vaId (required).
xendit_get_invoiceC
Get details of a specific invoice by Xendit invoice ID.
Inputs: invoiceId (required).
xendit_get_payment_requestB
Get payment request details by Xendit payment_request ID. The new Payments API replaces the legacy VA / charge flows.
Inputs: paymentRequestId (required).
xendit_get_refundC
Get refund details by Xendit refund ID.
Inputs: refundId (required).
xendit_get_transactionC
Get details of a specific transaction by Xendit transaction ID.
Inputs: transactionId (required).
xendit_get_va_paymentB
Look up a VA payment by payment_id (the ID returned in the VA paid callback).
Inputs: paymentId (required).
xendit_list_invoicesA
List invoices with optional filters. For Wrong VA / Payment Discrepancy, filter by external_id (usually the CareNow loan ID).
Inputs: externalId, status, limit, createdAfter, +2 more.
xendit_list_payment_requestsB
List payment requests with optional filters. Use reference_id for CareNow loan ID lookups.
Inputs: referenceId, paymentMethodId, customerId, limit.
xendit_list_refundsC
List refunds, optionally filtered by payment_request_id, invoice_id, or reference_id.
Inputs: paymentRequestId, invoiceId, referenceId, limit.
xendit_list_transactionsB
List transactions (payments, disbursements, fees, refunds, adjustments). Core tool for payment discrepancy and wrong VA investigations. Filter by reference_id to find a specific transaction.
Inputs: referenceId, type, status, channelCode, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Most tools are clearly distinct by resource type (e.g., balance, disbursement, invoice, transaction) and action (get vs. list), but there is some overlap between 'xendit_get_disbursement' and 'xendit_get_disbursement_by_external_id' as both retrieve disbursements, which could cause confusion. Descriptions help clarify the distinction, but the purpose overlap exists.
All tool names follow a consistent 'xendit_verb_noun' pattern with snake_case, using 'get' for single resource retrieval and 'list' for collections. This predictable naming scheme makes it easy for agents to understand and navigate the tool set without ambiguity.
With 13 tools, the count is well-scoped for a payment processing domain, covering key resources like balance, disbursements, invoices, transactions, and refunds. Each tool serves a specific purpose, and the number is neither too sparse nor overwhelming for the server's functionality.
The tool set provides comprehensive read operations (get and list) for all major payment-related resources, which is suitable for investigation and monitoring use cases. However, there are gaps in write operations (e.g., create, update, or delete for invoices or disbursements), limiting full lifecycle coverage, though this may be intentional for the server's focus.
Related MCP Connectors
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Read-only MCP server for interior design studios: projects, overviews, weekly activity. No writes.
Read-only MCP server for ClassQuill, a tutoring-business-management platform.
Read-only MCP server for The Quiet Protocol's engines, benchmarks, proof, and business data.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceRead-only SQL Server MCP server enabling safe database queries, table listing, and schema inspection with built-in security protections.MIT
- FlicenseNot gradedqualityDmaintenanceRead-only MCP server for Hevo Data API, enabling monitoring of pipelines, objects, destinations, models, and workflows with secure self-hosted credentials.-
- FlicenseBqualityDmaintenanceA secure, read-only MCP server that enables AI assistants to inspect transactions, vendor performance, wallet balances, and analytics through validated REST API calls.19-
- AlicenseNot gradedqualityBmaintenanceA read-only MCP server for Lunch Money that provides secure, retrieval-only access to financial data through ChatGPT Business, with OAuth authentication and enforced read-only restrictions.MIT