Payment Gateway
Midtrans MCP connector
The Midtrans connector lets your team check transaction status, issue refunds, approve or deny payments, create payment links and manage subscriptions from Claude, ChatGPT, Cursor or any MCP client, with every action tied to the person who signed in.
-
How it connects. Connects with an API key. The credential goes into a vault nobody reads back.
-
One address. https://api.elaichi.ai/mcp, the same for every user.
-
Their own access. An agent never gets more than the person it acts for.
How to connect
How to connect Midtrans to Claude, ChatGPT or Cursor
Two steps, about a minute.
In Elaichi
Connect Midtrans once
-
Open Connections, choose Add connection, and pick Midtrans.
-
Optionally set Share with to give a team access, then press Connect.
-
Paste a Midtrans API key. One person generates a token in Midtrans and pastes it once. Everyone else works through Share with, and never sees it.
The credential is vaulted. Nobody reads it back, not even the AI.
Add connection
Choose a connector.
In your AI client
Point it at one endpoint
Everyone in the organization uses the same address, and each person only ever reaches what their own account allows.
Connect Midtrans to Claude
-
1
Open Customize, then Connectors.
-
2
Press Add.
-
3
Name it, paste the MCP server URL, then Continue.
https://api.elaichi.ai/mcp -
4
Sign in and approve.
On Team and Enterprise, an Owner adds it once. Everyone else turns it on for themselves.
Connect Midtrans to ChatGPT
-
1
Open Plugins, then press the + button.
-
2
Name it and paste the endpoint into Server URL.
https://api.elaichi.ai/mcp -
3
Leave Authentication on OAuth, then tick the risk acknowledgement.
-
4
Press Create, then sign in and approve.
Works on the web today. The plugin directory lives at chatgpt.com/plugins.
Connect Midtrans to Cursor
-
1
Open
~/.cursor/mcp.json. -
2
Add the endpoint under
mcpServers.https://api.elaichi.ai/mcp -
3
Reload Cursor, then sign in and approve.
~/.cursor/mcp.json
{
"mcpServers": {
"elaichi": {
"url": "https://api.elaichi.ai/mcp"
}
}
}
Set up per machine, so repeat it on each computer you work from.
Connect Midtrans to any MCP client
-
1
Add the endpoint as a remote MCP server.
https://api.elaichi.ai/mcp -
2
Sign in and approve.
{
"mcpServers": {
"elaichi": {
"url": "https://api.elaichi.ai/mcp"
}
}
}
The Elaichi Agent already has these tools, with nothing to set up.
Use cases
What teams do with Midtrans through Elaichi
Every one of these runs inside the access the person already has, and lands in the same audit log.
-
Support
Refund a customer without leaving the chat
When a customer writes in about a duplicate charge, find the Midtrans transaction by its order ID, issue a full or partial refund, and confirm the new status back to them.
-
Finance
Reconcile the day's transactions
List the Midtrans transactions for a date range, see which settled, which are still pending and which expired, and summarize them for the ledger.
-
Risk
Approve or deny flagged payments
Review a card payment held by fraud checks, look at its current status, and either approve it so it settles or deny it before goods ship.
-
Sales
Send a payment link to close a deal
Create a Midtrans payment link for the agreed amount, share it with the customer, and check later whether it has been paid.
-
Billing
Pause or update a recurring subscription
Look up a customer's Midtrans subscription, change the amount or schedule, disable it while they are away, or cancel it when they churn.
-
Operations
Expire abandoned orders and release stock
Find pending transactions that were never paid and expire or cancel them, then capture authorized card payments once an order is ready to ship.
Try asking
- “Show all pending Midtrans transactions from this week.”
- “Which refunds were issued yesterday through Midtrans.”
- “List active Midtrans payment links by status.”
AI tools
Midtrans tools for your AI agents
44 tools are ready to call through Elaichi's MCP endpoint the moment you connect Midtrans, governed by the same roles, restrictions, and audit log as everything else in Elaichi.
No tools match your search.
See it in Elaichi
What connecting Midtrans gets you
6 screens from the product, each doing one job for your Midtrans account.
The agent
Ask Midtrans questions, get live transaction answers.
Type a plain language question and pull real transaction and payment data instantly.
- transactions
- refunds
- cards
- payment links
Ask Elaichi to work across your apps.
Show all pending Midtrans transactions from this week.
Which refunds were issued yesterday through Midtrans.
List active Midtrans payment links by status.
Also runs in Claude, ChatGPT or Cursor
MCP clients
One Midtrans endpoint, every MCP client connects.
Claude, ChatGPT and Cursor reach Midtrans through one governed org endpoint, no shared keys.
Copy the endpoint
Tool catalog
44 Midtrans tools, zero custom code.
Transactions, cards, refunds and payment links, all cataloged and ready to call.
- Midtrans transactions cancel
- Midtrans transactions refund
- Midtrans transactions direct refund
- Midtrans transactions expire
Toolboxes
Every team gets its own Midtrans toolbox.
Finance, support and engineering each work from a toolbox scoped to their needs.
- Finance
- Support
- Engineering
- Sales
Shared connections
Share Midtrans access without sharing credentials.
See who connected each account and how many teams and members use it.
- Retail
- Marketplace
- Subscriptions
- Enterprise
Audit log
Every Midtrans action logged, who did what.
An append only record of when, who, what happened, type and resource.
- When
- Who
- What happened
- Type
Launching soon
From answering questions to doing the work
A person no longer has to ask. A trigger starts the work, inside the same permissions and the same audit log as everything else. Automations and live dashboards are launching soon, on the Black plan.
Automations
Midtrans digests run end to end, approved by you.
A schedule fetches transactions, drafts a digest, waits for approval, then posts back to Midtrans.
Midtrans digest
Run 418 · started 2 minutes ago · on behalf of Emma Laurent
-
✓
Schedule
Every weekday at 08:00
0.2s -
✓
Fetch transactions
Midtrans
1.4s -
✓
Group by owner
Transform
0.1s -
✓
Draft the digest
Agent step
Ran with 4 tools, returned a structured summary
6.2s -
Approve the digest
Needs approval
Assigned to Michael Brennan
Approve Deny -
Post the digest
Midtrans
Queued
Collections and dashboards
Midtrans metrics refresh themselves, no report requested.
Four metrics, a 14 day chart of transactions, and a breakdown by team, computed automatically.
Midtrans health
Refreshed 4 minutes ago · every 15 minutes · from the transactions collection
Transactions
1,284 ↓ 12%
Refunds
96 ↓ 8%
Needs attention
3 ↑ 2
Updated this week
412 ↑ 9%
Transactions created
Last 14 days
By team
Share of activity
Retail 34%
Marketplace 27%
Subscriptions 21%
Enterprise 18%
FAQ
Frequently asked questions
How do I connect Midtrans to Claude?
Connecting Midtrans to Claude takes two steps. First, open Elaichi, choose Midtrans, and paste the server key from your Midtrans dashboard; there is no OAuth application to register and no client ID or secret to generate. Then in Claude go to Customize, then Connectors, then Add, and paste the endpoint https://api.elaichi.ai/mcp. Sign in with your Elaichi account and Midtrans is ready to use.
Does Midtrans work with ChatGPT and Cursor as well as Claude?
Yes. Once Midtrans is connected in Elaichi, the same endpoint, https://api.elaichi.ai/mcp, works in Claude, ChatGPT, Cursor, any other MCP client and the Elaichi Agent. You connect Midtrans once and every client you use picks it up.
What can an AI agent actually do with my Midtrans data?
With Midtrans connected, an agent can look up a transaction and tell you whether it settled, is pending or expired, issue a refund, approve, deny or capture a payment, cancel or expire an unpaid order, and create a payment link for a customer. It can also create, update, pause, resume or cancel a subscription. Because Midtrans exposes many actions, short concrete asks such as 'refund order 4521' work better than long paragraphs.
Does connecting Midtrans give the AI access to my whole merchant account?
No. Everything an agent does in Midtrans runs inside the access of the person who signed in, using the Midtrans key their organization connected. Elaichi can narrow that access further, for example to read-only status checks, but it can never widen it beyond what the connected Midtrans account allows.
Can I stop an agent from refunding or canceling things in Midtrans?
Yes. In Elaichi, restrictions on the Midtrans connector work per action, so you can allow status checks and listing transactions while blocking refunds, cancellations, approvals or subscription changes. A blocked action is never advertised to Claude, ChatGPT or any other client, so no prompt can reach it.
What happens to a Midtrans connection when someone leaves?
When you offboard someone in Elaichi, their access to Midtrans through every client ends at once, and nothing needs to be rotated because they never held the Midtrans key themselves. A shared Midtrans connection keeps working for everyone else on the team. If you ever want to remove Midtrans entirely, disconnecting it once in Elaichi removes it from Claude, ChatGPT, Cursor and every other client at the same time.
Put Midtrans in front of your team
Fourteen days on Gold, no credit card. Connect it once and pick what each team can call.