Integration

Lago integration

Lago is an open-source usage-based billing platform, self-hosted or run on Lago's own US and EU clusters. Create and read customers, subscriptions and plans with their charges, charge filters, fixed charges, entitlements and metadata; ingest usage events one at a time or in batches and estimate the fees they would produce; define billable metrics and evaluate their expressions; issue, finalize, void, refresh, retry, preview and download invoices, credit notes, payments, payment requests and payment receipts; manage coupons and applied coupons, add-ons, taxes, features and privileges, wallets, wallet transactions with their consumptions and fundings, and wallet or subscription alerts; read current, past, projected and lifetime usage per customer or subscription; pull gross revenue, MRR, invoiced usage, invoice collection, overdue balance and usage analytics; and manage billing entities, the organization, webhook endpoints and the webhook signing public key, plus activity and API logs. The host is part of the credential: use your own domain when self-hosting, api.getlago.com for the US cluster or api.eu.getlago.com for the EU cluster. Authentication is a Lago API key, created under Developers, API keys, sent as a bearer token.

Ask it in chat

Say what should happen.
The workflow builds itself.

When this happens, do that in Lago.Built from the 201 Lago tools below, on the connection you add once.

What you can do with Lago

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.

Alert, 8 operations

  • create_customer_wallet_alertCreate customer wallet alertPOSTAgents: ask firstCreate wallet alert(s).
  • create_subscription_alertCreate subscription alertPOSTAgents: ask firstCreate subscription alert(s).
  • delete_all_customer_wallet_alertsDelete all customer wallet alertsDELETEAgents: ask firstDelete all wallet alerts.
  • delete_all_subscription_alertsDelete all subscription alertsDELETEAgents: ask firstDelete all subscription alerts.
  • delete_customer_wallet_alertDelete customer wallet alertDELETEAgents: ask firstDelete a wallet alert.
  • delete_subscription_alertDelete subscription alertDELETEAgents: ask firstDelete a subscription alert.
  • get_customer_wallet_alertGet customer wallet alertGETAgents: ask firstRetrieve a wallet alert.
  • get_subscription_alertGet subscription alertGETAgents: ask firstRetrieve a subscription alert.

Metadata, 8 operations

  • delete_all_credit_note_metadataDelete all credit note metadataDELETEAgents: ask firstDelete all credit note metadata.
  • delete_all_customer_wallet_metadataDelete all customer wallet metadataDELETEAgents: ask firstDelete all wallet metadata.
  • delete_all_plan_metadataDelete all plan metadataDELETEAgents: ask firstDelete all plan metadata.
  • delete_all_wallet_metadataDelete all wallet metadataDELETEAgents: ask firstDelete all wallet metadata.
  • delete_credit_note_metadata_keyDelete credit note metadata keyDELETEAgents: ask firstDelete a metadata key.
  • delete_customer_wallet_metadata_keyDelete customer wallet metadata keyDELETEAgents: ask firstDelete a metadata key.
  • delete_plan_metadata_keyDelete plan metadata keyDELETEAgents: ask firstDelete a metadata key.
  • delete_wallet_metadata_keyDelete wallet metadata keyDELETEAgents: ask firstDelete a metadata key.

Filter, 6 operations

  • create_plan_charge_filterCreate plan charge filterPOSTAgents: ask firstCreate a charge filter.
  • create_subscription_charge_filterCreate subscription charge filterPOSTAgents: ask firstCreate a charge filter.
  • delete_plan_charge_filterDelete plan charge filterDELETEAgents: ask firstDelete a charge filter.
  • delete_subscription_charge_filterDelete subscription charge filterDELETEAgents: ask firstDelete a charge filter.
  • get_plan_charge_filterGet plan charge filterGETAgents: ask firstRetrieve a charge filter.
  • get_subscription_charge_filterGet subscription charge filterGETAgents: ask firstRetrieve a charge filter.

