midtrans-mcp
An unofficial community MCP server for Midtrans, Indonesia's payment gateway. It allows AI coding clients to check transaction status, create Snap transactions and payment links, cancel transactions, and process refunds directly from the editor.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Check transaction status by order_id
- Create Snap transactions and payment links
- Cancel cancellable transactions
- Refund settled transactions (full or partial)
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
midtrans-mcp 0.1.1
{
"version": "0.1.1",
"transport": "stdio",
"identifier": "midtrans-mcp",
"registryType": "npm",
"environmentVariables": [
{
"name": "MIDTRANS_SERVER_KEY",
"isRequired": true,
"description": "Your Midtrans Server Key (use a Sandbox key for testing)."
},
{
"name": "MIDTRANS_IS_PRODUCTION",
"description": "Set to true for the production API; anything else means Sandbox."
},
{
"name": "MIDTRANS_READ_ONLY",
"description": "Set to true to expose only the read-only transaction-status tool."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"midtrans-mcp": {
"command": "npx",
"args": [
"-y",
"midtrans-mcp@0.1.1"
],
"env": {
"MIDTRANS_SERVER_KEY": "<YOUR_MIDTRANS_SERVER_KEY>",
"MIDTRANS_IS_PRODUCTION": "<YOUR_MIDTRANS_IS_PRODUCTION>",
"MIDTRANS_READ_ONLY": "<YOUR_MIDTRANS_READ_ONLY>"
}
}
}
}Cline
{
"mcpServers": {
"midtrans-mcp": {
"command": "npx",
"args": [
"-y",
"midtrans-mcp@0.1.1"
],
"env": {
"MIDTRANS_SERVER_KEY": "<YOUR_MIDTRANS_SERVER_KEY>",
"MIDTRANS_IS_PRODUCTION": "<YOUR_MIDTRANS_IS_PRODUCTION>",
"MIDTRANS_READ_ONLY": "<YOUR_MIDTRANS_READ_ONLY>"
}
}
}
}VS Code
{
"servers": {
"midtrans-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"midtrans-mcp@0.1.1"
],
"env": {
"MIDTRANS_SERVER_KEY": "<YOUR_MIDTRANS_SERVER_KEY>",
"MIDTRANS_IS_PRODUCTION": "<YOUR_MIDTRANS_IS_PRODUCTION>",
"MIDTRANS_READ_ONLY": "<YOUR_MIDTRANS_READ_ONLY>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"midtrans-mcp": {
"command": "npx",
"args": [
"-y",
"midtrans-mcp@0.1.1"
],
"env": {
"MIDTRANS_SERVER_KEY": "<YOUR_MIDTRANS_SERVER_KEY>",
"MIDTRANS_IS_PRODUCTION": "<YOUR_MIDTRANS_IS_PRODUCTION>",
"MIDTRANS_READ_ONLY": "<YOUR_MIDTRANS_READ_ONLY>"
}
}
}
}Let your agent find its tools
Find servers like midtrans-mcp from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.