Lemon Squeezy Server
Provides comprehensive integration with Lemon Squeezy's payment platform, enabling management of stores, products, variants, orders, customers, subscriptions, license keys, checkouts, and webhooks with full audit logging capabilities.
Click on "Deploy 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., "@Lemon Squeezy Server list my recent orders from the last month"
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.
Lemon Squeezy Server
A Model Context Protocol (MCP) server implementation that integrates with Lemon Squeezy for handling subscriptions, checkouts, products, and more. This server provides a structured interface to programmatically manage your Lemon Squeezy store with audit logging and tool-based control.
Demo
Requirements
Python 3.8+
MCP SDK 0.1.0+
aiohttp
python-dotenv
Related MCP server: @yawlabs/lemonsqueezy-mcp
Components
Resources
The server provides an MCP-compatible resource for operation auditing:
Stores logs of all tool-based Lemon Squeezy operations
Exposes audit log via
read_resourceendpointHelpful for debugging and audit traceability
Tools
Implements a full set of Lemon Squeezy operations via MCP tools:
🔍 Store & Product Tools
get_user: Get current Lemon Squeezy user infolist_stores: List all storesget_store: Fetch a specific storelist_products: List productsget_product: Get product detailsget_product_variants: List variants for a product
📦 Order & Customer Tools
list_orders: List all ordersget_order: Get details of an orderlist_customers: List all customersget_customer: Fetch customer details
💳 Subscription & License Tools
list_subscriptions: List subscriptionsget_subscription: Get a subscriptionlist_license_keys: List license keysget_license_key: Fetch license key info
🛒 Checkout & Webhook Tools
create_checkout: Create a fully customized checkout sessioncreate_webhook: Register a new webhooklist_webhooks: List all webhooks (filterable by store)
Features
Subscription & Checkout Management
Webhook Creation & Listing
Audit Logging of All Actions
MCP-Compatible Tool & Resource Integration
Error Feedback and Logging
Installation
Installing via Smithery
To install LemonSqueezy Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @atharvagupta2003/mcp-lemonsqueezy --client claudeInstall dependencies
python -m venv venv
source venv/bin/activate # On macOS/Linux
venv\Scripts\activate # On Windows
pip install -e .Configuration
Set up the environment variables in a .env file:
LEMON_SQUEEZY_API_KEY=your_lemonsqueezy_api_keyClaude Desktop
Add the server configuration to your Claude Desktop config:
Windows: C:\Users<username>\AppData\Roaming\Claude\claude_desktop_config.json
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"lemonsqueezy": {
"command": "/Users/hp/.local/bin/uv",
"description": "Operations with lemonsqueezy payment platform",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/src/mcp_lemonsqueezy",
"run",
"--with",
"fastmcp",
"server.py"
],
"env": {
"LEMONSQUEEZY_API_KEY": "<YOUR-API-KEY>"
}
}
}
}Usage
Start the server
uv run src/mcp_lemonsqueezy/server.pyExample MCP Commands
Get Current User
{
"tool": "get_user",
"arguments": {}
}
List All Stores
{
"tool": "list_stores",
"arguments": {}
}
Get a Store by ID
{
"tool": "get_store",
"arguments": {
"store_id": "164870"
}
}
Error Handling
The server provides clear error messages for common scenarios:
401 Unauthorized: Missing or invalid API key
422 Unprocessable Entity: Invalid fields like missing variant/store ID
400 Bad Request: Invalid JSON API structure
Development
Testing
Run the MCP Inspector for interactive testing:
npx @modelcontextprotocol/inspector uv run --with fastmcp /ABSOLUTE/PATH/TO/PARENT/FOLDER/src/mcp_lemonsqueezy/server.pyBuilding
Update dependencies:
uv compile pyproject.tomlBuild package:
uv buildContributing
We welcome contributions! Please see our Contributing Guidelines for details.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Available Tools
17 toolscreate_checkoutC
Create a Lemon Squeezy checkout session with full custom configuration. Args: data: The checkout data (see LemonSqueezy API docs)
Inputs: data (required).
create_webhookC
Register a webhook URL for a specific store and events. Args: webhook_data: The webhook data (see LemonSqueezy API docs)
Inputs: webhook_data (required).
get_customerB
Get a customer by ID. Args: customer_id: The ID of the customer
Inputs: customer_id (required).
get_license_keyC
Get a license key by ID. Args: license_key_id: The ID of the license key
Inputs: license_key_id (required).
get_orderB
Get an order by ID. Args: order_id: The ID of the order
Inputs: order_id (required).
get_productC
Get a specific product by ID. Args: product_id: The ID of the product
Inputs: product_id (required).
get_product_variantsC
Get all variants for a given product ID. Args: product_id: The ID of the product to fetch variants for
Inputs: product_id (required).
get_storeC
Get details of a specific store. Args: store_id: The ID of the store
Inputs: store_id (required).
get_subscriptionB
Get a subscription by ID. Args: subscription_id: The ID of the subscription
Inputs: subscription_id (required).
get_userB
Get the current authenticated Lemon Squeezy user.
Inputs: no named parameters.
list_customersC
List all customers.
Inputs: no named parameters.
list_license_keysA
List all license keys.
Inputs: no named parameters.
list_ordersB
List all orders.
Inputs: no named parameters.
list_productsB
List all products.
Inputs: no named parameters.
list_storesA
List all Lemon Squeezy stores.
Inputs: no named parameters.
list_subscriptionsB
List all subscriptions.
Inputs: no named parameters.
list_webhooksA
List all webhooks. Optionally filter by store ID. Args: store_id: If provided, only webhooks for this store will be returned
Inputs: store_id.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Each tool targets a distinct entity-action pair (e.g., get vs list for customers, orders, etc.), and there is no overlap. The only specific variant is get_product_variants, which is clearly a sub-resource.
All tool names follow a consistent verb_noun pattern in snake_case (get_, list_, create_), with no deviations or mixed conventions.
17 tools cover the main entities of the Lemon Squeezy platform (customers, orders, subscriptions, products, stores, webhooks, license keys, checkout) without being excessive. The scope is well-matched to a commerce API.
The tool set is heavily read-oriented with only two create operations (checkout and webhook). Missing update, delete, and other mutation operations for most entities (e.g., customers, products, stores) creates significant gaps that would hinder agents needing full lifecycle management.
Maintenance
Related MCP Connectors
MCP server for Lemon Squeezy — stores, products, orders, subscriptions, license keys.
Create and manage checkout pages, event ticketing, forms, customers, payments and subscriptions.
Query and manage Paddle Billing: pricing, subscriptions, payments, revenue reports and webhooks.
Read subscriptions, subscribers and orders; manage renewals, billing skips and payment links.
Related MCP Servers
- AlicenseBqualityCmaintenanceUniversal 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. 🍋✨5356 npm3MIT
- AlicenseAqualityBmaintenanceMCP server for the LemonSqueezy API. Enables managing stores, products, customers, subscriptions, discounts, and license keys from any MCP-compatible AI assistant.64221 npm3MIT
- AlicenseNot gradedqualityCmaintenanceEnables natural language interaction with Lemon Squeezy accounts via MCP tools for managing subscriptions, orders, discounts, license keys, and more, with built-in security and audit logging.17 npmMIT
- AlicenseAqualityCmaintenanceUniversal CLI and MCP server providing unified payment links, customer prefilling, expiring checkouts, refund management, fee comparison, and HMAC-verified webhook proxying across Stripe, Razorpay, and LemonSqueezy.7MIT