PrestaShop MCP (Legacy WebService)

PrestaShop MCP (Legacy WebService)

Enables AI assistants to read and manage PrestaShop catalogs via the legacy WebService API, covering products, categories, stock, and more across PrestaShop 1.6-9. Provides 45 tools for CRUD operations and read-only generic access.

Category
访问服务器

README

PrestaShop MCP (Legacy WebService)

An MCP server that lets an AI assistant (Claude, Cursor, …) read and manage a PrestaShop catalog through the legacy WebService API (XML) — the API that older and current shops alike still expose. Works on PrestaShop 1.6, 1.7, 8, and 9.

45 tools: categories, features, attributes, products, combinations, stock, warehouses, plus read-only access to any resource the API key allows (customers, orders, cart rules, …).

Why this one — and when to use the official MCP instead

PrestaShop ships an official MCP built on the PS 9 Admin API (OAuth2). That's the right choice for a modern PS 9 shop you fully control. This server is for the cases it doesn't cover:

This server (legacy WebService) Official MCP (Admin API)
Transport Legacy WebService API (XML) PS 9 Admin API (API Platform / OAuth2)
PrestaShop versions 1.6 → 9 PS 9+ only
Auth WebService API key (per-resource permissions) OAuth2 client
Warehouse stock (/stocks) ✅ incl. PShowAdvancedStockWarehouses varies
Setup one API key + a .env OAuth2 app registration

Use the official MCP if you're on PS 9 and want the supported, forward-looking path. Use this if you're on PS 1.6/1.7/8, or you already have a WebService key, or you need the legacy /stocks warehouse flow.

Install

Requires Python 3.10+.

git clone https://github.com/Breczek/prestashop-mcp-legacy
cd prestashop-mcp-legacy
pip install -r requirements.txt
cp .env.example .env      # then fill in PS_SHOP_URL and PS_API_KEY

The server reads .env from the current working directory, so each shop/project keeps its own credentials.

Claude Code — run it from the project directory that holds the .env, and register the server (e.g. in ~/.claude/settings.json or via claude mcp add):

{
  "mcpServers": {
    "prestashop": { "command": "python3", "args": ["/abs/path/prestashop-mcp-legacy/server.py"] }
  }
}

Claude Desktop / Cursor — same config, but set the working directory to the folder containing .env (these clients launch the server themselves):

{
  "mcpServers": {
    "prestashop": {
      "command": "python3",
      "args": ["/abs/path/prestashop-mcp-legacy/server.py"],
      "cwd": "/abs/path/to/your/shop-project"
    }
  }
}

Security & permissions — read before connecting a live shop

This server can write to your shop — create, update, and delete categories, prices, stock, and combinations — and the AI assistant decides when to call those tools. Treat it accordingly:

  • Use a least-privilege API key. Grant only the resources you actually need. The key's permissions are the real security boundary — the generic ps_query tool can read any resource the key allows.
  • Prefer a staging shop for anything experimental. Deletes are permanent.
  • Generic access is read-only. ps_query / ps_get_record are strictly GET; there is no generic write tool. Writes go only through the specific, named tools.
  • Sensitive fields are redacted before they ever reach the model: passwd, secure_key, reset_password_token, api_key, checksum.
  • Your API key is never logged. The optional local log records only action / resource / id / HTTP status.
  • Requests use a 30s timeout and verify TLS by default.

Tools (45)

  • Catalog: categories, features + values, attribute groups + values, products (list/find/get/activate/price), combinations (list/get/find/update/ assign image).
  • Stock: stock_available get/update; warehouse /stocks list/create/update.
  • Reference: warehouses, manufacturers, languages.
  • Generic (read-only): ps_api_resources, ps_schema, ps_query, ps_get_record, ps_search, ps_resource_guide, ps_product_images, plus convenience readers for customers, orders, and cart rules.

Run ps_verify first to confirm the connection and see which resources your key exposes.

Requirements

  • Python 3.10+, mcp[cli], requests (see requirements.txt).
  • A PrestaShop shop with the WebService enabled and an API key.
  • Warehouse /stocks tools assume the PShowAdvancedStockWarehouses setup.

Contributing

PrestaShop's WebService varies across versions and plugins — corrections and additions welcome. Open an issue or PR with your PS version.

License

MIT.

Author

Marcin Bręczewski (@Breczek) — PrestaShop development and AI tooling.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选