logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mcp-commerce-processor-lsq

Facilitates programmatic interaction with the LemonSqueezy platform's API, enabling comprehensive oversight and manipulation of electronic commerce workflows, spanning product catalogs, transaction fulfillment, and recurring billing management. It supplies a standardized interface for automated control over a Lemon Squeezy digital storefront, complete with transactional history tracking and tool-invoked governance.

Author

mcp-commerce-processor-lsq logo

atharvagupta2003

MIT License

Quick Info

GitHub GitHub Stars 3
NPM Weekly Downloads 0
Tools 1
Last Updated 2026-02-19

Tags

lemonsqueezylemoncommercelemonsqueezy apiintegrates lemonsqueezybusiness tools

Lemon Squeezy Server Interface

smithery badge

An implementation of the Model Context Protocol (MCP) server designed to interface seamlessly with the Lemon Squeezy digital sales infrastructure. This module manages critical business functions, including ongoing customer subscriptions, payment gateways, inventory items, and transactional record-keeping. The server establishes a well-defined conduit for remote, scripted administration of your Lemon Squeezy merchandising presence, incorporating detailed operational logging and direct, tool-based command execution capabilities.

Demonstration

lemonsqueezy_demo

Prerequisites

  • Operating environment requires Python version 3.8 or newer.
  • MCP SDK baseline of 0.1.0 or higher.
  • Dependency: aiohttp library.
  • Dependency: python-dotenv for environment variable management.

Operational Modules

Data Access Points (Resources)

This server exposes an MCP-compliant data structure dedicated to logging procedural actions taken via the provided tools:

  • Archives records of every Lemon Squeezy operation initiated through the provided tooling.
  • Makes the complete audit trail accessible via the read_resource interface.
  • Essential for troubleshooting workflows and maintaining regulatory compliance trace.

Control Mechanisms (Tools)

A comprehensive set of operations mirroring Lemon Squeezy functionalities, accessible via MCP tool calls:

🛍️ Storefront and Merchandise Tools

  • get_user: Retrieves authentication subject details.
  • list_stores: Enumerates all associated digital storefronts.
  • get_store: Fetches specific storefront configuration data.
  • list_products: Retrieves a roster of available catalog items.
  • get_product: Fetches detailed specifications for an individual item.
  • get_product_variants: Lists all purchasable options for a specific product.

🧾 Transaction and Client Tools

  • list_orders: Retrieves a history of all processed customer transactions.
  • get_order: Fetches granular data for a specified transaction.
  • list_customers: Retrieves a registry of all registered clientele.
  • get_customer: Fetches detailed profiles for a specific client record.

🔑 Recurring Billing and Licensing Tools

  • list_subscriptions: Retrieves records of recurring billing arrangements.
  • get_subscription: Fetches details for an individual recurring payment plan.
  • list_license_keys: Retrieves issued software authorization codes.
  • get_license_key: Fetches specific information concerning an authorization code.

🌐 Commerce Endpoint and Notification Tools

  • create_checkout: Generates a dynamically configured digital purchase session.
  • create_webhook: Registers a new system notification endpoint.
  • list_webhooks: Retrieves the list of registered notification endpoints (supports filtering by storefront).

Core Capabilities

  • Management of Recurring Payments and Purchase Sessions
  • Configuration and Inventory of System Notifications
  • Immutable Logging for All Executed Actions
  • Adherence to MCP Standards for Tooling and Data Structures
  • Robust Feedback Mechanisms for Errors and Logging

Deployment Instructions

Automated Setup via Smithery

To install the LemonSqueezy Interface for use with Claude Desktop automatically through Smithery:

npx -y @smithery/cli install @atharvagupta2003/mcp-lemonsqueezy --client claude

Local Dependency Installation

python -m venv venv
source venv/bin/activate  # For Unix-like systems
venv\Scripts\activate    # For Windows systems
pip install -e .

Configuration Variables

Define necessary secrets in a .env configuration file:

LEMON_SQUEEZY_API_KEY=your_lemonsqueezy_api_key

Integration with Claude Desktop

Modify your Claude Desktop configuration file (path location provided below) to incorporate this server definition:

Windows Location: C:\Users\\AppData\Roaming\Claude\claude_desktop_config.json

