Skip to main content
Glama
xendit-mcp

xendit-mcp

by indratjhai

xendit-mcp (только для чтения)

Минималистичный MCP-сервер для Xendit с доступом только для чтения. Создан для агента CareNow Issue Resolver — выполняет поиск платежей, выплат, возвратов и транзакций по виртуальным счетам (VA). Никогда не переводит деньги.

Неофициальный проект. Не связан с Xendit и не поддерживается компанией Xendit.

Почему только для чтения?

Агенты не должны иметь возможность вызывать create_disbursement, create_refund или expire_invoice — даже через инъекцию промпта из поля на стороне Xendit. Этот сервер предоставляет только GET-эндпоинты. Для обеспечения эшелонированной защиты также используйте API-ключ Xendit с правами доступа *_READ.

Related MCP server: mcp-hevo-service

Установка и запуск

Клонирование не требуется. Установите напрямую из GitHub через npx:

{
  "mcpServers": {
    "xendit": {
      "command": "npx",
      "args": ["-y", "github:indratjhai/xendit-mcp"],
      "env": {
        "XENDIT_API_KEY": "xnd_development_..."
      }
    }
  }
}

При первом запуске npm клонирует репозиторий, устанавливает зависимости и выполняет npm run build через скрипт prepare. После этого запуск происходит из кэшированной установки.

Зафиксируйте конкретный коммит для воспроизводимости:

"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 dev

API-ключ

  1. Перейдите на https://dashboard.xendit.co/settings/developers#api-keys

  2. Создайте ключ с правами только для чтения (READ-only):

    • BALANCE_READ

    • INVOICE_READ

    • TRANSACTION_READ

    • DISBURSEMENT_READ

    • REFUND_READ

    • PAYMENT_REQUEST_READ

  3. Используйте тестовый ключ xnd_development_... во время разработки.

Инструменты

Инструмент

Назначение

xendit_get_balance

Баланс счета по типу (CASH / HOLDING / TAX)

xendit_list_invoices

Фильтрация по external_id, статусу, диапазону дат

xendit_get_invoice

Счет по ID

xendit_list_transactions

Основной инструмент — фильтрация по reference_id, типу, каналу, дате

xendit_get_transaction

Транзакция по ID

xendit_get_disbursement

Выплата по ID

xendit_get_disbursement_by_external_id

Выплата по вашему идентификатору ссылки

xendit_list_refunds

Фильтрация по payment_request_id / invoice_id / reference_id

xendit_get_refund

Возврат по ID

xendit_list_payment_requests

Новый API платежей — фильтрация по reference_id

xendit_get_payment_request

Запрос на оплату по ID

xendit_get_fixed_va

Виртуальный счет — для расследований по ошибочным VA

xendit_get_va_payment

Платеж по VA по payment_id

Чего здесь нет (преднамеренно)

  • create_invoice, expire_invoice

  • create_disbursement

  • create_refund

  • create_payment_request

  • Любые POST / PATCH / DELETE

Если для рабочего процесса требуется изменение данных, это должно выполняться вручную в панели управления Xendit или через отдельный процесс утверждения, который проверяет человек, а не через сессию агента.

Примечания по безопасности

  • API-ключ считывается из переменной окружения XENDIT_API_KEY. Никогда не логируется, никогда не отправляется в вывод инструмента.

  • Исходящий сетевой трафик жестко закодирован на https://api.xendit.co — другие хосты запрещены.

  • Идентификаторы в компонентах пути проверяются по регулярному выражению ^[a-zA-Z0-9_-]+$ и кодируются в URL.

  • Все входные данные инструментов проверяются с помощью zod.

  • Только зависимости времени выполнения: @modelcontextprotocol/sdk, zod.

Лицензия

MIT

Available Tools

13 tools
xendit_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

    A3.5/5.0

    Scored across 13 tools

    Disambiguation4/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Read-only SQL Server MCP server enabling safe database queries, table listing, and schema inspection with built-in security protections.
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Read-only MCP server for Hevo Data API, enabling monitoring of pipelines, objects, destinations, models, and workflows with secure self-hosted credentials.
      -
    • F
      license
      B
      quality
      D
      maintenance
      A secure, read-only MCP server that enables AI assistants to inspect transactions, vendor performance, wallet balances, and analytics through validated REST API calls.
      19
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      A 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