跳过安装。2 分钟内即可运行。
在 cloud.anythingmcp.com 开始免费试用,一键添加 Lightspeed Retail (X-Series),然后将你的 AI 客户端(Claude、ChatGPT、Copilot 或 Cursor)指向生成的 MCP 端点。无需 Docker,无需 git clone,无需任何工程经验。
摘要
单个店铺的 Lightspeed Retail X-Series(前身为 Vend):门店、收银台和交班汇总,按日期搜索销售,商品和商品系列,分类、品牌、供应商、价格表和促销,库存水平、库存调整、consignment 和采购单,顾客、店铺余额和礼品卡。退货和删除在安装时关闭。
试试这样问
Lightspeed Retail (X-Series) 的示例提示
点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。
Claude 是 AI,可能会出错。请核对回答。
💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Lightspeed Retail (X-Series)、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无
git clone、无本地服务器。
Lightspeed Retail (X-Series) + Meta Muse
单个店铺的 Lightspeed Retail X-Series(前身为 Vend):门店、收银台和交班汇总,按日期搜索销售,商品和商品系列,分类、品牌、供应商、价格表和促销,库存水平、库存调整、consignment 和采购单,顾客、店铺余额和礼品卡。退货和删除在安装时关闭。
前提条件
完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:
LIGHTSPEED_DOMAIN_PREFIX, LIGHTSPEED_PERSONAL_TOKEN
步骤 1 — 获取凭证
仅限 X-Series:本连接器使用 Lightspeed Retail (X-Series) API(前身为 Vend)的日期版本 2026-10,对应单个店铺的 https://<domain_prefix>.retail.lightspeed.app/api/2026-10。它不支持 Lightspeed Retail R-Series 和 Lightspeed Restaurant,它们使用其他 API。
设置大约需要 2 分钟。个人令牌需要 Plus 套餐或更高版本,以及一个管理员用户。
- 以管理员身份打开 Retail POS 后台,进入 Setup、Personal tokens,点击 Add personal token。填写名称(如需要也可设置到期日),生成并复制令牌。
- 把它粘贴到
LIGHTSPEED_PERSONAL_TOKEN。它以Authorization: Bearer <token>发送,并以创建它的用户身份执行操作。 - 把
LIGHTSPEED_DOMAIN_PREFIX设为店铺地址的第一部分:对于https://mystore.retail.lightspeed.app,就是mystore。 - 安装连接器并运行
lightspeed_retail_get_retailer:它会显示店铺名称、币种和时区,并确认令牌可用。
店铺设置:lightspeed_retail_get_retailer、lightspeed_retail_get_current_user,门店(outlet)用 lightspeed_retail_list_outlets 和 lightspeed_retail_get_outlet,收银台用 lightspeed_retail_list_registers 和 lightspeed_retail_get_register,lightspeed_retail_get_register_payments_summary(当前班次按支付方式的应收金额和现金进出,即交班时使用的数据),以及支付方式、税、用户(员工)和班次。
销售:按时间段、门店、收银台、顾客或小票号查询时,AI 使用 lightspeed_retail_search,配合 type: sales 和 date_from/date_to;普通列表会忽略日期。lightspeed_retail_list_sales 按版本遍历所有销售(用于同步),lightspeed_retail_get_sale 读取一笔销售及其明细、付款、顾客、用户和收银台。
商品目录:lightspeed_retail_list_products(查单个商品用 sku)、lightspeed_retail_get_product、lightspeed_retail_get_product_family 和 lightspeed_retail_get_product_family_of_product。自 2026-10 版本起,商品系列保存共用数据(名称、品牌、分类、标签),每个商品保存各自规格的数据(编码、价格、供应商)。参考数据:分类、旧版商品类型、品牌、标签、供应商、价格表(price book)和促销。
库存:lightspeed_retail_list_inventory_levels 按商品和门店给出库存数量、平均成本、再订货点和再订货量,支持筛选、排序以及用于补货清单的 to_be_procured_only;lightspeed_retail_get_product_inventory_levels 显示一个商品在所有门店的库存;lightspeed_retail_list_inventory_records 和 lightspeed_retail_list_stock_adjustments 列出原始库存记录和库存调整。向供应商订货、门店间调拨、退货给供应商和盘点都属于 consignment:lightspeed_retail_list_consignments、lightspeed_retail_get_consignment 和 lightspeed_retail_list_consignment_products(订购数量和收货数量)。采购单用 lightspeed_retail_list_purchase_orders 和 lightspeed_retail_get_purchase_order 读取。
顾客:AI 用 lightspeed_retail_search(type: customers,按邮箱、姓名、编号或电话)找到顾客,然后读取 lightspeed_retail_get_customer(会员积分、店铺余额、挂账余额、年初至今消费)。另有 lightspeed_retail_list_customers、lightspeed_retail_list_customer_groups、lightspeed_retail_get_customer_store_credit,礼品卡用 lightspeed_retail_list_gift_cards 和 lightspeed_retail_get_gift_card。
写入内容:lightspeed_retail_create_sale 记录一笔销售(state 为 closed 时完成交易,parked 或 pending 时保存待后续处理);lightspeed_retail_update_sale 修改或完成挂单或待处理的销售,并会替换整笔销售,所以 AI 会先读取。商品:lightspeed_retail_create_product_family、lightspeed_retail_add_products_to_family(新规格),共用数据用 lightspeed_retail_update_product_family,价格、编码、供应商、门店税和库存设置用 lightspeed_retail_update_product。此外还有 lightspeed_retail_create_supplier、lightspeed_retail_create_stock_adjustments(quantity 是增减量,减少时为负数,并附带损坏、失窃、盘盈等原因)、lightspeed_retail_create_consignment(以 OPEN 状态创建;商品在 Lightspeed 中或之后再添加)、lightspeed_retail_create_customer 和 lightspeed_retail_update_customer(first_name 和 last_name 为必填)。销售和库存调整会立即改变库存和报表,因此 AI 会先展示明细和总额,等你同意。
安装时关闭:lightspeed_retail_return_sale、lightspeed_retail_delete_product 和 lightspeed_retail_delete_customer。它们无法撤销,因此在团队需要时由工作区管理员开启。
数据格式:响应把记录包在 data 中。ID 是 UUID。金额是店铺币种的小数。销售包含 totals(不含税的 price、tax、price_incl_tax);每条明细中,pricing.price 是不含税单价,pricing.total 是折扣后的明细合计,pricing.cost_total 是成本,tax.amount 和 tax.total 分别是单件税额和明细税额。税率为小数(0.2 = 20%)。时间为 UTC(ISO 8601):date_from/date_to 使用 UTC,time_from/time_to 使用本地时间并配合 timezone。销售的 state 为 closed、parked、pending(挂账或预付定金)或 voided。
分页:大多数列表按版本分页:响应中的 version 包含 min 和 max,AI 把 max 作为 after 传入以获取下一页,data 为空时停止。lightspeed_retail_search 和 lightspeed_retail_list_inventory_levels 用 offset 分页;礼品卡用 before。
限制和常见错误:每台收银台每 5 分钟约 300 个请求,另加 50;超出时 Lightspeed 返回带 Retry-After 的 429。401 表示令牌错误或已过期,或域名前缀不对。403 表示令牌所属用户无权执行该操作,因为个人令牌以其用户身份执行:请用管理员创建令牌。所有调用都返回 404 说明 LIGHTSPEED_DOMAIN_PREFIX 有误(只填 .retail.lightspeed.app 之前的部分);只有单条记录返回 404 则是 ID 错误。422 是校验错误,会指明出错的字段。
使用安装时开启的工具,连接器不会办理退货,也不会删除任何内容。采购单、价格表、促销、店铺余额和礼品卡只读不改;向供应商的新订货以 consignment 的形式创建。
步骤 2 — 安装 adapter
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
步骤 3 — 在 Muse 中添加连接器
你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(
https://cloud.anythingmcp.com/mcp/…)。本指南中出现YOUR_SERVER_ID的地方都用它替换。
Muse 以自定义连接器的形式添加远程 MCP 服务器,并通过 OAuth 登录。
- 在 Muse 中打开 Settings → Connectors,选择 Add custom connector。
- 粘贴 MCP 服务器 URL
https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID。 - Muse 会打开 AnythingMCP 的登录页面:登录并批准访问。
- 在聊天中,向 Muse 提出需要用到
Lightspeed Retail (X-Series)的工具的请求。
你也可以在聊天中完成设置,适用于网页版、iOS 和 Android 应用以及 WhatsApp。给 Muse 发送这条消息:
Create a Custom Connector for a new remote MCP server, then connect to it:
Name: AnythingMCP
Transport: remote streamable HTTP
URL: https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID
Auth: OAuth
自托管?请用你实例的公网 HTTPS 地址替换 https://cloud.anythingmcp.com。Muse 从 Meta 的云端连接,因此 localhost 无法使用。
可用工具
| Tool | What it does |
|---|---|
lightspeed_retail_get_retailer | Get the retailer (store account): name, domain prefix, currency, time zone, tax settings and loyalty settings |
lightspeed_retail_get_current_user | Get the user the personal token belongs to: name, email, account type (admin, manager, cashier) and the outlets they can use |
lightspeed_retail_list_outlets | List the outlets (store locations) with name, address, time zone, default tax and receipt settings |
lightspeed_retail_get_outlet | Get one outlet (store location) by id with its address, time zone, default tax and settings |
lightspeed_retail_list_registers | List registers (tills) with outlet, name, open or closed state, current register opening and invoice numbering |
lightspeed_retail_get_register | Get one register (till) by id with outlet, whether it is open and the current register opening (shift) |
lightspeed_retail_get_register_payments_summary | Get the payments summary of the current opening of one register: expected amounts per payment type, cash movements and totals, as used to… |
lightspeed_retail_list_payment_types | List payment types (cash, card, gift card, store credit, on account, custom) with their id and config |
lightspeed_retail_list_taxes | List sales taxes with name, rate (a fraction, 0.2 = 20%) and components |
lightspeed_retail_get_tax | Get one sales tax by id with its name, rate as a fraction (0.2 = 20%) and tax components |
lightspeed_retail_list_users | List users (staff) with name, email, account type and outlets |
lightspeed_retail_get_user | Get one user (staff member) by id with name, display name, email, account type and outlets |
lightspeed_retail_list_shifts | List staff shifts (clock in and clock out) with user, outlet, start and end time |
lightspeed_retail_list_products | List products (each sellable item or variant) with name, SKU and codes, prices, family, supplier codes and active state |
lightspeed_retail_get_product | Get one product by id: variant name, codes, prices including and excluding tax, family, measurements, suppliers, outlet taxes and inventory |
lightspeed_retail_get_product_family | Get a product family by id: name, description, classification (STANDARD, VARIANT, COMPOSITE), brand, category, tags and all member products |
lightspeed_retail_get_product_family_of_product | Get the product family a product belongs to, with all its sibling variants or composite components |
lightspeed_retail_create_product_family | Create a product family with its products: a STANDARD product, a VARIANT family (variant attributes, one product per variant) or a COMPOSITE |
lightspeed_retail_update_product_family | Update the shared data of a product family: name, description, brand, category, tags, inventory tracking or composite components |
lightspeed_retail_add_products_to_family | Add products (new variants) to an existing product family, each with its codes, variant attribute values and prices |
lightspeed_retail_update_product | Update one product: prices, codes, supplier codes and prices, outlet taxes, inventory settings, measurements or whether it is active in… |
lightspeed_retail_delete_product | Delete one product |
lightspeed_retail_list_product_categories | List the product category tree (id, name, parent and path) |
lightspeed_retail_list_product_types | List the legacy product types with id and name |
lightspeed_retail_list_brands | List the product brands of the store with id and name, paged by version |
lightspeed_retail_list_tags | List the product tags of the store with id and name, paged by version |
lightspeed_retail_list_suppliers | List suppliers with name, description, default markup and contact details |
lightspeed_retail_get_supplier | Get one supplier by id with contact person, email, phone, addresses, description and default markup |
lightspeed_retail_create_supplier | Create a supplier with a name, description, default markup and contact details (company, person, email, phone, address) |
lightspeed_retail_list_price_books | List price books (special prices per customer group, outlet and validity dates) with their settings |
lightspeed_retail_list_promotions | List promotions (discounts, buy X get Y, promo codes) with conditions, outlets, customer groups and validity dates |
lightspeed_retail_get_promotion | Get one promotion by id with its conditions, actions, outlets, customer groups, channels and validity dates |
lightspeed_retail_list_inventory_levels | List stock levels per product and outlet with counts, average cost, reorder point and amount |
lightspeed_retail_get_product_inventory_levels | Get the stock of one product in every outlet: current count, average cost, reorder point and reorder amount |
lightspeed_retail_list_inventory_records | List raw inventory records (product, outlet, count, reorder settings) by version, for one product or the whole store |
lightspeed_retail_list_stock_adjustments | List stock adjustments (damage, theft, stock found, internal use and custom reasons) with product, outlet, quantity and reason |
lightspeed_retail_create_stock_adjustments | Adjust stock up or down with a reason (damage, expiry, theft, internal use, donation, stock found, sample). quantity is the change… |
lightspeed_retail_list_consignments | List consignments: supplier orders, outlet transfers, returns and stocktakes, with status, outlet, supplier and dates |
lightspeed_retail_get_consignment | Get one consignment by id: type, status, outlet, source outlet or supplier, reference, due and received dates and cost and count totals |
lightspeed_retail_list_consignment_products | List the products of a consignment with ordered and received counts and cost, for checking a delivery or stocktake |
lightspeed_retail_create_consignment | Create a consignment: a supplier order, an outlet transfer, a supplier return or a stocktake, in OPEN status |
lightspeed_retail_list_purchase_orders | List purchase orders to suppliers with number, supplier, outlet, status, ordered and received totals |
lightspeed_retail_get_purchase_order | Get one purchase order by id with supplier, outlet, status, dates, totals and delivery information |
lightspeed_retail_list_sales | List sales by version (oldest changes first) with line items, payments, totals, customer, user, register and status |
lightspeed_retail_get_sale | Get one sale by id: invoice number, status, date, line items with price, discount, tax and cost, payments, customer, user and register |
lightspeed_retail_search | Search sales, products or customers |
lightspeed_retail_create_sale | Record a sale: line items with product, quantity, price and tax, payments and customer. state closed completes it, parked or pending saves… |
lightspeed_retail_update_sale | Update a parked or pending sale (lines, payments, customer, note) or complete it by setting state to closed |
lightspeed_retail_return_sale | Start a return (refund) of a closed sale: Lightspeed creates a return sale linked to the original on the register |
lightspeed_retail_list_customers | List customers by version with name, code, contact details, group, loyalty balance and on-account balance |
lightspeed_retail_get_customer | Get one customer by id: name, code, email, phone, addresses, group, loyalty balance, store credit and on-account balance and year to date… |
lightspeed_retail_create_customer | Create a customer with name, contact details, address, customer group, loyalty enrolment and marketing consent |
lightspeed_retail_update_customer | Update a customer: contact details, address, group, note, loyalty or marketing consent. first_name and last_name are required by the API |
lightspeed_retail_delete_customer | Delete a customer |
lightspeed_retail_list_customer_groups | List customer groups (e.g |
lightspeed_retail_get_customer_store_credit | Get the store credit of one customer: current balance and the list of store credit transactions (issued, redeemed, reversed) |
lightspeed_retail_list_gift_cards | List gift cards with number, balance, status (ACTIVE, REDEEMED, VOIDED, EXPIRED) and expiry, newest first |
lightspeed_retail_get_gift_card | Get a gift card by its card number with balance, status, expiry and the transactions (issue, redeem, reverse) |
示例提示
- “昨天每个门店的销售额是多少?分别给出不含税和含税金额。”
- “主街门店哪些商品低于再订货点?按供应商给我做一份补货清单。”
- “找到邮箱为 [email protected] 的顾客,显示她的会员积分和店铺余额。”
- “为主街门店的 SKU TSHIRT-BLK-M 记录一笔减 3 件的库存调整,原因是损坏。保存前先给我看。”
- “给我看小票号 10452 的销售,包括明细、折扣和付款。”
FAQ
Muse 在哪些地区可用? Meta 目前在美国和加拿大提供 Muse,可在网页版、iOS 和 Android 应用以及 WhatsApp 中使用。
Meta 会审核这个连接器吗? 不会。Meta 不审核自定义连接器。Muse 只能看到你在 AnythingMCP 中为此 MCP 服务器启用的工具,你也可以随时在 Settings → Connectors 中断开它。
下一步
这份指南对你有帮助吗?