KosmoKrator

ecommerce

Lemon Squeezy MCP Integration for LangChain

Connect Lemon Squeezy to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 7 read 0 write API key auth

Connect Lemon Squeezy to LangChain

Bridge LangChain agents to local KosmoKrator integration tools through MCP or headless CLI calls.

Use the MCP gateway when the agent should discover tools, or wrap kosmo integrations:call for fixed chains. The gateway is local, scoped to this integration, and starts with --write=deny so LangChain can inspect read-capable tools without receiving write access by default.

Lemon Squeezy MCP Config for LangChain

Keep the gateway scoped to the integration and operation class needed by the chain.

{
  "mcpServers": {
    "kosmokrator-lemon-squeezy": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=lemon-squeezy",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=lemon-squeezy --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Lemon Squeezy instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

Lemon Squeezy Tools Visible to LangChain

LangChain sees stable MCP tool names generated from the Lemon Squeezy integration catalog.

MCP toolSource functionTypeDescription
integration__lemon_squeezy__lemonsqueezy_list_products lemon-squeezy.lemonsqueezy_list_products Read List all digital products in your Lemon Squeezy store. Returns product names, prices, and status.
integration__lemon_squeezy__lemonsqueezy_get_product lemon-squeezy.lemonsqueezy_get_product Read Get details for a specific Lemon Squeezy product by ID. Returns full product information including pricing, variants, and status.
integration__lemon_squeezy__lemonsqueezy_list_orders lemon-squeezy.lemonsqueezy_list_orders Read List all orders in your Lemon Squeezy store. Returns order details including status, totals, and customer info.
integration__lemon_squeezy__lemonsqueezy_get_order lemon-squeezy.lemonsqueezy_get_order Read Get details for a specific Lemon Squeezy order by ID. Returns full order information including line items, totals, and customer data.
integration__lemon_squeezy__lemonsqueezy_list_customers lemon-squeezy.lemonsqueezy_list_customers Read List all customers in your Lemon Squeezy store. Returns customer names, emails, and metadata.
integration__lemon_squeezy__lemonsqueezy_list_subscriptions lemon-squeezy.lemonsqueezy_list_subscriptions Read List all subscriptions in your Lemon Squeezy store. Returns subscription status, billing cycle, and customer info.
integration__lemon_squeezy__lemonsqueezy_get_current_user lemon-squeezy.lemonsqueezy_get_current_user Read Get the currently authenticated Lemon Squeezy user profile. Useful for verifying API credentials and viewing account info.

Related Lemon Squeezy Pages