
WooCommerce MCP Server
io.github.AmitGurbani由 GitHub 账号 AmitGurbani 发布v1.2.0更新于 Oct 24, 2026
101 tools for WooCommerce store management with field filtering and guided prompts.
概览
一个本地 MCP 服务器,为 AI 助手提供 101 个工具,用于读取和管理线上 WooCommerce 商店的商品、订单、客户、优惠券、配送、税费等。
- 可以做什么
- 列出、获取、创建、更新和删除商品、分类、标签、品牌、属性、属性项和变体,支持批量更新和变体商品引导流程。管理订单、退款、订单备注、客户、优惠券和商品评价。配置配送区域、区域配送方式、配送类别、税率和税类。读取和更新支付网关、商店设置与系统状态,并运行系统维护工具。创建和管理 Webhook,列出或删除媒体,包括清理孤立媒体。获取销售报表、热销商品以及订单、商品和客户统计,并可用 fields 参数精简返回内容。
- 适用场景
- 当你希望助手直接查看或操作 WooCommerce 商店时使用,例如检查库存、创建优惠券、审阅订单或生成销售汇总。适合已拥有 REST API 访问权限、并能先在测试环境验证的店主和开发者。
- 运行要求
- 通过 npx(Node.js)或 Docker 在本地运行,默认使用 stdio。需要 WORDPRESS_SITE_URL、WOOCOMMERCE_CONSUMER_KEY 和 WOOCOMMERCE_CONSUMER_SECRET;媒体工具还需 WORDPRESS_USERNAME 和 WORDPRESS_APP_PASSWORD。可选的 HTTP 模式需要 MCP_AUTH_TOKEN 或 Auth0 配置。需要能访问商店的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 WooCommerce MCP Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
mcp-server-woocommerce
[CI] [npm] [License: MIT] [Node]
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.
Quick Start
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:
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):
Cursor
Install in Cursor (one-click) or add to .cursor/mcp.json in your project root:
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"
Features
- Full store management — CRUD operations for products, categories, tags, brands, orders, customers, and coupons
- Product taxonomy — attributes, attribute terms, and variations with batch support
- Shipping — zones, zone methods, and shipping classes
- Taxes — tax rates and tax classes
- Webhooks — create, manage, and monitor webhook subscriptions
- Settings — read and update store configuration
- Reports — sales reports, top sellers, order/product/customer totals
- Media management — list, delete, and cleanup orphaned media via WordPress REST API
- Token optimization — all tools support a
fieldsparam to return only specific fields, reducing response size by 60-97% - MCP resources — schema references for products, orders, coupons, refunds, and payment gateways that agents can read for context
- Guided prompts — multi-step workflows for variable product setup, order processing, and catalog overview
- Tool annotations —
readOnlyHint,destructiveHint, andidempotentHinton all 101 tools for safe agent behavior - Actionable errors — error responses include guidance on how to fix common issues
Safety
This server connects to a LIVE WooCommerce store. Every create, update, and delete operation affects real data. Use caution, especially on production stores.
Before You Start
- Back up your store before using destructive tools. Use a WordPress backup plugin or your host's backup feature.
- Test on staging first. Clone your production store to a staging environment and point this server at the staging URL.
- Use read-only mode when exploring. Set
WOOCOMMERCE_MCP_READ_ONLY=trueto block all write operations — only list, get, and report tools will work.
Irreversible Operations
Most delete operations move items to trash (recoverable). However, these are permanent and cannot be undone:
Cascading Effects
Some operations affect more than the single item being changed:
- Deleting an attribute removes it from all products — variable products may break
- Deleting an attribute term removes that option from all products and variations
- Deleting a shipping zone removes all methods and locations in that zone
- Batch operations (
batch_update_attribute_terms,batch_update_variations) can create, update, AND delete in a single call
API Key Permissions
For maximum safety, create WooCommerce API keys with only the permissions you need:
- Read-only exploration: Create a key with Read permissions only
- Full management: Use Read/Write permissions
Available Tools (101)
Resources
The server exposes 7 MCP resources that provide schema references and guides for AI agents:
Resources are read-only context that agents can fetch to understand WooCommerce data structures before making API calls.
Prompts
5 guided workflow prompts that orchestrate multi-step operations:
Tool Annotations
Every tool is annotated with behavior hints so AI agents can make safe decisions:
All tools also set openWorldHint: false — they only interact with WooCommerce, no external side effects.
Configuration
Environment Variables
Using a .env file
Instead of inlining credentials, point to a directory with a .env file:
Multiple Stores
Use different server names to manage multiple stores from one project:
Token Optimization
All tools support an optional fields param (comma-separated) to return only specific fields:
This reduces response size by 60-97%, keeping AI context windows focused and costs low.
Development
Integration tests run against a real WordPress 6.9.4 + WooCommerce 10.5.3 instance via @wordpress/env. Prerequisite: Docker. The test environment starts automatically when you run pnpm test:integration.
Docker
Remote / Mobile Access (HTTP Transport)
For accessing your WooCommerce tools from Claude mobile, ChatGPT, or other remote clients, run the server in HTTP mode:
Or with Docker:
Either MCP_AUTH_TOKEN or AUTH0_DOMAIN + AUTH0_AUDIENCE + MCP_SERVER_URL is required.
Deployment guide: See docs/DEPLOYMENT.md for step-by-step instructions for Railway ($0/mo), Fly.io ($0/mo with scale-to-zero), and Docker deployments.
Claude Desktop / Code: Use bearer token auth — add the server URL and Authorization: Bearer <token> header to your config.
Claude.ai web / mobile: Requires OAuth 2.1 via Auth0 (free tier). See the deployment guide for setup instructions.
Default mode remains stdio — existing npx users are unaffected.
License
MIT
WooCommerce is a registered trademark of Automattic Inc. This project is not affiliated with, endorsed by, or sponsored by Automattic Inc.
来源:README.md,提交 e689993
工具
0版本历史
1- v1.2.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分