连接器指南阅读约 10 分钟58 个 MCP 工具7 种语言

如何通过 MCP 将 Lightspeed Retail (X-Series) 连接到 ChatGPT

单个店铺的 Lightspeed Retail X-Series(前身为 Vend):门店、收银台和交班汇总,按日期搜索销售,商品和商品系列,分类、品牌、供应商、价格表和促销,库存水平、库存调整、consignment 和采购单,顾客、店铺余额和礼品卡。退货和删除在安装时关闭。

HC作者:HelpCode 团队更新于 10 分钟阅读 在 GitHub 开源

无需信用卡 · 7 天试用 · 提供自托管方案

Lightspeed Retail (X-Series)

Lightspeed Retail (X-Series)

Lightspeed Retail X-Series (formerly Vend) point of sale: outlets, registers, sales search by date, products and product families, categories, brands, suppliers, price books and promotions, stock levels, adjustments, consignments and purchase orders, customers, store credit and gift cards.

个工具

58

区域

INTL

类别

电子商务

身份验证

Bearer Token

所需环境变量

LIGHTSPEED_DOMAIN_PREFIXLIGHTSPEED_PERSONAL_TOKEN
在 Cloud 上一键安装

7 天免费试用 · 无需信用卡

  • 7 天免费试用
    无需信用卡
  • 符合 GDPR,SOC 2 就绪
    数据驻留欧盟,审计日志
  • 在 GitHub 开源
    开源 · AGPL-3.0
  • 支持 ChatGPT、Claude、Gemini
    任何兼容 MCP 的客户端

跳过安装。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 中,在该连接器上运行。

Lightspeed Retail (X-Series) · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Lightspeed Retail (X-Series)、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无 git clone、无本地服务器。

Lightspeed Retail (X-Series) + ChatGPT

单个店铺的 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 套餐或更高版本,以及一个管理员用户。

  1. 以管理员身份打开 Retail POS 后台,进入 Setup、Personal tokens,点击 Add personal token。填写名称(如需要也可设置到期日),生成并复制令牌。
  2. 把它粘贴到 LIGHTSPEED_PERSONAL_TOKEN。它以 Authorization: Bearer <token> 发送,并以创建它的用户身份执行操作。
  3. 把 LIGHTSPEED_DOMAIN_PREFIX 设为店铺地址的第一部分:对于 https://mystore.retail.lightspeed.app,就是 mystore。
  4. 安装连接器并运行 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 — 在 ChatGPT 中添加连接器

