MetorialDocs

Set up Lemon Squeezy in Metorial for Claude, ChatGPT and Cursor

Share Lemon Squeezy with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 25 tools (17 read-only).

To give your team Lemon Squeezy in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Lemon Squeezy integration in a Metorial portal, and each person connects with an API key. Agents can manage digital product sales, subscriptions, and license keys. The integration has 25 tools, 17 read-only, 7 write and 1 destructive, plus 4 triggers.

What you'll learn

  • How an admin shares Lemon Squeezy in a portal and how each person connects
  • What Lemon Squeezy asks for when you connect, and where to find it
  • How to keep the 17 read-only tools and reject the other 8

Before you start

Sign-in method

MethodTypeWhat a person provides
API KeyAPI tokentoken

API Key

To connect, a person enters:

  • token: Your Lemon Squeezy API key. Create one at Settings > API in your dashboard.

Setup settings

Setup also asks for:

  • storeId (optional): Your Lemon Squeezy store ID. Required for creating webhooks, checkouts, and discounts.

Admin: share Lemon Squeezy in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Lemon Squeezy. For how members connect, choose Each person connects so everyone enters their own API key, or Shared connection to enter one API key for everyone.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Lemon Squeezy.

Choose who gets it

Add the access groups that should see Lemon Squeezy. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Lemon Squeezy integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search "lemon squeezy"

Employee: connect Lemon Squeezy

In the portal

Open Lemon Squeezy in the catalog

Sign in to your portal and open Lemon Squeezy. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your API key (token).

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search "lemon squeezy"
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your Lemon Squeezy connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list "lemon squeezy"
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 17 read-only tools, such as get_order and list_files, and lose the 7 write tools, such as manage_webhook or create_checkout, and the destructive tool refund_order.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list "lemon squeezy"
metorial tools <integration-id>
metorial call <integration-id> list_files -d '{}'

metorial tools lists the 25 tools, minus any you rejected. list_files takes no input. It retrieves digital product files from Lemon Squeezy.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (17)

  • list_products: Retrieve products from your Lemon Squeezy store.
  • list_subscriptions: Retrieve subscriptions from your Lemon Squeezy store.
  • get_order: Retrieve a specific order by ID. Needs orderId.
  • list_stores: Retrieve your Lemon Squeezy stores.
  • list_orders: Retrieve orders from your Lemon Squeezy store.
  • list_customers: Retrieve customers from your Lemon Squeezy store.
  • list_variants: Retrieve product variants (pricing tiers/configurations) from your store.
  • list_license_keys: Retrieve license keys from your Lemon Squeezy store.
  • list_discounts: Retrieve discount codes from your Lemon Squeezy store.
  • list_subscription_invoices: Retrieve subscription invoices from Lemon Squeezy.
  • list_order_items: Retrieve order line items from Lemon Squeezy, including product, variant, price, and quantity details.
  • list_discount_redemptions: Retrieve discount redemption records from Lemon Squeezy.
  • list_webhooks: Retrieve Lemon Squeezy webhooks.
  • list_files: Retrieve digital product files from Lemon Squeezy.
  • list_subscription_items: Retrieve Lemon Squeezy subscription items that link subscription records to price objects and quantities.
  • list_checkouts: Retrieve custom checkout links created for Lemon Squeezy variants.
  • list_prices: Retrieve Lemon Squeezy price objects.

Write tools (7)

  • manage_license_key: Retrieve or update a license key. Needs licenseKeyId and action.
  • create_checkout: Create a custom checkout URL for a specific product variant. Needs variantId.
  • manage_subscription: Retrieve, update, cancel, pause, unpause, or resume a subscription. Needs subscriptionId and action.
  • create_discount: Create a new discount code for your store. Needs name, code, amount and amountType.
  • manage_webhook: Create, retrieve, update, or delete a Lemon Squeezy webhook. Needs action.
  • manage_discount: Retrieve or delete a Lemon Squeezy discount. Needs action and discountId.
  • manage_customer: Retrieve, create, update, or archive a Lemon Squeezy customer. Needs action.

Destructive tools (1)

  • refund_order: Issue a full or partial refund for an order. Needs orderId.

Triggers

Lemon Squeezy has 4 triggers, which fire on events in Lemon Squeezy:

  • license_key_events: Triggers when a license key is created or updated.
  • subscription_payment_events: Triggers on subscription payment events: successful payments, failures, recoveries, and refunds.
  • order_events: Triggers when an order is created or refunded in your Lemon Squeezy store.
  • subscription_events: Triggers on subscription lifecycle events: created, updated, cancelled, resumed, expired, paused, and unpaused.

Next steps