MacOS Location: ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "lemonsqueezy": {
      "command": "/Users/hp/.local/bin/uv",
      "description": "Control interface for the lemonsqueezy financial transaction platform",
      "args": [
        "--directory",
        "/ABSOLUTE/PATH/TO/PARENT/FOLDER/src/mcp_lemonsqueezy",
        "run",
        "--with",
        "fastmcp",
        "server.py"
      ],
      "env": {
         "LEMONSQUEEZY_API_KEY": "<YOUR-API-KEY>"
       }
    }
  }
}

Operational Use

Initiating the Server Process

uv run src/mcp_lemonsqueezy/server.py

Illustrative MCP Invocation Schemas

Fetching User Context

{
  "tool": "get_user",
  "arguments": {}
}

Retrieving All Storefronts

{
  "tool": "list_stores",
  "arguments": {}
}

Querying Store Details by Identifier

{
  "tool": "get_store",
  "arguments": {
    "store_id": "164870"
  }
}

Exception Management

The server relays descriptive diagnostic messages for predictable failure states: - HTTP 401 (Unauthorized): Indicates a failure due to missing or invalidated API credential. - HTTP 422 (Unprocessable Entity): Occurs when provided parameters, such as customer or merchandise identifiers, are invalid or absent. - HTTP 400 (Bad Request): Signifies structural errors within the transmitted JSON payload.

Development Lifecycle

Validation and Debugging

Execute the MCP Inspector utility for interactive command testing:

npx @modelcontextprotocol/inspector uv run --with fastmcp /ABSOLUTE/PATH/TO/PARENT/FOLDER/src/mcp_lemonsqueezy/server.py

Package Assembly

  1. Update current dependencies:
uv compile pyproject.toml
  1. Build the distribution artifact:
uv build

Community Contributions

We welcome input from the community! Consult our Contributing Guidelines for submission protocols.

Licensing

This software is distributed under the terms of the MIT License. See the LICENSE file for full details.

WIKIPEDIA: Business management tools are all the systems, applications, controls, calculating solutions, methodologies, etc. used by organizations to be able to cope with changing markets, ensure a competitive position in them and improve business performance.

== Conceptual Framework == Management utility software can be categorized according to the functional divisions within an enterprise. This classification covers aspects such as: resource planning instruments, workflow control mechanisms, data archiving solutions, personnel administration utilities, strategic assessment aids, operational monitoring systems, and so forth. A functional division analysis typically encompasses these primary areas:

Software utilized for data entry and integrity verification across all organizational units. Systems employed for regulating and optimizing operational procedures. Applications dedicated to data aggregation and executive decision support. Modern enterprise tooling has undergone profound transformations over the past decade, driven by rapid technological advancement. This evolution makes selecting the optimal business software for specific corporate scenarios increasingly complex. This difficulty stems from the constant pressure to minimize expenditure while maximizing revenue generation, the imperative to deeply understand customer requirements, and the challenge of delivering products that precisely meet those needs in the desired format. In this dynamic landscape, organizational leaders should adopt a strategic perspective toward business management software selection, rather than chasing the newest available product. Often, managers deploy tools without appropriate customization, resulting in operational instability. Consequently, business management tools must be chosen deliberately and then tailored to fit the specific requirements of the organization, not the reverse.

== Prevalent Methodologies == In 2013, a study by Bain & Company mapped the global utilization patterns of various business tools. These tools reflect regional necessities shaped by prevailing economic conditions and market performance:

The top ten categories identified included:

Strategic Planning Frameworks Client Relationship Management Systems Workforce Sentiment Analysis Competitive Benchmarking Processes Performance Measurement via Scorecards Core Capability Identification Operational Outsourcing Strategies Organizational Transformation Initiatives Inbound/Outbound Logistics Coordination Defining Organizational Purpose and Vision Customer Profiling and Segmentation Comprehensive Quality Assurance Systems

== Software Suites for Commerce == Software, or a structured collection of computational routines, utilized by organizational personnel to execute diverse corporate functions, is termed business software (or a business application). These applications serve to elevate productivity levels, quantify performance metrics, and execute various other enterprise tasks with precision. The evolution progressed from early Management Information Systems (MIS) to extensive Enterprise Resource Planning (ERP) suites. Subsequently, Customer Relationship Management (CRM) capabilities were integrated, culminating in the current cloud-native ecosystem of business management platforms. While a measurable link exists between IT investment efficacy and organizational outcomes, two factors critically augment the value derived: the success of the deployment process and the judicious selection and customization of the applied tools.

== Tools Tailored for Smaller Enterprises (SMEs) == Tools specifically designed for Small and Medium Enterprises are vital as they furnish avenues to conserve m

See Also

`