theYahia/midtrans-mcp
MCP server for Midtrans — payment gateway, SNAP tokens, refunds (Indonesia)
Platform-specific configuration:
{
"mcpServers": {
"midtrans-mcp": {
"command": "npx",
"args": [
"-y",
"midtrans-mcp"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
MCP server for Midtrans payment gateway (Indonesia). Supports Core API charges, Snap tokens, transaction management, refunds, and more via HTTP Basic Auth.
| Tool | Description | |---|---| | create_charge | Create a payment charge via Core API | | get_status | Get transaction status by order ID | | approve | Approve a pending transaction | | cancel | Cancel a pending transaction | | refund | Refund a captured transaction | | expire | Force-expire a pending transaction | | create_snap_token | Create a Snap payment token for checkout UI | | list_transactions | List recent transactions |
{
"mcpServers": {
"midtrans": {
"command": "npx",
"args": ["-y", "@theyahia/midtrans-mcp"],
"env": {
"MIDTRANS_SERVER_KEY": "<YOUR_SERVER_KEY>"
}
}
}
}| Variable | Required | Description | |---|---|---| | MIDTRANS_SERVER_KEY | Yes | Server key from Midtrans dashboard | | MIDTRANS_PRODUCTION | No | Set to "true" for production (default: sandbox) |
MIT
Loading reviews...