ecommerce-mcp
Enables reading and searching a PrestaShop catalog, retrieving product and order details and low-stock listings, and previewing/applying verified changes to product prices, SEO fields, and stock levels.
Enables reading and searching a WooCommerce catalog, retrieving product and order details and low-stock listings, and previewing/applying verified changes to product prices, SEO fields, and stock levels, including WooCommerce SEO meta fields.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
ecommerce-mcp
An MCP server that lets Claude Desktop or Cursor read a PrestaShop or WooCommerce catalog, and change a price, an SEO field, or a stock level only after you have seen the diff.
Arnaud Merigeau, arnaud-merigeau.fr. I have spent 18 years on these two platforms. This repo is a clean, generic server you can run against your own shop. It's not affiliated with PrestaShop or WooCommerce.

docs/demo.gif is not recorded yet. The capture is search_products, then preview_change, then apply_change.
The process speaks MCP on stdout. Logs go to stderr, and they never include keys.
Quick start
pnpm install
pnpm build
node dist/index.jsThat starts the demo store: three fake products, one fake order, no credentials. Writes stay off. READ_ONLY defaults to true.
Related MCP server: Agent Studio — WooCommerce Private Connector
Architecture
flowchart LR
host["Claude Desktop or Cursor"] -->|stdio| server["ecommerce-mcp"]
server --> changes["preview then apply"]
changes --> adapter["StoreAdapter"]
adapter --> woo["WooCommerce REST v3"]
adapter --> ps["PrestaShop webservice"]
adapter --> demo["In-memory demo"]src/server.ts registers the tools. src/changes.ts keeps a preview in memory for 10 minutes. src/adapters/StoreAdapter.ts is the only interface the tools know. woocommerce.ts, prestashop.ts, and demo.ts implement it. STORE_TYPE picks one at startup.
Read tools: search_products, get_product, get_order, list_low_stock.
Write tools, registered only when the adapter can write and READ_ONLY is not true:
preview_changereturns achangeIdand the exact before/after. It does not write.apply_changeapplies that preview, and refuses if the product changed since, or if the id is older than 10 minutes.After the write, the server reads the product again and returns
verified: trueorverified: false.
No order edits, no deletes, no customer export. The demo adapter never writes, even if you set READ_ONLY=false.
Claude Desktop
claude_desktop_config.json:
{
"mcpServers": {
"ecommerce": {
"command": "node",
"args": ["/absolute/path/to/ecommerce-mcp/dist/index.js"],
"env": {
"STORE_TYPE": "demo"
}
}
}
}Cursor
.cursor/mcp.json:
{
"mcpServers": {
"ecommerce": {
"command": "node",
"args": ["/absolute/path/to/ecommerce-mcp/dist/index.js"],
"env": {
"STORE_TYPE": "demo",
"READ_ONLY": "true"
}
}
}
}For a real shop, set STORE_TYPE and the keys below. Leave READ_ONLY=true until a preview looks right, then set it to false and restart the server.
Environment
Copy .env.example. Placeholders only. The URL is the shop root: no /wp-json, no /api, and no key in the query string. Basic auth is sent as a header.
Variable | Required | What it does |
| no, default |
|
| no, default |
|
| when | Shop root, |
| same | WooCommerce REST consumer key |
| same | WooCommerce REST consumer secret |
| when | Shop root |
| same | Webservice key |
A URL with a username, a password, or ws_key / consumer_key / consumer_secret in the query is rejected. The error does not repeat the value.
Design decisions
Preview, then apply, then a fresh read. A model that can PUT a price will eventually do it on the wrong id. preview_change shows the diff and stops there. apply_change re-reads the product and refuses when the edited fields, or updatedAt, no longer match the preview. The follow-up read is the part a HTTP 200 cannot give you: verified is true only when the shop now holds the value you asked for. If the write is accepted but the next read disagrees, you get verified: false and the product as it actually is.
One adapter interface. WooCommerce keeps SEO in meta_data. PrestaShop keeps it in language arrays, and stock lives on stock_availables, not on the product. The tools should not know that. A third platform is a new file, not a rewrite of the server.
Zod at the boundary. Environment variables, tool arguments, and the objects we return are parsed with the same schemas the handler is typed from. The MCP SDK turns those schemas into the JSON Schema advertised to the client, and checks structuredContent before it leaves the process.
Limits
PrestaShop search and the low-stock scan look at the first 50 rows. WooCommerce low stock looks at the first 100 published products. PrestaShop SEO writes the first language only, and product prices use the first active currency. A WooCommerce price update sets regular_price and clears sale_price. WooCommerce SEO is written to the meta keys seo_title and seo_description. If those are empty, Yoast and Rank Math values are read, and those plugin keys are left alone.
Scripts
pnpm test covers both adapters with mocked HTTP, plus the preview flow (including a stale preview, an expired id, and read-only mode). pnpm dev runs the TypeScript entry directly. pnpm lint, pnpm typecheck, and pnpm build match CI.
Roadmap
A Shopify adapter behind the same interface. An HTTP transport for a remote host; stdio stays the default. More than one store in a single process, each with its own preview book.
License
MIT. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP for e-commerce: live product catalog, stock, and pricing for AI agents.
Build, deploy and manage MaShop e-commerce projects from Claude, Cursor or any MCP client.
Run a WooCommerce shop from Claude or ChatGPT: sales and stock reports, SEO, prices, products, menus and site design. Every change is a draft that you approve with one click, and you can undo it. Free forever: 100 actions a day. Skill: github.com/SakkoulasGiannis/addsynapse-woocommerce
Run your online shop from Claude: orders, prices, sales, catalogue and design, confirmed by you. WhizzyCommerce is an ecommerce platform that's free until you sell. Its MCP connector lets Claude manage a WhizzyCommerce shop in plain language. You can ask which paid orders haven't shipped, mark an order as sent with tracking, raise a collection's prices by 5%, set up a discount code, write product descriptions, translate the shop into more languages or compare this month's sales with last month's.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI agents to securely access and reason over WooCommerce orders, products, and inventory through read-only MCP tools, with PII redaction, rate-limit handling, and bounded pagination.5MIT
- AlicenseBqualityCmaintenanceA read-only MCP server that lets an Agent Studio agent query a WooCommerce store's orders, products, inventory and customers, with pagination, filtering, typed errors and automatic rate-limit retry. It never mutates store data, keeping the blast radius of an agent's actions bounded to reads.7MIT
- AlicenseNot gradedqualityBmaintenanceTurns an online store's catalog into MCP tools so agents can search products, fetch details, look up barcodes, analogs, categories, promotions and pickup points, and hand off a cart as a payment link rather than checking out. It is driven by a single TOML config with capability-based tool sets, bilingual model-facing texts, public catalog access plus OAuth 2.1-scoped personal tools like order history, and ready adapters for YML/Google Merchant feeds and WooCommerce across ten store engine presets.Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to run one or more WooCommerce stores through the REST API: browsing the catalog, working through orders, issuing refunds, adjusting prices and stock in bulk, and reading sales analytics. Every write is previewed before it is applied and can be recorded to an audit log.90 npm1MIT