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 "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., "@Lemon Squeezy Serverlist 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
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:
Install dependencies
Configuration
Set up the environment variables in a .env file:
Claude 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
Usage
Start the server
Example MCP Commands
Get Current User
List All Stores
Get a Store by ID
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:
Building
Update dependencies:
Build package:
Contributing
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.