Lemon Squeezy MCP by usefulapi

v1.43.1
io.usefulapi/lemonsqueezy Checked 2 days ago Published 1 day ago

MCP server for Lemon Squeezy — stores, products, orders, subscriptions, license keys.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

lemonsqueezy_get_user Get authenticated user

Get the currently authenticated user/account behind the API key. Good first call to confirm auth. API: GET /users/me.

lemonsqueezy_list_stores List stores

List all stores in the account. API: GET /stores.

ParameterTypeDescription
includestringComma-separated related resources to sideload (JSON:API include=), e.g. 'store,variant'.
page_numberintegerPage number (JSON:API page[number]). Default 1.
page_sizeintegerResults per page (JSON:API page[size], max 100). Default 10.

lemonsqueezy_get_store Get a store

Get a single store by id. API: GET /stores/{id}.

ParameterTypeDescription
store_id *stringStore id (required).
includestringComma-separated related resources to sideload (JSON:API include=), e.g. 'store,variant'.

lemonsqueezy_list_products List products

List products, optionally filtered to one store. API: GET /products (filter[store_id]).

ParameterTypeDescription
includestringComma-separated related resources to sideload (JSON:API include=), e.g. 'store,variant'.
page_numberintegerPage number (JSON:API page[number]). Default 1.
page_sizeintegerResults per page (JSON:API page[size], max 100). Default 10.
store_idstringFilter to a single store id.

lemonsqueezy_list_variants List variants

List variants (price/plan tiers), optionally filtered to one product. API: GET /variants (filter[product_id]).

ParameterTypeDescription
includestringComma-separated related resources to sideload (JSON:API include=), e.g. 'store,variant'.
page_numberintegerPage number (JSON:API page[number]). Default 1.
page_sizeintegerResults per page (JSON:API page[size], max 100). Default 10.
product_idstringFilter to a single product id.

lemonsqueezy_list_prices List prices

List price models, optionally filtered to one variant. API: GET /prices (filter[variant_id]).

ParameterTypeDescription
includestringComma-separated related resources to sideload (JSON:API include=), e.g. 'store,variant'.
page_numberintegerPage number (JSON:API page[number]). Default 1.
page_sizeintegerResults per page (JSON:API page[size], max 100). Default 10.
variant_idstringFilter to a single variant id.

lemonsqueezy_list_customers List customers

List customers, optionally filtered by store and/or email. API: GET /customers (filter[store_id], filter[email]).

ParameterTypeDescription
emailstringFilter to a customer email.
includestringComma-separated related resources to sideload (JSON:API include=), e.g. 'store,variant'.
page_numberintegerPage number (JSON:API page[number]). Default 1.
page_sizeintegerResults per page (JSON:API page[size], max 100). Default 10.
store_idstringFilter to a single store id.

lemonsqueezy_get_customer Get a customer

Get a single customer by id. API: GET /customers/{id}.

ParameterTypeDescription
customer_id *stringCustomer id (required).
includestringComma-separated related resources to sideload (JSON:API include=), e.g. 'store,variant'.

lemonsqueezy_list_orders List orders

List orders, optionally filtered by store and/or buyer email. API: GET /orders (filter[store_id], filter[user_email]).

ParameterTypeDescription
includestringComma-separated related resources to sideload (JSON:API include=), e.g. 'store,variant'.
page_numberintegerPage number (JSON:API page[number]). Default 1.
page_sizeintegerResults per page (JSON:API page[size], max 100). Default 10.
store_idstringFilter to a single store id.
user_emailstringFilter to a buyer email.

lemonsqueezy_get_order Get an order

Get a single order by id. API: GET /orders/{id}.

ParameterTypeDescription
order_id *stringOrder id (required).
includestringComma-separated related resources to sideload (JSON:API include=), e.g. 'store,variant'.

lemonsqueezy_list_subscriptions List subscriptions

List subscriptions with rich filtering by store, status, product, variant, customer, or buyer email. API: GET /subscriptions (filter[store_id], filter[status], filter[product_id], filter[variant_id], filter[customer_id], filter[user_email]).

ParameterTypeDescription
customer_idstringFilter to a single customer id.
includestringComma-separated related resources to sideload (JSON:API include=), e.g. 'store,variant'.
page_numberintegerPage number (JSON:API page[number]). Default 1.
page_sizeintegerResults per page (JSON:API page[size], max 100). Default 10.
product_idstringFilter to a single product id.
statusstringFilter by subscription status.
store_idstringFilter to a single store id.
user_emailstringFilter to a buyer email.
variant_idstringFilter to a single variant id.

lemonsqueezy_get_subscription Get a subscription

Get a single subscription by id. API: GET /subscriptions/{id}.

ParameterTypeDescription
subscription_id *stringSubscription id (required).
includestringComma-separated related resources to sideload (JSON:API include=), e.g. 'store,variant'.

lemonsqueezy_list_subscription_invoices List subscription invoices

