Skip to main content

Midtrans MCP

io.github.ryoangriawan96/midtrans-mcp

v0.1.1Updated Nov 25, 2026stdio · npm

MCP server for Midtrans (Indonesian payment gateway): status, Snap, payment links, cancel, refund.

Install

Needs 1 secret. Replace 1 placeholder with your own values.

Run in your terminal. Replace 1 placeholder.

claude mcp add midtrans-mcp -e 'MIDTRANS_SERVER_KEY=<your-midtrans-server-key>' -- npx -y [email protected]

Configuration

3 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.

  • MIDTRANS_SERVER_KEY
    Env var· required· secret
    Your Midtrans Server Key (use a Sandbox key for testing).
  • MIDTRANS_IS_PRODUCTION
    Env var· optional
    Set to true for the production API; anything else means Sandbox.
  • MIDTRANS_READ_ONLY
    Env var· optional
    Set to true to expose only the read-only transaction-status tool.

Listed in the official MCP Registry since Nov 25, 2026. Mirrored daily; last checked Nov 26, 2026.