Wallet, 6 operations

  • create_customer_walletCreate customer walletPOSTAgents: ask firstCreate a wallet.
  • create_walletCreate walletPOSTAgents: ask firstCreate a wallet.
  • delete_customer_walletDelete customer walletDELETEAgents: ask firstTerminate a wallet.
  • delete_walletDelete walletDELETEAgents: ask firstTerminate a wallet.
  • get_customer_walletGet customer walletGETAgents: ask firstRetrieve a wallet.
  • get_walletGet walletGETAgents: ask firstRetrieve a wallet.

Add on, 4 operations

  • create_add_onCreate add onPOSTAgents: ask firstCreate an add-on.
  • delete_add_onDelete add onDELETEAgents: ask firstDelete an add-on.
  • get_add_onGet add onGETAgents: ask firstRetrieve an add-on.
  • list_add_onsList add onsGETAgents: ask firstList all add-ons.

Charge, 4 operations

  • create_plan_chargeCreate plan chargePOSTAgents: ask firstCreate a charge.
  • delete_plan_chargeDelete plan chargeDELETEAgents: ask firstDelete a charge.
  • get_plan_chargeGet plan chargeGETAgents: ask firstRetrieve a charge.
  • get_subscription_chargeGet subscription chargeGETAgents: ask firstRetrieve a charge for a subscription.

Entitlement, 4 operations

  • create_plan_entitlementCreate plan entitlementPOSTAgents: ask firstCreate an entitlement.
  • delete_plan_entitlementDelete plan entitlementDELETEAgents: ask firstDelete an entitlement.
  • delete_subscription_entitlementDelete subscription entitlementDELETEAgents: ask firstRemove an entitlement from a subscription.
  • get_plan_entitlementGet plan entitlementGETAgents: ask firstRetrieve an entitlement.

Fixed charge, 4 operations

  • create_plan_fixed_chargeCreate plan fixed chargePOSTAgents: ask firstCreate a fixed charge.
  • delete_plan_fixed_chargeDelete plan fixed chargeDELETEAgents: ask firstDelete a fixed charge.
  • get_plan_fixed_chargeGet plan fixed chargeGETAgents: ask firstRetrieve a fixed charge.
  • get_subscription_fixed_chargeGet subscription fixed chargeGETAgents: ask firstRetrieve a fixed charge for a subscription.

Applied coupon, 3 operations

  • apply_couponApply couponPOSTAgents: ask firstApply a coupon to a customer.
  • delete_customer_applied_couponDelete customer applied couponDELETEAgents: ask firstDelete an applied coupon.
  • list_applied_couponsList applied couponsGETAgents: ask firstList all applied coupons.

Billable metric, 3 operations

  • create_billable_metricCreate billable metricPOSTAgents: ask firstCreate a billable metric.
  • delete_billable_metricDelete billable metricDELETEAgents: ask firstDelete a billable metric.
  • get_billable_metricGet billable metricGETAgents: ask firstRetrieve a billable metric.

Coupon, 3 operations

  • create_couponCreate couponPOSTAgents: ask firstCreate a coupon.
  • delete_couponDelete couponDELETEAgents: ask firstDelete a coupon.
  • get_couponGet couponGETAgents: ask firstRetrieve a coupon.

Customer, 3 operations

  • create_customerCreate customerPOSTAgents: ask firstCreate a customer.
  • delete_customerDelete customerDELETEAgents: ask firstDelete a customer.
  • get_customerGet customerGETAgents: ask firstRetrieve a customer.

Feature, 3 operations

  • create_featureCreate featurePOSTAgents: ask firstCreate a feature.
  • delete_featureDelete featureDELETEAgents: ask firstDelete a feature.
  • get_featureGet featureGETAgents: ask firstRetrieve a feature.

