Spree Commerce developer docs for AI agents
Spree Commerce docs for AI coding agents: build headless B2B and marketplace ecommerce on its APIs.
作者提供的说明(英文原文)
101 tools for WooCommerce store management with field filtering and guided prompts.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"woocommerce": {
"command": "npx",
"args": [
"-y",
"@amitgurbani/mcp-server-woocommerce"
]
}
}
}在终端中运行这条命令
claude mcp add woocommerce -- npx -y @amitgurbani/mcp-server-woocommerce粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"woocommerce": {
"command": "npx",
"args": [
"-y",
"@amitgurbani/mcp-server-woocommerce"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"woocommerce": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@amitgurbani/mcp-server-woocommerce"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月10日
注册名称已通过 GitHub 账户 AmitGurbani 验证,该账户拥有此仓库
代码最后更新于6个月前,已超过 6 个月
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 2 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于6个月前,最新版本(1.2.0)于8个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Spree Commerce developer docs for AI agents, Spree Commerce: open-source B2B and marketplace ecommerce, Stripe MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Spree Commerce docs for AI coding agents: build headless B2B and marketplace ecommerce on its APIs.
Open-source B2B and marketplace ecommerce; new stores include an MCP server for AI agents.
MCP server integrating with Stripe - tools for customers, products, payments, and more.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
MCP server for managing WooCommerce stores through AI assistants like Claude. Provides 101 tools covering products, orders, customers, coupons, shipping, taxes, webhooks, settings, reports, and more.
1. Get WooCommerce API keys
In your WordPress admin: WooCommerce > Settings > Advanced > REST API > Add key with Read/Write permissions.
2. Add to your AI tool
No install needed — runs directly via npx:
Claude Code
Add to your project's .mcp.json:
{
"mcpServers": { "woocommerce": { "command": "npx", "args": ["-y", "@amitgurbani/mcp-server-woocommerce"], "env": { "WORDPRESS_SITE_URL": "https://store.example.com", "WOOCOMMERCE_CONSUMER_KEY": "ck_your_key", "WOOCOMMERCE_CONSUMER_SECRET": "cs_your_secret" } } } }
Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": { "woocommerce": { "command": "npx", "args": ["-y", "@amitgurbani/mcp-server-woocommerce"], "env": { "WORDPRESS_SITE_URL": "https://store.example.com", "WOOCOMMERCE_CONSUMER_KEY": "ck_your_key", "WOOCOMMERCE_CONSUMER_SECRET": "cs_your_secret" } } } }
Cursor
Install in Cursor (one-click) or add to .cursor/mcp.json in your project root:
{
"mcpServers": { "woocommerce": { "command": "npx", "args": ["-y", "@amitgurbani/mcp-server-woocommerce"], "env": { "WORDPRESS_SITE_URL": "https://store.example.com", "WOOCOMMERCE_CONSUMER_KEY": "ck_your_key", "WOOCOMMERCE_CONSUMER_SECRET": "cs_your_secret" } } } }
4. Start using it — ask your AI assistant things like:
"List all products that are out of stock"
"Create a 10% off coupon for orders over $50"
"Show me this week's sales report"
fields param to return only specific fields, reducing response size by 60-97%readOnlyHint, destructiveHint, and idempotentHint on all 101 tools for safe agent behaviorThis server connects to a LIVE WooCommerce store. Every create, update, and delete operation affects real data. Use caution, especially on production stores.
WOOCOMMERCE_MCP_READ_ONLY=true to block all write operations — only list, get, and report tools will work.Most delete operations move items to trash (recoverable). However, these are permanent and cannot be undone:
| Tool | Why it's irreversible |
|---|---|
delete_media | WordPress media deletions bypass trash entirely |
delete_tax_rate | Tax rates have no trash — deleted immediately |
delete_tax_class | Tax classes have no trash — rates become orphaned |
delete_attribute | Removes the attribute AND all its terms from every product |
delete_refund | Removes refund record (does not reverse payment) |
cleanup_orphaned_media | Permanently deletes all unattached media when delete=true |
run_system_tool | System maintenance actions (cache clears, DB updates) cannot be undone |
Some operations affect more than the single item being changed:
batch_update_attribute_terms, batch_update_variations) can create, update, AND delete in a single callFor maximum safety, create WooCommerce API keys with only the permissions you need:
| Domain | Tools |
|---|---|
| Products | list, get, create, update, delete |
| Categories | list, get, create, update, delete |
| Tags | list, get, create, update, delete |
| Brands | list, get, create, update, delete |
| Attributes | list, get, create, delete |
| Attribute Terms | list, create, delete, batch update |
| Variations | list, get, create, update, batch update |
| Orders | list, get, create, update, delete |
| Order Refunds | list, create, delete |
| Order Notes | list, create, delete |
| Customers | list, get, create, update |
| Coupons | list, get, create, update, delete |
| Product Reviews | list, get, update, delete |
| Shipping Zones | list, get, create, update, delete |
| Shipping Zone Methods | list, get, create, update, delete |
| Shipping Classes | list, create |
| Tax Rates | list, get, create, update, delete |
| Tax Classes | list, create, delete |
| Webhooks | list, get, create, update, delete |
| Payment Gateways | list, get, update |
| Settings | list groups, get, update |
| System Status | get status, list tools, run tool |
| Data | list countries, list currencies |
| Reports | sales, top sellers, order/product/customer totals |
| Media | list, delete, cleanup orphaned |
The server exposes 7 MCP resources that provide schema references and guides for AI agents:
| URI | Description |
|---|---|
woo://schema/product | Product fields, types, statuses, and key rules |
woo://schema/order | Order fields, status lifecycle, and payment info |
woo://schema/coupon | Coupon types, limits, restrictions, and rules |
woo://schema/refund | Refund fields, reasons, line items, and processing rules |
woo://reference/product-types | When to use simple, variable, grouped, or external products |
woo://reference/order-statuses | Order status transitions and lifecycle diagram |
woo://reference/payment-gateways | Available payment gateways and their configuration options |
Resources are read-only context that agents can fetch to understand WooCommerce data structures before making API calls.
5 guided workflow prompts that orchestrate multi-step operations:
| Prompt | Args | What it does |
|---|---|---|
setup_variable_product | product_name, attribute_name, variations | Creates a variable product end-to-end: attribute → terms → product → variations → publish |
process_order | order_id | Reviews an order's details and recommends the appropriate status transition |
catalog_overview | _(none)_ | Runs 5 tools in parallel to produce a store dashboard (products, orders, customers, categories, top sellers) |
handle_refund | order_id | Guides through refund processing: review order, select items, create refund, verify |
moderate_reviews | _(none)_ | Reviews pending product reviews and recommends approve/update/delete actions |
Every tool is annotated with behavior hints so AI agents can make safe decisions:
| Annotation | Meaning | Applied to |
|---|---|---|
readOnlyHint | No side effects, safe to call anytime | All list_*, get_*, and report tools (46) |
destructiveHint | Deletes or removes data | All delete_* tools + cleanup_orphaned_media + run_system_tool + batch_update_* (22) |
idempotentHint | Safe to retry, same result each time | All update_* tools (15) |
All tools also set openWorldHint: false — they only interact with WooCommerce, no external side effects.
| Variable | Required | Description |
|---|---|---|
WORDPRESS_SITE_URL | Yes | WordPress store URL (e.g. https://store.example.com) |
WOOCOMMERCE_CONSUMER_KEY | Yes | WooCommerce REST API consumer key (ck_...) |
WOOCOMMERCE_CONSUMER_SECRET | Yes | WooCommerce REST API consumer secret (cs_...) |
WORDPRESS_USERNAME | No | WordPress admin username (for media tools) |
WORDPRESS_APP_PASSWORD | No | WordPress Application Password (for media tools) |
MCP_TRANSPORT | No | Set to http for remote HTTP access (default: stdio) |
PORT | No | Platform-provided port (Hostinger, Railway); overrides MCP_PORT |
MCP_PORT | No | HTTP server port (default: 3000) |
MCP_AUTH_TOKEN | No* | Bearer token for HTTP auth (*required when MCP_TRANSPORT=http) |
WOOCOMMERCE_MCP_READ_ONLY | No | Set to true to block all write/delete operations (safe exploration mode) |
.env fileInstead of inlining credentials, point to a directory with a .env file:
{
"mcpServers": { "woocommerce": { "command": "npx", "args": ["-y", "@amitgurbani/mcp-server-woocommerce"], "cwd": "/path/to/your/project" } } }
Use different server names to manage multiple stores from one project:
{
"mcpServers": { "store-a": { "command": "npx", "args": ["-y", "@amitgurbani/mcp-server-woocommerce"], "env": { "WORDPRESS_SITE_URL": "https://store-a.com", "..." } }, "store-b": { "command": "npx", "args": ["-y", "@amitgurbani/mcp-server-woocommerce"], "env": { "WORDPRESS_SITE_URL": "https://store-b.com", "..." } } } }
All tools support an optional fields param (comma-separated) to return only specific fields:
# Browsing products — just names and prices
fields: "id,name,price"
fields: "id,name,stock_status,stock_quantity"
fields: "id,number,status,total"
This reduces response size by 60-97%, keeping AI context windows focused and costs low.
git clone https://github.com/AmitGurbani/mcp-server-woocommerce.git
cd mcp-server-woocommerce pnpm install
pnpm dev # Watch mode
pnpm build # Build pnpm st