lemonsqueezy-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@lemonsqueezy-mcplist my recent orders"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
lemonsqueezy-mcp

A Model Context Protocol server for Lemon Squeezy — 44 audited tools over the official SDK, security-first. Works with any Lemon Squeezy account.
An independent, unofficial integration — not affiliated with or endorsed by Lemon Squeezy.
What this is
An MCP server that lets Claude (Claude Code, Cowork, Claude Desktop) — or any
MCP-capable client — talk to your Lemon Squeezy account in plain language. Every
tool is a thin, audited wrapper around the official @lemonsqueezy/lemonsqueezy.js
SDK. The server runs locally over stdio; your API key never leaves your machine.
Related MCP server: Commerce-MCP
Features
44 MCP tools cover the full Lemon Squeezy API surface:
Category | Read | Mutating | Total |
Meta | 1 | 0 | 1 |
Stores | 2 | 0 | 2 |
Products / Variants / Prices | 6 | 0 | 6 |
Subscriptions | 2 | 4 | 6 |
Customers | 2 | 3 | 5 |
Orders | 3 | 1 | 4 |
Discounts | 3 | 2 | 5 |
License Keys | 4 | 3 | 7 |
Checkouts | 2 | 1 | 3 |
Webhooks | 2 | 3 | 5 |
Total | 27 | 17 | 44 |
Plus a security model built in (key never leaked, redacted audit log, store
allowlist, read-only mode, test_mode signalling — see below)
and two workflow skills (skills/) that chain the tools into reproducible
tasks: lemonsqueezy-tier-setup and
lemonsqueezy-webhook-test.
Install
Via npx (no install — recommended for MCP clients): see
Connect your MCP client below; npx fetches the
package on first run.
Global:
npm install -g @heysash/lemonsqueezy-mcp
lemonsqueezy-mcp # starts a stdio server (expects LEMONSQUEEZY_API_KEY in env)From source:
git clone https://github.com/heysash/lemonsqueezy-mcp.git
cd lemonsqueezy-mcp
npm install
npm run buildRequires Node.js ≥ 18.
Configure
Set your Lemon Squeezy API key. Get one from app.lemonsqueezy.com/settings/api.
LEMONSQUEEZY_API_KEY=<your Lemon Squeezy API key>Optional:
Variable | Effect |
| Reject destructive tool calls that target any other store. Strongly recommended when you have a test + production store. |
| Append every destructive call to a JSONL file. Stderr logging is always on. |
| Disable all destructive tools (create/update/delete/cancel/pause/resume/refund). Useful for audit sessions. |
Connect your MCP client
Add the server to your MCP configuration — e.g. ~/.claude.json, an .mcp.json
in your repo, or Claude Desktop's config:
{
"mcpServers": {
"lemonsqueezy-mcp": {
"command": "npx",
"args": ["-y", "@heysash/lemonsqueezy-mcp"],
"env": {
"LEMONSQUEEZY_API_KEY": "your-key-here"
}
}
}
}To run a locally built copy instead of npx, use
"command": "node", "args": ["/absolute/path/to/lemonsqueezy-mcp/dist/index.js"]
(see examples/claude-code-mcp-config.json).
Restart the client and verify with lemonsqueezy_whoami from a chat — it reports
the authenticated account and whether the key is a test or live key.
Tool catalogue
Tool | What it does | Destructive |
| Verify the API key; surfaces | — |
| Stores | — |
| Products | — |
| Variants (pricing tiers) | — |
| Prices | — |
| Subscriptions | — |
| Change variant, billing anchor, proration | ✓ |
| Cancel at period end | ✓ |
| Pause / resume | ✓ |
| Customers | — |
| CRUD | ✓ |
| Orders | — |
| Issue refund | ✓ |
| Discounts | — |
| Create / delete discount codes | ✓ |
| License keys | — |
| Mutating | ✓ |
| Checkouts | — |
| Create a one-off checkout URL | ✓ |
| Webhooks | — |
| Mutating | ✓ |
API constraint: Lemon Squeezy does NOT allow creating products or variants via the REST API — they must be created in the dashboard. The
lemonsqueezy-tier-setupskill wires dashboard-created products into your config rather than creating them from scratch.
Skills
Optional Claude skills (plain markdown under skills/) that turn the
tools into reproducible workflows. Copy them into your skill registry
(cp -r skills/lemonsqueezy-* ~/.claude/skills/):
lemonsqueezy-tier-setup— discover a store's subscription tiers and emit.envlines + a summary table.lemonsqueezy-webhook-test— send signature-valid synthetic webhook payloads to your handler and check the responses. (Lemon Squeezy has no official test-webhook API — this fills the gap.)
Security model
Payment tooling handles a live API key, so security is a first-class design goal, not an afterthought:
The API key is read only from
LEMONSQUEEZY_API_KEYand never appears in tool responses, error messages or audit logs.Audit log entries automatically redact any field whose key matches
apiKey,api_key,authorization,token,secret,password,lemonsqueezy_api_key.Destructive tools carry the MCP
destructiveHint: trueannotation so the client can ask for confirmation before mutating anything.Store allowlist is enforced: with
LEMONSQUEEZY_ALLOWED_STORE_IDSset, any destructive tool that targets a store outside the list is rejected and audited asdenied.LEMONSQUEEZY_READ_ONLY=truedisables every destructive tool — recommended for shared MCP sessions.lemonsqueezy_whoamisurfaces the response-leveltest_modeflag, so a caller can confirm a key operates on test data before any write.
Develop
npm run dev # tsx-watch the server (stdio)
npm run test # vitest unit + protocol-level integration
npm run coverage # vitest run --coverage (v8), enforced ≥ 90% lines/statements
npm run lint # eslint (flat config)
npm run smoke # API-free end-to-end smoke test against the compiled binary
npm run typecheck # tsc --noEmitFor a real-API check against your own Test-Mode account,
scripts/live-verify.mjs drives the compiled server
over stdio through a plan of tool calls. Launch it with the key injected by your
secret manager — never persist or echo the key, e.g.
op run --env-file=<template> -- node scripts/live-verify.mjs <plan.json> [out.json].
See CONTRIBUTING.md for the full workflow.
Works with
Any Lemon Squeezy account, and any framework or language — the server speaks the
MCP protocol over stdio. It pairs naturally with SaaS apps that bind checkouts to
their own users via Lemon Squeezy custom_data.
Maintainer
Built and maintained by heysash Studio (Sascha Rahn).
License
MIT © heysash Studio (Sascha Rahn) — see LICENSE and NOTICE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceUniversal Semantic Bridge for Lemon Squeezy: A high-performance Model Context Protocol (MCP) server that empowers AI assistants (Cursor, Claude, VS Code) to query payments, manage subscriptions, and sync customers to Salesforce directly from your editor. 🍋✨53463MIT
- AlicenseDqualityDmaintenanceEnables natural-language control of e-commerce operations including product management, order processing, inventory tracking, customer service, content generation, and advertising analytics through 15 integrated MCP tools. Provides a local-first commerce automation solution with SQLite storage and extensible channel adapters for end-to-end online store workflows.153MIT
- Flicense-qualityCmaintenanceProvides AI agents with 220+ tools for building websites, sending email, managing contacts, invoicing, databases, automation, and more through a single secure connection. Features hardware-bound authentication and works with Claude Desktop, Claude Code, Cursor, and other MCP-compatible clients.
- AlicenseAqualityAmaintenanceMCP server for the LemonSqueezy API. Enables managing stores, products, customers, subscriptions, discounts, and license keys from any MCP-compatible AI assistant.647913MIT
Related MCP Connectors
Connect e-commerce and marketing data to AI assistants via MCP.
Hosted Amazon Seller Central and Amazon Ads MCP server for Claude, ChatGPT, Cursor, and agents.
Hosted Amazon Seller and Vendor MCP server for Claude, ChatGPT, Cursor, Codex, Gemini, Copilot.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/heysash/lemonsqueezy-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server