Invoice, 3 operations

  • create_invoiceCreate invoicePOSTAgents: ask firstCreate a one-off invoice.
  • delete_invoiceDelete invoiceDELETEAgents: ask firstDelete a draft invoice.
  • get_invoiceGet invoiceGETAgents: ask firstRetrieve an invoice.

Plan, 3 operations

  • create_planCreate planPOSTAgents: ask firstCreate a plan.
  • delete_planDelete planDELETEAgents: ask firstDelete a plan.
  • get_planGet planGETAgents: ask firstRetrieve a plan.

Privilege, 3 operations

  • delete_feature_privilegeDelete feature privilegeDELETEAgents: ask firstDelete a privilege. Deleting a privilege removes it from all plans and subscriptions.
  • delete_plan_entitlement_privilegeDelete plan entitlement privilegeDELETEAgents: ask firstRemove a privilege from an entitlement.
  • delete_subscription_entitlement_privilegeDelete subscription entitlement privilegeDELETEAgents: ask firstRemove a privilege from a subscription entitlement override.

Subscription, 3 operations

  • create_subscriptionCreate subscriptionPOSTAgents: ask firstAssign a plan to a customer.
  • delete_subscriptionDelete subscriptionDELETEAgents: ask firstTerminate a subscription.
  • get_subscriptionGet subscriptionGETAgents: ask firstRetrieve a subscription.

Taxe, 3 operations

  • create_taxCreate taxPOSTAgents: ask firstCreate a tax.
  • delete_taxDelete taxDELETEAgents: ask firstDelete a tax.
  • get_taxGet taxGETAgents: ask firstRetrieve a Tax.

Webhook endpoint, 3 operations

  • create_webhook_endpointCreate webhook endpointPOSTAgents: ask firstCreate a webhook_endpoint.
  • delete_webhook_endpointDelete webhook endpointDELETEAgents: ask firstDelete a webhook endpoint.
  • get_webhook_endpointGet webhook endpointGETAgents: ask firstRetrieve a webhook endpoint.

Activity log, 2 operations

  • get_activity_logGet activity logGETAgents: ask firstRetrieve an activity log.
  • list_activity_logsList activity logsGETAgents: ask firstList all activity logs.

Api log, 2 operations

  • get_api_logGet api logGETAgents: ask firstRetrieve an api log.
  • list_api_logsList api logsGETAgents: ask firstList all api logs.

Billing entitie, 2 operations

  • create_billing_entityCreate billing entityPOSTAgents: ask firstCreate a billing entity.
  • get_billing_entityGet billing entityGETAgents: ask firstRetrieve a billing entity.

Credit note, 2 operations

  • create_credit_noteCreate credit notePOSTAgents: ask firstCreate a credit note.
  • get_credit_noteGet credit noteGETAgents: ask firstRetrieve a credit note.

Download, 2 operations

  • download_credit_noteDownload credit notePOSTAgents: ask firstDownload a credit note PDF.
  • download_invoiceDownload invoicePOSTAgents: ask firstDownload an invoice PDF.

Event, 2 operations

  • create_eventCreate eventPOSTAgents: ask firstSend usage events.
  • get_eventGet eventGETAgents: ask firstRetrieve a specific event.

Fee, 2 operations

  • delete_feeDelete feeDELETEAgents: ask firstDelete a fee.
  • get_feeGet feeGETAgents: ask firstRetrieve a specific fee.

Payment, 2 operations

  • create_paymentCreate paymentPOSTAgents: ask firstCreate a payment.
  • get_paymentGet paymentGETAgents: ask firstRetrieve a payment.

Payment request, 2 operations

  • create_payment_requestCreate payment requestPOSTAgents: ask firstCreate a payment request.
  • get_payment_requestGet payment requestGETAgents: ask firstRetrieve a payment request.

Payment url, 2 operations

  • get_invoice_payment_urlGet invoice payment urlPOSTAgents: ask firstGenerate a payment URL.
  • get_wallet_transaction_payment_urlGet wallet transaction payment urlPOSTAgents: ask firstGenerate a payment URL.

