Skip to content

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.

1

In Elaichi

Connect Midtrans once

  1. Open Connections, choose Add connection, and pick Midtrans.

  2. Optionally set Share with to give a team access, then press Connect.

  3. 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.

midtrans
Midtrans
Chimoney
Circle
Dwolla
Finexio
Flutterwave
2

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. 1

    Open Customize, then Connectors.

  2. 2

    Press Add.

  3. 3

    Name it, paste the MCP server URL, then Continue.

    https://api.elaichi.ai/mcp
  4. 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. 1

    Open Plugins, then press the + button.

  2. 2

    Name it and paste the endpoint into Server URL.

    https://api.elaichi.ai/mcp
  3. 3

    Leave Authentication on OAuth, then tick the risk acknowledgement.

  4. 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. 1

    Open ~/.cursor/mcp.json.

  2. 2

    Add the endpoint under mcpServers.

    https://api.elaichi.ai/mcp
  3. 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. 1

    Add the endpoint as a remote MCP server.

    https://api.elaichi.ai/mcp
  2. 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.”

See all 44 Midtrans tools below

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.

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.

ElaichiMCP clients
Claude ChatGPT Cursor

Copy the endpoint

https://api.elaichi.ai/mcp
Client Connected by Status Last used
Claude
E

Emma Laurent

• Connected 4 minutes ago
Cursor
S

Sofia Ricci

• Connected 2 hours ago
ChatGPT
C

Clara Nowak

• Connected Yesterday

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
ElaichiTools
Tool Action Description
Midtrans transactions cancel Cancel Cancel a Midtrans transaction to void it. Use refund instead if the transaction is already settled. Returns: status_code, status_message, transaction_id, masked_card, order_id, payment_type, transaction_time, transaction_status, fraud_status, bank, gross_amount. Required: order_id_or_transaction_id.
Midtrans transactions refund Action Refund a settled Midtrans transaction to reverse money back to the customer. Supported for credit_card, gopay, shopeepay, dana, ovo, QRIS, kredivo, and akulaku. Returns: status_code, status_message, transaction_id, order_id, payment_type, transaction_time, transaction_status, gross_amount, refund_chargeback_id, refund_amount, refund_key, amount, reason. Required: order_id_or_transaction_id.
Midtrans transactions direct refund Action Send a direct refund request to the bank or payment provider for a settled Midtrans transaction for faster processing than standard refund. Supported for GoPay, QRIS, ShopeePay, Credit Card, Akulaku, and Kredivo. Returns: status_code, status_message, transaction_id, order_id, gross_amount, payment_type, transaction_time, transaction_status, refund_chargeback_id, refund_amount, refund_key.…
Midtrans transactions expire Action Expire a Midtrans transaction by order ID or transaction ID, updating transaction_status to expire when the customer fails to complete payment. The expired order_id can be reused for the same or different payment methods. Returns: status_code, status_message, transaction_id, order_id, payment_type, transaction_time, transaction_status, signature_key, bank, gross_amount, permata_va_number.…
Midtrans transactions approve Approve Approve a challenged Midtrans transaction by order ID or transaction ID, accepting a transaction flagged by the Fraud Detection System so it proceeds to settlement instead of being automatically canceled. Returns: status_code, status_message, transaction_id, masked_card, order_id, payment_type, transaction_time, transaction_status, fraud_status, bank, gross_amount, approval_code, signature_key,…

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
ElaichiToolboxes
Name Source template Tools Created

Finance toolbox

Midtrans · transactions and settlements

Midtrans starter 18 Mar 4, 2026

Support toolbox

Midtrans · refunds and disputes

9 Mar 2, 2026

Engineering toolbox

Midtrans · card tokens and API status

24 Feb 27, 2026

Sales toolbox

Midtrans · payment links and orders

Midtrans starter 6 Feb 19, 2026

Risk toolbox

Midtrans · fraud and approval review

31 Jan 30, 2026

Operations toolbox

Midtrans · transaction status and capture

12 Jan 22, 2026

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
ElaichiConnections
Connection Scope Status Access
MI

Midtrans (Retail)

Connected by Emma Laurent

Personal • Active 1 team · 6 members
MI

Midtrans (Marketplace)

Connected by James Whitfield

Organization • Active 3 teams · 24 members
MI

Midtrans (Subscriptions)

Connected by Sofia Ricci

Organization • Active 2 teams · 11 members
MI

Midtrans (Enterprise)

Connected by Daniel Ortega

Personal • Needs re-auth 1 team · 3 members
MI

Midtrans (Mobile app)

Connected by Clara Nowak

Personal • Active Not shared
MI

Midtrans (Partner sales)

Connected by Michael Brennan

Personal • Active 2 teams · 9 members

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
ElaichiAudit log
When Who What happened Type

2 minutes ago

Mar 6, 2026, 3:10 PM

E

Emma Laurent

[email protected]

Restriction Created Access

8 minutes ago

Mar 6, 2026, 3:04 PM

J

James Whitfield

[email protected]

Restriction Updated Access

14 minutes ago

Mar 6, 2026, 2:58 PM

S

Sofia Ricci

[email protected]

Role Assigned Access

20 minutes ago

Mar 6, 2026, 2:52 PM

D

Daniel Ortega

[email protected]

Midtrans Users Updated MCP

26 minutes ago

Mar 6, 2026, 2:46 PM

C

Clara Nowak

[email protected]

Midtrans Transactions Created MCP

32 minutes ago

Mar 6, 2026, 2:40 PM

M

Michael Brennan

[email protected]

Midtrans Transactions List Toolbox

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

  1. Schedule

    Every weekday at 08:00

    0.2s
  2. Fetch transactions

    Midtrans

    1.4s
  3. Group by owner

    Transform

    0.1s
  4. Draft the digest

    Agent step

    Ran with 4 tools, returned a structured summary

    6.2s
  5. Approve the digest

    Needs approval

    Assigned to Michael Brennan

    Approve
  6. 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

Live

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 my team share one Midtrans connection?

Yes. One person connects Midtrans in Elaichi and shares the connection with a team, and nobody else ever sees or handles the Midtrans server key. Each teammate still signs in to Elaichi as themselves, so the audit log records exactly who issued a refund or created a payment link.

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.