io.github.IntrepidServicesLLC/lemonsqueezy-mcp-server

平台与服务

by intrepidservicesllc

将 Lemon Squeezy SDK 封装为 MCP server,使 AI 助手可访问支付、订阅及相关业务数据。

什么是 io.github.IntrepidServicesLLC/lemonsqueezy-mcp-server

将 Lemon Squeezy SDK 封装为 MCP server,使 AI 助手可访问支付、订阅及相关业务数据。

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 project
git clone https://github.com/IntrepidServicesLLC/lemonsqueezy-mcp-server.git
cd lemonsqueezy-mcp-server

# 2. Install the necessary files
npm install

# 3. Build the server
npm 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."


🚀 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

常见问题

io.github.IntrepidServicesLLC/lemonsqueezy-mcp-server 是什么?

将 Lemon Squeezy SDK 封装为 MCP server,使 AI 助手可访问支付、订阅及相关业务数据。

相关 Skills

MCP构建

by anthropics

Universal
热门

聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。

想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。

平台与服务
未扫描114.1k

Slack动图

by anthropics

Universal
热门

面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。

帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。

平台与服务
未扫描114.1k

MCP服务构建器

by alirezarezvani

Universal
热门

从 OpenAPI 一键生成 Python/TypeScript MCP server 脚手架,并校验 tool schema、命名规范与版本兼容性,适合把现有 REST API 快速发布成可生产演进的 MCP 服务。

帮你快速搭建 MCP 服务与后端 API,脚手架完善、扩展顺手,尤其适合想高效验证服务能力的开发者。

平台与服务
未扫描10.2k

相关 MCP Server

Slack 消息

编辑精选

by Anthropic

热门

Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。

这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。

平台与服务
83.4k

by netdata

热门

io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。

这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。

平台与服务
78.4k

by d4vinci

热门

Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。

这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。

平台与服务
35.4k

评论