跳过安装。2 分钟内即可运行。
在 cloud.anythingmcp.com 开始免费试用,一键添加 PrestaShop,然后将你的 AI 客户端(Claude、ChatGPT、Copilot 或 Cursor)指向生成的 MCP 端点。无需 Docker,无需 git clone,无需任何工程经验。
AnythingMCP 已收录在 Claude 的连接器目录中:一键添加到 Claude (在新标签页中打开),然后登录并选择 Claude 可以使用哪些 MCP 服务器。
摘要
您自己的 PrestaShop 商店:通过商店的 Webservice API 访问商品及其组合、库存、带状态历史的订单、客户、地址、承运商和分类。可更改订单状态、商品价格或库存数量。
试试这样问
PrestaShop 的示例提示
点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。
Claude 是 AI,可能会出错。请核对回答。
💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → PrestaShop、粘贴凭证、生成 MCP API key — 完成。无 Docker、无
git clone、无本地服务器。
PrestaShop + Claude
您自己的 PrestaShop 商店:通过商店的 Webservice API 访问商品及其组合、库存、带状态历史的订单、客户、地址、承运商和分类。可更改订单状态、商品价格或库存数量。
前提条件
完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:
PRESTASHOP_URL, PRESTASHOP_WEBSERVICE_KEY
步骤 1 — 获取凭证
- 在 PrestaShop 后台打开 Advanced Parameters → Webservice,将 Enable PrestaShop's webservice 设为 Yes 并保存。
- 在同一页面点击 Add new webservice key,再点击 Generate 生成 32 位密钥。填写描述,并将 Status 设为启用。
- 在 Permissions 中为
products、combinations、stock_availables、orders、order_states、order_histories、customers、addresses、carriers和categories勾选 GET。如需使用写入工具,还要为order_histories勾选 POST(订单状态),为products和stock_availables勾选 PATCH(价格和库存)。只读密钥只需勾选 GET 一列。多店铺模式下,还要选择该密钥可访问的店铺。 - 将商店根地址填入
PRESTASHOP_URL(例如https://shop.example.com;商店位于子目录时为https://example.com/shop;不带/api,末尾不加斜杠),将密钥填入PRESTASHOP_WEBSERVICE_KEY。 - 先用
prestashop_list_order_states获取商店的状态 id,再使用prestashop_list_orders和prestashop_get_order。除非指定display=full或[id,name,price]这样的字段列表,列表只返回 id。
此处菜单名称为英文;后台使用其他语言时会显示对应译名。读取功能支持 PrestaShop 1.7 和 8;更新价格和库存的工具使用 PATCH,需要 PrestaShop 8.0 或更高版本。商品价格为不含税的基础价格,以商店默认货币计。如果密钥正确但每次调用都返回 401,说明服务器丢弃了 Authorization 请求头:请在 Webservice 页面启用 CGI mode for PHP。prestashop_change_order_state 会执行该状态触发的操作(开票、库存变动,以及 send_email 为 1 时向客户发送邮件),因此请先确认再执行。
步骤 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 — 在 Claude 中添加连接器
你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(
https://cloud.anythingmcp.com/mcp/…)。本指南中出现YOUR_SERVER_ID的地方都用它替换。
推荐路径 — 在 claude.ai web 上工作,无需触碰任何配置文件。
- 在 Claude 中打开 Customize → Connectors。
- 点击 +,然后点击 Add custom connector。
- 输入名称(例如
PrestaShop)和远程 MCP 服务器 URLhttps://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID,然后点击 Add。 - 点击 Connect,登录 AnythingMCP(OAuth)并允许访问。
下面所有工具都会出现在你的聊天中 — 开始输入提示。
可用工具
| Tool | What it does |
|---|---|
prestashop_list_products | List products of the shop, with filters on id, reference, name, active flag and default category |
prestashop_get_product | Get one product with all its fields: prices (base price without tax, wholesale price), reference and EANs, descriptions, active flag, and… |
prestashop_list_combinations | List the combinations (variants such as size and colour) of products: reference, EAN, price impact on the product price, weight impact… |
prestashop_list_stock_availables | List stock rows: quantity per product and combination (id_product_attribute 0 is the product row), out-of-stock behaviour and whether… |
prestashop_update_product_price | Set a product's base price without tax, in the shop's default currency |
prestashop_update_stock_quantity | Set the quantity of one stock row (a product or one of its combinations) to an absolute number |
prestashop_list_orders | List orders, filtered by id, reference, customer, current status or a date range on date_add |
prestashop_get_order | Get one order: customer, delivery and invoice address ids, carrier, payment method, current status, totals with and without tax, currency… |
prestashop_list_order_states | List the shop's order statuses with id, name and flags: paid, shipped, delivery, invoice, whether the customer gets an e-mail (send_email)… |
prestashop_list_order_histories | List the status history of orders: each row is one status change with the order id, the status id, the employee who made it (0 for the… |
prestashop_change_order_state | Move an order to another status by adding a row to its history |
prestashop_list_customers | List customer accounts with name, e-mail, company, group, language, newsletter and opt-in flags, guest flag, active flag, note and dates |
prestashop_get_customer | Get one customer account by id: name, e-mail, company, group, language, newsletter and opt-in flags, guest flag, active flag, note and dates |
prestashop_list_addresses | List postal addresses with name, company, VAT number, street lines, postcode, city, country and state ids, phones and the customer they… |
prestashop_list_carriers | List carriers with id, name, active and deleted flags, delivery delay text, tracking URL and limits |
prestashop_list_categories | List product categories with id, name, parent id, depth in the tree, active flag and, with display=full, descriptions and associated… |
FAQ
Claude Code 和 Claude Desktop 一样工作吗? 是的 — 两者都指向 https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID。
下一步
这份指南对你有帮助吗?