Integration

Pagar.me integration

Payments on the Brazilian gateway Pagar.me v5: create orders that carry their own items and payment instructions, list and inspect the charges those orders produce, capture a pre authorized charge or cancel it, keep a customer base with saved cards, run plan based subscriptions, and read the recipients that receive split payments together with their balances. Every monetary amount is an integer in CENTS and lists page with page and size while returning a paging block.

Ask it in chat

Say what should happen.
The workflow builds itself.

When this happens, do that in Pagar.me.Built from the 18 Pagar.me tools below, on the connection you add once.

Common Pagar.me use cases

  • charging a card at checkout
  • showing a buyer their saved cards
  • saving a card for one click repurchase
  • starting a monthly plan on a saved card
  • cancelling a plan when a customer churns
  • capturing a card hold once an order ships
  • reconciling settled charges over a period
  • reconciling the orders created in a period
  • listing the sellers that can receive a split
  • registering a buyer before saving their card

What you can do with Pagar.me

Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.

Each badge shows the default agent permission of an endpoint (allowed: an agent calls it without asking; ask first: you are asked before an agent calls it, when the agent or chat asks permission for sensitive actions; never: no agent may call it), which every user can change endpoint by endpoint in their credential settings.

Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.

Charge, 4 operations

  • cancel_chargeCancel chargeDELETEAgents: ask firstVoids or refunds a charge in full and returns it with the cancelled amount filled in.
  • capture_chargeCapture chargePOSTAgents: ask firstTakes the money on a charge that is holding an authorization and returns the updated charge.
  • get_chargeGet chargeGETAgents: ask firstReturns a single charge and the detail of how it was processed.
  • list_chargesList chargesGETAgents: ask firstReturns a page of charges with their latest transaction attempt.

Customer, 4 operations

  • create_customerCreate customerPOSTAgents: ask firstRegisters a buyer and returns the cus_ identifier every other call accepts.
  • get_customerGet customerGETAgents: ask firstReturns a single buyer record.
  • list_customersList customersGETAgents: ask firstReturns a page of customers inside the standard data and paging envelope.
  • update_customerUpdate customerPUTAgents: ask firstRewrites the name, contact data or address of an existing buyer.

Order, 3 operations

  • create_orderCreate orderPOSTAgents: ask firstRaises an order and its charges in one call and returns the order with the resulting charges.
  • get_orderGet orderGETAgents: ask firstReturns a single order, including the charges that settle it.
  • list_ordersList ordersGETAgents: ask firstReturns a page of orders with their items, customer and charges.

Subscription, 3 operations

  • cancel_subscriptionCancel subscriptionDELETEAgents: ask firstEnds a recurring plan and returns it with status canceled.
  • create_subscriptionCreate subscriptionPOSTAgents: ask firstStarts a recurring plan for a customer and returns the subscription with its first cycle.
  • list_subscriptionsList subscriptionsGETAgents: ask firstReturns a page of subscriptions with their current cycle and next billing date.

Card, 2 operations

  • create_cardCreate cardPOSTAgents: ask firstStores a card and returns its card_ identifier with only the masked number.
  • list_cardsList cardsGETAgents: ask firstReturns the stored cards of one buyer with their brand and masked digits.

Balance, 1 operation

  • get_recipient_balanceGet recipient balanceGETAgents: ask firstReads how much money a recipient holds and how much is still settling.

Recipient, 1 operation

  • list_recipientsList recipientsGETAgents: ask firstReturns the registered recipients with their bank account and transfer settings.

Use Pagar.me from Claude Code, Cursor or Codex

Connect Pagar.me in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Pagar.me operations become tools the client can call, next to every other integration you connected.

Claude Code
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"
Codex (~/.codex/config.toml)
[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"

[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"
Cursor, Claude Desktop and other JSON configs
{
  "mcpServers": {
    "livecontext": {
      "type": "http",
      "url": "https://livecontext.ai/mcp",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Set up the MCP server step by step

How to connect Pagar.me

  1. Create your workspace

    Sign up free. Nothing to install.

  2. Connect Pagar.me once

    Add your Pagar.me connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.

  3. Describe the job in chat

    The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.

Pagar.me integration FAQ

What can you do with the Pagar.me integration?

LiveContext exposes 18 operations on Pagar.me, covering charge, customer, order and subscription. Common uses include charging a card at checkout, showing a buyer their saved cards and saving a card for one click repurchase.

Popular integrations

Browse the whole catalog