Lemonsqueezy Mcp Server

io.github.IntrepidServicesLLC由 GitHub 帳號 IntrepidServicesLLC 發布v1.0.3更新於 Oct 24, 2026

Lemon Squeezy SDK as MCP server. Give your AI assistant access to payment and subscription data.

已驗證STDIO僅桌面金融商業與電商

概覽

AI 產生的概覽

一個本機 MCP 伺服器,把 AI 助理連接到 Lemon Squeezy 商店,用來查詢訂單、訂閱與客戶。

可以做什麼
查詢訂單與銷售紀錄,例如最近一筆銷售或近期訂單;具體工具清單 README 未完整列出。查詢訂閱及其狀態,並依名稱尋找客戶。可選擇開啟活動脈絡(例如失敗付款),並可定期輪詢失敗付款。設定 Salesforce 憑證後,可選擇把客戶同步到 Salesforce。另有獨立的受控伺服器,僅提供帳單摘要與訂閱狀態,供唯讀委派存取。
適用情境
適合經營 Lemon Squeezy 商店、希望在編輯器裡直接向助理詢問銷售、訂閱狀態或客戶紀錄而不必登入後台的使用者。適用於受信任的本機商家操作者;若為委派或面向客戶的代理,README 建議改用獨立的受控入口。
執行需求
透過 npx 或本機建置副本以 stdio 在本機執行,需要 Node.js 18 或更高版本。需要 Lemon Squeezy 帳號,並透過 LEMONSQUEEZY_API_KEY 環境變數提供 API 金鑰。可選 LEMONSQUEEZY_TEST_API_KEY 用於測試模式,以及 ENABLE_RESOURCES、POLL_FAILED_PAYMENTS 開關和供 CRM 同步工具使用的 Salesforce 憑證。
安裝前請注意
預設 stdio 入口會暴露完整的舊版工具集,其中包含可變更 Lemon Squeezy 資料的工具,僅適用於受信任的本機操作者,不適合面向客戶或委派的代理。API 金鑰是正式憑證,可讀取且可能修改商店資料,請勿放入共用設定。若同時設定正式金鑰與測試金鑰,正式金鑰優先。啟用 Salesforce 同步會把客戶資料傳送給第三方。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Lemonsqueezy Mcp Server,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Lemon Squeezy MCP Server

[Demo GIF showing the MCP server in action]

📖 About

Give your AI assistant direct access to your payment and subscription data.

This server acts as a bridge between your AI assistant (like VS Code, Claude Desktop, or any MCP-compatible client) and your Lemon Squeezy account. Instead of manually logging into dashboards, searching for orders, and copy-pasting details, you can simply ask your AI questions like:

  • "What was the last sale?"
  • "Is subscription #12345 still active?"
  • "Find all customers named 'Alice'"

Your AI will query the data securely and give you an instant answer, right in your code editor.


🌱 Beginner Level: Getting Started

Who is this for? You are new to CLI tools or just want to get this running quickly with minimal fuss.

1. Prerequisites

Before you start, make sure you have these two things installed on your computer:

  • Node.js (Version 18 or higher): This is the software that runs the server. Download Node.js here.
  • A Lemon Squeezy Account: You need an account to get the data. Sign up here.

2. Get Your API Key

Think of this as your password for the server.

  1. Log in to your Lemon Squeezy Dashboard.
  2. Go to Settings -> API.
  3. Click Create API Key.
  4. Copy the key (it starts with ls_...). Keep this safe!

3. Quick Installation

Open your terminal (Command Prompt on Windows, Terminal on Mac) and run these commands one by one:

bash
# 1. Download the projectgit clone https://github.com/IntrepidServicesLLC/lemonsqueezy-mcp-server.gitcd lemonsqueezy-mcp-server
# 2. Install the necessary filesnpm install
# 3. Build the servernpm run build

4. Connect to Your AI Editor

The exact steps depend on which AI editor you're using. Here are the most common:

One-copy-paste setup (Claude Desktop / Cursor / npx):
Add this to your MCP config file (e.g. claude_desktop_config.json or Cursor MCP settings). Replace YOUR_KEY_HERE with your Lemon Squeezy API key.

json
"mcpServers": {  "lemonsqueezy": {    "command": "npx",    "args": ["-y", "lemonsqueezy-mcp-server"],    "env": {      "LEMONSQUEEZY_API_KEY": "YOUR_KEY_HERE"    }  }}