Wallet transaction, 2 operations

  • create_wallet_transactionCreate wallet transactionPOSTAgents: ask firstTop up a wallet.
  • get_wallet_transactionGet wallet transactionGETAgents: ask firstRetrieve a wallet transaction.

Batch, 1 operation

  • create_batch_eventsCreate batch eventsPOSTAgents: ask firstBatch multiple events.

Batch estimate instant fee, 1 operation

  • estimate_batch_instant_feesEstimate batch instant feesPOSTAgents: ask firstBatch estimate instant fees for a pay in advance charge.

Checkout url, 1 operation

  • generate_customer_checkout_urlGenerate customer checkout urlPOSTAgents: ask firstGenerate a Customer Payment Provider Checkout URL.

Current usage, 1 operation

  • get_customer_current_usageGet customer current usageGETAgents: ask firstRetrieve customer current usage.

Estimate, 1 operation

  • estimate_credit_noteEstimate credit notePOSTAgents: ask firstEstimate amounts for a new credit note.

Estimate fee, 1 operation

  • estimate_feesEstimate feesPOSTAgents: ask firstEstimate fees for a pay in advance charge.

Estimate instant fee, 1 operation

  • estimate_instant_feesEstimate instant feesPOSTAgents: ask firstEstimate instant fees for a pay in advance charge.

Evaluate expression, 1 operation

  • evaluate_billable_metric_expressionEvaluate billable metric expressionPOSTAgents: ask firstEvaluate an expression for a billable metric.

Finalize, 1 operation

  • finalize_invoiceFinalize invoicePUTAgents: ask firstFinalize a draft invoice.

Gross revenue, 1 operation

  • get_gross_revenue_analyticsGet gross revenue analyticsGETAgents: ask firstList gross revenue.

Invoice collection, 1 operation

  • get_invoice_collection_analyticsGet invoice collection analyticsGETAgents: ask firstList of finalized invoices.

Invoiced usage, 1 operation

  • get_invoiced_usage_analyticsGet invoiced usage analyticsGETAgents: ask firstList usage revenue.

Json public key, 1 operation

  • get_webhook_public_keyGet webhook public keyGETAgents: ask firstRetrieve webhook public key (JSON).

Lifetime usage, 1 operation

  • get_subscription_lifetime_usageGet subscription lifetime usageGETAgents: ask firstRetrieve subscription lifetime usage.

Mrr, 1 operation

  • get_mrr_analyticsGet mrr analyticsGETAgents: ask firstList MRR.

Overdue balance, 1 operation

  • get_overdue_balance_analyticsGet overdue balance analyticsGETAgents: ask firstList overdue balance.

Payment method, 1 operation

  • delete_customer_payment_methodDelete customer payment methodDELETEAgents: ask firstDelete a payment method.

Payment receipt, 1 operation

  • get_payment_receiptGet payment receiptGETAgents: ask firstRetrieve a payment receipt.

Portal url, 1 operation

  • get_customer_portal_urlGet customer portal urlGETAgents: ask firstGet a customer portal URL.

Projected usage, 1 operation

  • get_customer_projected_usageGet customer projected usageGETAgents: ask firstRetrieve customer current and projected usage.

Usage, 1 operation

  • get_usage_analyticsGet usage analyticsGETAgents: ask firstList usage.

Showing the first 120 of 201 endpoints. The rest are in the product, searchable from the workflow builder and from chat.

Use Lago from Claude Code, Cursor or Codex

Connect Lago in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Lago 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 Lago

  1. Create your workspace

    Sign up free. Nothing to install.

  2. Connect Lago once

    Add your Lago 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.

Lago integration FAQ

What can you do with the Lago integration?

LiveContext exposes 201 operations on Lago, covering alert, metadata, filter and wallet.

Popular integrations

Browse the whole catalog