你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(https://cloud.anythingmcp.com/mcp/…)。本指南中出现 YOUR_SERVER_ID 的地方都用它替换。

ChatGPT 在网页版的 Plugins 页面把 MCP 服务器添加为插件,仅付费套餐可用,不再需要开发者模式。在 Business 工作区中只有管理员和所有者可以添加;在 Enterprise 和 Edu 中,管理员可以授予 Create plugins with MCPs 权限。

  1. 前往 chatgpt.com/plugins,点击 Add,然后选择 Add custom MCP server。
  2. 填写名称,例如 Name: Lightspeed Retail (X-Series)。
  3. 在 Connection 下的 Server URL 中填入 https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID,Authentication 保持为 OAuth。
  4. 选择 I understand and want to continue,然后点击 Create as a plugin。ChatGPT 提示时,登录 AnythingMCP 并允许访问。
  5. 在个人插件中安装这个新插件,然后在对话中输入 @ 并选择它。

可用工具

ToolWhat it does
lightspeed_retail_get_retailerGet the retailer (store account): name, domain prefix, currency, time zone, tax settings and loyalty settings
lightspeed_retail_get_current_userGet the user the personal token belongs to: name, email, account type (admin, manager, cashier) and the outlets they can use
lightspeed_retail_list_outletsList the outlets (store locations) with name, address, time zone, default tax and receipt settings
lightspeed_retail_get_outletGet one outlet (store location) by id with its address, time zone, default tax and settings
lightspeed_retail_list_registersList registers (tills) with outlet, name, open or closed state, current register opening and invoice numbering
lightspeed_retail_get_registerGet one register (till) by id with outlet, whether it is open and the current register opening (shift)
lightspeed_retail_get_register_payments_summaryGet 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_typesList payment types (cash, card, gift card, store credit, on account, custom) with their id and config
lightspeed_retail_list_taxesList sales taxes with name, rate (a fraction, 0.2 = 20%) and components
lightspeed_retail_get_taxGet one sales tax by id with its name, rate as a fraction (0.2 = 20%) and tax components
lightspeed_retail_list_usersList users (staff) with name, email, account type and outlets
lightspeed_retail_get_userGet one user (staff member) by id with name, display name, email, account type and outlets
lightspeed_retail_list_shiftsList staff shifts (clock in and clock out) with user, outlet, start and end time
lightspeed_retail_list_productsList products (each sellable item or variant) with name, SKU and codes, prices, family, supplier codes and active state
lightspeed_retail_get_productGet one product by id: variant name, codes, prices including and excluding tax, family, measurements, suppliers, outlet taxes and inventory
lightspeed_retail_get_product_familyGet a product family by id: name, description, classification (STANDARD, VARIANT, COMPOSITE), brand, category, tags and all member products
lightspeed_retail_get_product_family_of_productGet the product family a product belongs to, with all its sibling variants or composite components
lightspeed_retail_create_product_familyCreate 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_familyUpdate the shared data of a product family: name, description, brand, category, tags, inventory tracking or composite components
lightspeed_retail_add_products_to_familyAdd products (new variants) to an existing product family, each with its codes, variant attribute values and prices
lightspeed_retail_update_productUpdate one product: prices, codes, supplier codes and prices, outlet taxes, inventory settings, measurements or whether it is active in…
lightspeed_retail_delete_productDelete one product
lightspeed_retail_list_product_categoriesList the product category tree (id, name, parent and path)
lightspeed_retail_list_product_typesList the legacy product types with id and name
lightspeed_retail_list_brandsList the product brands of the store with id and name, paged by version
lightspeed_retail_list_tagsList the product tags of the store with id and name, paged by version
lightspeed_retail_list_suppliersList suppliers with name, description, default markup and contact details
lightspeed_retail_get_supplierGet one supplier by id with contact person, email, phone, addresses, description and default markup
lightspeed_retail_create_supplierCreate a supplier with a name, description, default markup and contact details (company, person, email, phone, address)
lightspeed_retail_list_price_booksList price books (special prices per customer group, outlet and validity dates) with their settings
lightspeed_retail_list_promotionsList promotions (discounts, buy X get Y, promo codes) with conditions, outlets, customer groups and validity dates
lightspeed_retail_get_promotionGet one promotion by id with its conditions, actions, outlets, customer groups, channels and validity dates
lightspeed_retail_list_inventory_levelsList stock levels per product and outlet with counts, average cost, reorder point and amount
lightspeed_retail_get_product_inventory_levelsGet the stock of one product in every outlet: current count, average cost, reorder point and reorder amount
lightspeed_retail_list_inventory_recordsList raw inventory records (product, outlet, count, reorder settings) by version, for one product or the whole store
lightspeed_retail_list_stock_adjustmentsList stock adjustments (damage, theft, stock found, internal use and custom reasons) with product, outlet, quantity and reason
lightspeed_retail_create_stock_adjustmentsAdjust stock up or down with a reason (damage, expiry, theft, internal use, donation, stock found, sample). quantity is the change…
lightspeed_retail_list_consignmentsList consignments: supplier orders, outlet transfers, returns and stocktakes, with status, outlet, supplier and dates
lightspeed_retail_get_consignmentGet 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_productsList the products of a consignment with ordered and received counts and cost, for checking a delivery or stocktake
lightspeed_retail_create_consignmentCreate a consignment: a supplier order, an outlet transfer, a supplier return or a stocktake, in OPEN status
lightspeed_retail_list_purchase_ordersList purchase orders to suppliers with number, supplier, outlet, status, ordered and received totals
lightspeed_retail_get_purchase_orderGet one purchase order by id with supplier, outlet, status, dates, totals and delivery information
lightspeed_retail_list_salesList sales by version (oldest changes first) with line items, payments, totals, customer, user, register and status
lightspeed_retail_get_saleGet one sale by id: invoice number, status, date, line items with price, discount, tax and cost, payments, customer, user and register
lightspeed_retail_searchSearch sales, products or customers
lightspeed_retail_create_saleRecord a sale: line items with product, quantity, price and tax, payments and customer. state closed completes it, parked or pending saves…
lightspeed_retail_update_saleUpdate a parked or pending sale (lines, payments, customer, note) or complete it by setting state to closed
lightspeed_retail_return_saleStart a return (refund) of a closed sale: Lightspeed creates a return sale linked to the original on the register
lightspeed_retail_list_customersList customers by version with name, code, contact details, group, loyalty balance and on-account balance
lightspeed_retail_get_customerGet 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_customerCreate a customer with name, contact details, address, customer group, loyalty enrolment and marketing consent
lightspeed_retail_update_customerUpdate a customer: contact details, address, group, note, loyalty or marketing consent. first_name and last_name are required by the API
lightspeed_retail_delete_customerDelete a customer
lightspeed_retail_list_customer_groupsList customer groups (e.g
lightspeed_retail_get_customer_store_creditGet the store credit of one customer: current balance and the list of store credit transactions (issued, redeemed, reversed)
lightspeed_retail_list_gift_cardsList gift cards with number, balance, status (ACTIVE, REDEEMED, VOIDED, EXPIRED) and expiry, newest first
lightspeed_retail_get_gift_cardGet 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

ChatGPT 免费套餐能用自定义 MCP 服务器吗? OpenAI 只为付费套餐提供自定义 MCP 服务器的说明,Free 套餐不在其列。

下一步

这份指南对你有帮助吗?

你的 Lightspeed Retail 智能体只差一次点击。

安装连接器,粘贴密钥,向 ChatGPT 提问。免费试用 7 天,无需信用卡。

相关指南

连接器

如何通过 MCP 将 Lightspeed Retail (X-Series) 连接到 Claude

单个店铺的 Lightspeed Retail X-Series(前身为 Vend):门店、收银台和交班汇总,按日期搜索销售,商品和商品系列,分类、品牌、供应商、价格表和促销,库存水平、库存调整、consignment 和采购单,顾客、店铺余额和礼品卡。退货和删除在安装时关闭。

连接器

如何通过 MCP 将 Lightspeed Retail (X-Series) 连接到 Cursor

单个店铺的 Lightspeed Retail X-Series(前身为 Vend):门店、收银台和交班汇总,按日期搜索销售,商品和商品系列,分类、品牌、供应商、价格表和促销,库存水平、库存调整、consignment 和采购单,顾客、店铺余额和礼品卡。退货和删除在安装时关闭。

连接器

如何通过 MCP 将 Lightspeed Retail (X-Series) 连接到 Gemini

单个店铺的 Lightspeed Retail X-Series(前身为 Vend):门店、收银台和交班汇总,按日期搜索销售,商品和商品系列,分类、品牌、供应商、价格表和促销,库存水平、库存调整、consignment 和采购单,顾客、店铺余额和礼品卡。退货和删除在安装时关闭。

连接器

如何通过 MCP 将 Lightspeed Retail (X-Series) 连接到 Meta Muse

单个店铺的 Lightspeed Retail X-Series(前身为 Vend):门店、收银台和交班汇总,按日期搜索销售,商品和商品系列,分类、品牌、供应商、价格表和促销,库存水平、库存调整、consignment 和采购单,顾客、店铺余额和礼品卡。退货和删除在安装时关闭。

连接器

Lightspeed Retail X-Series 接入 MCP:在任意 AI 智能体中处理销售、商品、库存、调拨和顾客

单个店铺的 Lightspeed Retail X-Series(前身为 Vend):门店、收银台和交班汇总,按日期搜索销售,商品和商品系列,分类、品牌、供应商、价格表和促销,库存水平、库存调整、consignment 和采购单,顾客、店铺余额和礼品卡。退货和删除在安装时关闭。

连接器

如何通过 MCP 将 Lightspeed Retail (X-Series) 连接到 Microsoft Copilot

单个店铺的 Lightspeed Retail X-Series(前身为 Vend):门店、收银台和交班汇总,按日期搜索销售,商品和商品系列,分类、品牌、供应商、价格表和促销,库存水平、库存调整、consignment 和采购单,顾客、店铺余额和礼品卡。退货和删除在安装时关闭。