Skip to main content
Glama

xendit-mcp

npm version npm downloads MCP Badge xendit-mcp MCP server License: MIT

用于 Xendit 支付 API 的模型上下文协议 (MCP) 服务器。支持印度尼西亚、菲律宾、泰国、越南和马来西亚的账单、付款、余额和交易。

安装

npm install -g xendit-mcp

或者使用 npx xendit-mcp 按需运行。

Related MCP server: rakuten-mcp

配置

  1. 在 Xendit 仪表板 注册。

  2. 前往“设置” → “API 密钥”并生成一个密钥。

  3. 开发环境请使用测试密钥 (xnd_development_...),生产环境请使用正式密钥。

变量

必需

描述

XENDIT_API_KEY

是

测试或正式 API 密钥

XENDIT_ENABLE_DISBURSEMENTS

否

设置为 true 以启用付款工具(资金划转)。默认禁用。

XENDIT_ALLOW_LIVE

否

设置为 true 以允许使用正式/生产环境密钥(前缀为 xnd_production_、iluma_production_、sk_live_)。默认拒绝。

Claude Desktop

编辑 claude_desktop_config.json:

{
  "mcpServers": {
    "xendit": {
      "command": "npx",
      "args": ["-y", "xendit-mcp"],
      "env": {
        "XENDIT_API_KEY": "your-api-key"
      }
    }
  }
}

Claude Code

claude mcp add xendit -e XENDIT_API_KEY=your-api-key -- npx -y xendit-mcp

Cursor

添加到 ~/.cursor/mcp.json,格式与 Claude Desktop 相同。

工具

工具

描述

get_balance

按类型(CASH、HOLDING、TAX)查询账户余额。

list_invoices

按状态、日期范围或货币筛选账单列表。

get_invoice

获取单个账单详情。

create_invoice

创建支付账单并返回支付链接。

expire_invoice

使有效账单过期。

list_transactions

列出付款、付款划转、退款和费用。

create_disbursement

向银行账户或电子钱包发送资金。 除非设置 XENDIT_ENABLE_DISBURSEMENTS=true,否则禁用。

get_disbursement

查询付款划转状态。 除非设置 XENDIT_ENABLE_DISBURSEMENTS=true,否则禁用。

list_disbursement_banks

按国家/地区列出支持的银行和电子钱包。 除非设置 XENDIT_ENABLE_DISBURSEMENTS=true,否则禁用。

提示词

提示词

描述

check_balance

报告账户余额。

recent_payments

最近 N 天收到的付款。

create_payment_link

为客户生成支付链接。

unpaid_invoices

列出待处理的账单。

daily_summary

今日支付活动。

资源

资源

URI

描述

支持的银行

xendit://banks

印度尼西亚和菲律宾的银行代码。

API 信息

xendit://info

Xendit API 详情和速率限制。

查询示例

What's my current Xendit balance?
Saldo Xendit saya berapa?

Create an invoice for Rp 500,000 for "Website design deposit".
Buatkan invoice Rp 500.000 untuk "Deposit desain website".

Show me all unpaid invoices.
Tampilkan semua invoice yang belum dibayar.

当 XENDIT_ENABLE_DISBURSEMENTS=true 时:

Send Rp 1,000,000 to Ahmad at BCA.
Kirim Rp 1.000.000 ke Ahmad di BCA.

List available banks for disbursement in the Philippines.

环境

Xendit 提供独立的测试和正式 API 密钥。测试密钥在 Xendit 沙盒环境中运行,因此不会发生真实的资金转移。正式密钥(xnd_production_...、iluma_production_...、sk_live_...)在生产环境中运行。

安全性

此服务器可以通过 Xendit API 转移真实资金。关键安全保障措施:

  • 付款工具默认禁用。 create_disbursement、get_disbursement 和 list_disbursement_banks 仅在 XENDIT_ENABLE_DISBURSEMENTS=true 时注册。仅在受信任的代理上下文中启用它们,且确保工具输入不会受到不受信任内容的影响。

  • 默认拒绝正式密钥。 除非 XENDIT_ALLOW_LIVE=true,否则启动时会拒绝前缀为 xnd_production_、iluma_production_ 或 sk_live_ 的密钥。请务必先使用开发密钥 (xnd_development_...) 进行测试。

  • 幂等性。 create_disbursement 使用您的 externalId 作为 Idempotency-Key,因此使用相同 externalId 的重试不会创建重复的转账。每次新的付款划转请使用新的 externalId。

即使有这些限制,在批准工具调用之前,请务必审查任何资金转移请求。将模型输出派生的工具输入视为不受信任的内容。

免责声明

这是一个非官方的、由社区构建的 MCP 服务器。与 Xendit 无关联、无背书或赞助。Xendit 是其各自所有者的商标。使用风险自负。作者对因误用、提示词注入或错误导致的资金损失不承担任何责任。

许可证

MIT

Available Tools

6 tools
get_balanceA
Read-only

Get your Xendit account balance. Returns available balance by account type (CASH, HOLDING, TAX).

Inputs: currency, accountType.

get_invoiceA
Read-only

Get details of a specific Xendit invoice by ID.

Inputs: invoiceId (required).

get_workspace_modeWorkspace ModeA
Read-only

Explain the current Xendit MCP mode, what actions are enabled, and the safest next step to enable more access.

Inputs: no named parameters.

guided_setupGuided SetupA
Read-only

Generate a safe Claude Code or Claude Desktop setup snippet for read-only, invoices, or guarded payouts mode. Uses a form when the client supports MCP elicitation.

Inputs: mode, client, allowLive, serverName, +3 more.

list_invoicesA
Read-only

List invoices from your Xendit account with optional filters for status, date range, and pagination.

Inputs: limit, status, currency, createdAfter, +1 more.

list_transactionsA
Read-only

List transactions from your Xendit account. Includes payments received, payouts, refunds, transfers, and balance adjustments.

Inputs: limit, types, status, currency, +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: balance retrieval, invoice details, workspace mode explanation, setup snippet generation, and listing of invoices and transactions. No overlap between tools.

    Naming Consistency4/5

    Most tools follow a verb_noun pattern using snake_case (e.g., get_balance, list_invoices). The only minor deviation is 'guided_setup' which is adjective_noun, but it remains clear and consistent with the overall style.

    Tool Count5/5

    Six tools is well-scoped for a payment service MCP server covering essential read operations, account balance, and setup guidance. It's neither too few nor too many.

    Completeness2/5

    The tool surface is limited to read and setup operations, missing write capabilities like create/update/delete invoices or payouts. This creates notable gaps for a payment API, restricting agents to passive data retrieval.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Extract YouTube transcripts for AI agents, RAG pipelines, and LLM workflows. Supports any YouTube URL. Returns clean text or timestamped segments. No API keys required.
      1
      4
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for Paper.id Indonesian invoicing and accounting platform, providing 31 tools for partner and invoice management, QRIS payments, and reporting with automatic token refresh.
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      MCP server for VNPay payment gateway (Vietnam). Supports payment URL generation, transaction queries, refunds, tokenized payments, and IPN verification with HMAC-SHA512 signing.
      8
      10 npm
      MIT