Skip to content
VS Code

midtrans mcp for VS Code

io.github.ryoangriawan96/midtrans-mcp

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

client:VS Code transport:stdio runtime:npm

Install midtrans mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "midtrans-server-key",
      "description": "MIDTRANS_SERVER_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "midtrans-is-production",
      "description": "MIDTRANS_IS_PRODUCTION",
      "password": true
    },
    {
      "type": "promptString",
      "id": "midtrans-read-only",
      "description": "MIDTRANS_READ_ONLY",
      "password": true
    }
  ],
  "servers": {
    "midtrans-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "midtrans-mcp"
      ],
      "env": {
        "MIDTRANS_SERVER_KEY": "${input:midtrans-server-key}",
        "MIDTRANS_IS_PRODUCTION": "${input:midtrans-is-production}",
        "MIDTRANS_READ_ONLY": "${input:midtrans-read-only}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

midtrans mcp in other clients