(Requires the package to be published on npm. For local development, use the path-based config below.)

For VS Code (local path):

  1. Open VS Code Settings
  2. Go to Extensions → MCP
  3. Add a new MCP server with:
    • Command: node
    • Args: ["/absolute/path/to/lemonsqueezy-mcp-server/dist/index.js"]
    • Env: {"LEMONSQUEEZY_API_KEY": "your_api_key_here"}

For Claude Desktop (local path):

  1. Edit ~/Library/Application Support/Claude/claude_desktop_config.json (Mac) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
  2. Add the same configuration as above (command node, args with full path to dist/index.js)
  3. Restart Claude Desktop

For Other MCP Clients: Refer to your client's documentation for adding MCP servers. The server runs via node /path/to/dist/index.js with the LEMONSQUEEZY_API_KEY environment variable set.

After configuring, restart your AI editor and try asking: "Show me my last 5 orders."

Trusted local and guarded access

The dist/index.js stdio setup above is for a trusted local merchant operator. It exposes the full legacy catalog, including tools that can change Lemon Squeezy data. Do not use that entry point as a customer-facing or delegated agent connector.

For delegated, read-only access, a trusted host must create the separate guarded server with createGuardedServer(provider, expectedEnvironment). The host supplies and verifies a scoped grant outside MCP tool arguments. The guarded server exposes only get_billing_summary and get_subscription_status when the grant permits them. See guarded connector setup, the exact tool catalog, and support and security reporting.

For self-hosted remote callers, use the separate authenticated Streamable HTTP entry point and the remote guarded setup and runnable example. The example includes an offline MCP client smoke test and an optional local check with your own Lemon Squeezy test-mode key. Its fixture is not a hosted identity or grant service.


🚀 Medium User Level: Basic Usage & Configuration

Who is this for? You are comfortable with config files, environment variables, and want to customize how the server works.

Philosophy: "Sensible Defaults"

This server is designed to work out of the box with just one required setting: your LEMONSQUEEZY_API_KEY. Everything else is optional and has pre-configured defaults that work for 90% of users.

Configuration Options

You can configure the server using Environment Variables in your MCP settings or a .env file.

VariableDescriptionDefault
LEMONSQUEEZY_API_KEYRequired. Your live API key.-
LEMONSQUEEZY_TEST_API_KEYOptional. Use for testing without affecting real data.-
ENABLE_RESOURCESSet to true to let the AI see "active context" like failed payments automatically.false
POLL_FAILED_PAYMENTSSet to true to check for failed payments every few minutes.false

Common Tasks

1. Using Test Mode If you want to develop without touching real money, generate a "Test API Key" in Lemon Squeezy and use LEMONSQUEEZY_TEST_API_KEY. The server will automatically prioritize the live key if both are present, so remove the live key to force test mode.

2. Enabling Salesforce Integration (Bonus) Want to sync customers to your CRM? Add these variables:

  • SALESFORCE_USERNAME
  • SALESFORCE_PASSWORD
  • SALESFORCE_TOKEN (Security Token)

The tools for Salesforce (like sync_customer_to_crm) will automatically appear in your AI's toolkit.

Troubleshooting

  • "Command not found": Ensure you ran npm run build after installing.
  • "Authentication Error": Double-check your API key. Did you copy an extra space?
  • Logs: The server outputs logs to the "MCP Log" window in your editor. Check there for specific error messages.

🛠️ Advanced User Level: Technical Documentation

Who is this for? Developers, Architects, and DevOps engineers looking for deep technical details, architecture diagrams, security compliance, and deployment strategies.

Containers: This repo has both a Containerfile and a Dockerfile with the same build. The Dockerfile exists so registries (e.g. Smithery) and CI that look for the filename Dockerfile can discover and build the image. You can build with Podman or Docker; see CONTAINERS.md for why both exist and how to build.

For a comprehensive breakdown of the system architecture, code modules, security protocols, and enterprise deployment guides, please refer to the:

👉 Technical Solution Design Document (TSD)

The TSD covers:

  • System Architecture & Diagrams
  • Module Interflows & Data Paths
  • Security & Compliance (AWS Secrets Manager, etc.)
  • Deployment (Docker/OCI Containers)
  • Risk Mitigation Strategies

來源:README.md,提交 29de83f

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.3最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分