List subscription invoices, optionally filtered by store, status, or refunded flag. API: GET /subscription-invoices (filter[store_id], filter[status], filter[refunded]).

ParameterTypeDescription
includestringComma-separated related resources to sideload (JSON:API include=), e.g. 'store,variant'.
page_numberintegerPage number (JSON:API page[number]). Default 1.
page_sizeintegerResults per page (JSON:API page[size], max 100). Default 10.
refundedbooleanFilter by refunded flag.
statusstringFilter by invoice status (e.g. paid, void, refunded).
store_idstringFilter to a single store id.

lemonsqueezy_list_license_keys List license keys

List license keys, optionally filtered by store, order, or product. API: GET /license-keys (filter[store_id], filter[order_id], filter[product_id]).

ParameterTypeDescription
includestringComma-separated related resources to sideload (JSON:API include=), e.g. 'store,variant'.
order_idstringFilter to a single order id.
page_numberintegerPage number (JSON:API page[number]). Default 1.
page_sizeintegerResults per page (JSON:API page[size], max 100). Default 10.
product_idstringFilter to a single product id.
store_idstringFilter to a single store id.

lemonsqueezy_list_discounts List discounts

List discounts, optionally filtered to one store. API: GET /discounts (filter[store_id]).

ParameterTypeDescription
includestringComma-separated related resources to sideload (JSON:API include=), e.g. 'store,variant'.
page_numberintegerPage number (JSON:API page[number]). Default 1.
page_sizeintegerResults per page (JSON:API page[size], max 100). Default 10.
store_idstringFilter to a single store id.

lemonsqueezy_create_checkout Create checkout

WRITE: Create a hosted checkout / payment link for a store + variant. Returns the created checkout including its `url` (the shareable payment link). API: POST /checkouts.

ParameterTypeDescription
store_id *stringStore id (required).
variant_id *stringVariant id to sell (required).
checkout_dataobjectJSON:API checkout_data object (email, name, custom, discount_code, etc.).
checkout_optionsobjectJSON:API checkout_options object (embed, media, button_color, etc.).
custom_priceintegerOverride price in cents (integer).
expires_atstringISO 8601 date-time when the checkout link expires.
product_optionsobjectJSON:API product_options object (name, description, redirect_url, etc.).

lemonsqueezy_update_subscription Update subscription

WRITE: Modify a LIVE subscription — change plan/tier (variant_id), cancel, pause/unpause, or set the billing anchor. This affects a real customer's billing. API: PATCH /subscriptions/{id}.

ParameterTypeDescription
subscription_id *stringSubscription id to update (required).
billing_anchorintegerDay of month (1-31) to anchor billing to.
cancelledbooleanSet true to cancel, false to un-cancel.
pausePause object (mode, resumes_at), or null to unpause.
variant_idintegerNew variant id to switch the plan/tier to.

lemonsqueezy_cancel_customer_subscription Cancel subscription

WRITE: Cancel a LIVE subscription. It remains active until the end of the current billing period, then moves to `cancelled`. This affects a real customer. API: DELETE /subscriptions/{id}.

ParameterTypeDescription
subscription_id *stringSubscription id to cancel (required).

lemonsqueezy_refund_order Refund an order

WRITE: Refund an order in full or in part, so money goes back to the buyer. Without confirm=true it only returns a preview (total, amount already refunded, amount still refundable) and refunds nothing. Ask the user before confirm=true. A fully refunded order is refused. API: GET /orders/{id}, then POST /orders/{id}/refund.

ParameterTypeDescription
order_id *stringOrder id to refund (required).
amountintegerAmount to refund in the order currency's smallest unit (integer): cents for USD or EUR, whole yen for JPY. Omit for a full refund. Check the order currency in the preview first.
confirmbooleanMust be true to issue the refund. Otherwise a preview is returned.

lemonsqueezy_activate_license_key Activate a license key

WRITE: Activate a license key on a new instance (one machine or install). Each confirmed call creates a new instance and uses one activation slot of the key. Without confirm=true it only returns a preview (key status, activation count and limit) and changes nothing. Ask the user before confirm=true, and only when the preview's can_proceed is true. License API: POST /licenses/validate, then POST /licenses/activate.

ParameterTypeDescription
instance_name *stringA label for the new instance, shown in Lemon Squeezy (required).
license_key *stringThe license key to activate (required).
confirmbooleanMust be true to activate. Otherwise a preview is returned.

lemonsqueezy_deactivate_license_key Deactivate a license key instance

WRITE: Deactivate one instance of a license key, which frees its activation slot. The software on that instance loses its activation. Without confirm=true it only returns a preview of the instance and changes nothing. Ask the user before confirm=true, and only when the preview's can_proceed is true. License API: POST /licenses/validate, then POST /licenses/deactivate.

ParameterTypeDescription
instance_id *stringThe instance id returned when the key was activated (required).
license_key *stringThe license key (required).
confirmbooleanMust be true to deactivate. Otherwise a preview is returned.