Lemon Squeezy MCP server for AI agents

Live

BEARER TOKEN

SUBSCRIPTION BILLING

Accounting & Finance

Lemon Squeezy gives your agent store and billing data in your Lemon Squeezy account: read orders, customers, subscriptions, invoices, and license keys, create checkouts and discounts, and manage subscriptions.

  • Per-user credentials: each call uses the actual user's access token, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Lemon Squeezy
agent · Acme Q3
Run
Show the latest orders for jane@example.com.
S
lemonsqueezy_orders_list
168ms
Billing agent
Found 2 orders for jane@example.com, newest first.
Sources: Lemon Squeezy orders, 2 results
lemonsqueezy
2 orders
18:29
Message Claude...

Tools your billing agent reaches for on Lemon Squeezy, scoped per user.

CALL ANY TOOL
28 tools for billing in Lemon Squeezy: read orders, customers, subscriptions, invoices, and license keys, create checkouts, customers, and discounts, and update or cancel subscriptions.
lemonsqueezy_checkout_create
Create checkout
Create a unique checkout link for a product variant, with optional custom price, prefilled buyer details, discount code, custom data and expiry. Returns the checkout's id and its url to send to the buyer, plus the options it was created with. Use it to send a buyer a personal payment link. Use lemonsqueezy_checkout_get to read a checkout you created. Run lemonsqueezy_stores_list and lemonsqueezy_variants_list first to get the store_id and variant_id.
Parameters
Name
Type
Required
Description
store_id
string
Required
The ID of the store the checkout belongs to. Use lemonsqueezy_stores_list to find IDs. Example: 12345.
variant_id
string
Required
The ID of the variant being sold. Use lemonsqueezy_variants_list to find IDs. Example: 67890.
billing_country
string
Optional
Billing country to prefill, as a two-letter ISO 3166-1 code. Example: US.
billing_zip
string
Optional
Billing zip or postal code to prefill. Example: 10001.
checkout_options
object
Optional
Display options for the checkout page: embed (overlay), whether to show media, logo, description and the discount field, skip_trial, subscription_preview, hex colors such as button_color, and locale (for example en or fr). Example: {"button_color": "#7047EB", "locale": "en"}.
custom_data
object
Optional
Your own key-value data to attach to the checkout; it is passed on to the resulting order, subscription and webhooks. Example: {"user_id": "123"}.
custom_price
integer
Optional
Custom price in cents that replaces the variant's price; for subscriptions it is used for all renewals. Example: 4900.
discount_code
string
Optional
Discount code to prefill, from lemonsqueezy_discounts_list. Example: BF2026.
email
string
Optional
Email address to prefill at checkout. Example: jane@example.com.
expires_at
string
Optional
When the checkout link expires, as an ISO 8601 date-time. Leave empty for a link that never expires. Example: 2026-12-31T23:59:59Z.
name
string
Optional
Buyer name to prefill at checkout. Example: Jane Doe.
preview
boolean
Optional
Set to true to return a price preview (subtotal, tax, total) with the checkout. Example: true.
product_options
object
Optional
Overrides for the product shown at this checkout: name, description, media (image URLs), redirect_url after purchase, receipt button text, link and thank-you note, and enabled_variants (variant IDs to show). Example: {"redirect_url": "https://example.com/thanks", "enabled_variants": [67890]}.
tax_number
string
Optional
Tax or VAT number to prefill. Example: GB123456789.
test_mode
boolean
Optional
Set to true to create the checkout in test mode. Example: false.
variant_quantities
array
Optional
Quantities per variant for the checkout. Each item has a numeric variant_id and a quantity. Example: [{"variant_id": 67890, "quantity": 3}].
lemonsqueezy_checkout_get
Get checkout
lemonsqueezy_checkouts_list
List checkouts
lemonsqueezy_customer_create
Create customer
lemonsqueezy_customer_get
Get customer
lemonsqueezy_customer_update
Update customer
lemonsqueezy_customers_list
List customers
lemonsqueezy_discount_create
Create discount
lemonsqueezy_discount_delete
Delete discount
lemonsqueezy_discount_get
Get discount
lemonsqueezy_discounts_list
List discounts
lemonsqueezy_license_key_get
Get license key
lemonsqueezy_license_key_update
Update license key
lemonsqueezy_license_keys_list
List license keys
lemonsqueezy_order_get
Get order
lemonsqueezy_orders_list
List orders
lemonsqueezy_product_get
Get product
lemonsqueezy_products_list
List products
lemonsqueezy_store_get
Get store
lemonsqueezy_stores_list
List stores
lemonsqueezy_subscription_cancel
Cancel subscription
lemonsqueezy_subscription_get
Get subscription
lemonsqueezy_subscription_invoices_list
List subscription invoices
lemonsqueezy_subscription_update
Update subscription
lemonsqueezy_subscriptions_list
List subscriptions
lemonsqueezy_user_get
Get user
lemonsqueezy_variant_get
Get variant
lemonsqueezy_variants_list
List variants
Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Lemon Squeezy tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["lemonsqueezy"], toolNames: [
    "lemonsqueezy_orders_list",
    "lemonsqueezy_subscriptions_list",
    "lemonsqueezy_subscription_update"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Find the orders for jane@example.com, check their subscription, and pause payment collection" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["lemonsqueezy"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Find the orders for jane@example.com, check their subscription, and pause payment collection" }],
  tools,
});

// Execute the tool call with the user's vaulted Lemon Squeezy access token
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["lemonsqueezy"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Find the orders for jane@example.com, check their subscription, and pause payment collection" }],
  tools,
});

// Tool call runs with the user's vaulted Lemon Squeezy access token
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["lemonsqueezy"] }, pageSize: 100,
});

const agent = new Agent({
  name: "billing_agent",
  model: "gemini-2.5-pro",
  instruction: "Lemon Squeezy tools scoped to this user",
  tools,
});

await agent.run("Find the orders for jane@example.com, check their subscription, and pause payment collection");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Lemon Squeezy tool. Click to copy, paste into your agent, done.
Orders and customers
Copy the prompt
Copied
List the latest orders in my store.
Copy the prompt
Copied
Find the customer with the email jane@example.com.
Copy the prompt
Copied
Show the subscription invoices that were refunded.
Subscriptions
Copy the prompt
Copied
Show the status of this subscription.
Copy the prompt
Copied
Pause payment collection on this subscription.
Copy the prompt
Copied
Cancel this subscription so it ends at its end date.
Checkouts and licenses
Copy the prompt
Copied
Create a checkout link for this product variant.
Copy the prompt
Copied
Create a 20% discount code for my store.
Copy the prompt
Copied
Disable this license key.
SEE HOW AUTH WORKS
Each user connects their own Lemon Squeezy access token once; Scalekit sends it with every call. Tokens stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Lemon Squeezy
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Lemon Squeezy
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Lemon Squeezy
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Lemon Squeezy
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other accounting and finance connectors.
GTM and RevOps Teams
Revenue forecast commentary
Pulls open pipeline from Salesforce and HubSpot, calculates coverage against quota, flags at-risk stages, posts commentary to Slack, and logs every snapshot to Google Sheets.
Test other agents
See the same per-user auth pattern across other accounting and finance connectors.
GTM
Revenue forecast agent
Score pipeline coverage against quota across Salesforce and HubSpot, post forecast commentary to Slack, log snapshots to Sheets.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Lemon Squeezy access token looks fine in a demo. In production every subscription change and discount looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared token
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Lemon Squeezy today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Lemon Squeezy as the user or through a shared access token?
As the user. Each user connects their own Lemon Squeezy access token once, and Scalekit sends it with every call. Audit logs attribute every subscription change and discount to that user, not a shared service account.
Where is the Lemon Squeezy access token stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new access token. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Lemon Squeezy?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the list and get tools without lemonsqueezy_subscription_cancel or lemonsqueezy_discount_delete, which permanently deletes a discount code. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Lemon Squeezy access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
What happens to a subscription the agent cancels?
lemonsqueezy_subscription_cancel cancels an active subscription, and it stays valid until its ends_at date, the grace period. lemonsqueezy_subscription_update can resume a cancelled subscription.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""lemonsqueezy"": {
""url"": ""https://mcp.scalekit.com/lemonsqueezy"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.lemonsqueezy]
url = ""https://mcp.scalekit.com/lemonsqueezy""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""lemonsqueezy"": {
""url"": ""https://mcp.scalekit.com/lemonsqueezy"",
""type"": ""http""
}
}
}