
Woocommerce Mcp
io.github.wppoland由 GitHub 账号 wppoland 发布v0.1.1更新于 Oct 24, 2026
Read-only MCP server for WordPress + WooCommerce products, orders, sales, and posts.
概览
只读 MCP 服务器,让助手查询 WordPress 与 WooCommerce 商店的商品、订单、销售数据和博客文章。
- 可以做什么
- 通过官方 WordPress 与 WooCommerce REST API 提供五个只读工具:list_products 和 get_product 获取商品目录信息,如名称、SKU、价格、库存和永久链接;list_orders 按最新优先列出订单,可按状态筛选;sales_report 汇总一周、一个月、上月或一年的销售总额;search_posts 搜索已发布的博客文章。它不会在商店中创建、修改或删除任何内容,也无需安装插件。
- 适用场景
- 适合让助手回答关于线上商店的问题,例如上月销售额或最近处于保留状态的订单,同时不授予写入权限。也适用于只需要搜索博客文章的公开 WordPress 站点,因为该工具无需 WooCommerce 密钥。
- 运行要求
- 作为本地 Node.js 进程运行(Node 18+),可通过 npm 包 @wppoland/woocommerce-mcp 安装或从源码构建。需要环境变量 WP_URL 提供商店的 HTTPS 基础地址,以及 WC_CONSUMER_KEY 和 WC_CONSUMER_SECRET 供 WooCommerce 工具使用;search_posts 无需密钥。需要能访问该商店的网络连接。
安装
在 SourceWeft 中
- 打开 控制台中的 Woocommerce Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
woocommerce-mcp
A small, read-only Model Context Protocol server for WordPress + WooCommerce. It lets Claude (or any MCP client) answer questions about a live store — products, orders, sales, and blog posts — over the official REST APIs. No writes, no plugins to install on the store: it talks to the existing WordPress/WooCommerce REST endpoints.
Built and maintained by WPPoland, a senior WordPress developer working with WordPress since 2006. If you need this wired into a real store stack, we build WooCommerce ERP and API integrations and enterprise e-commerce architecture (headless, integrations, AI-ready data).
Tools
Everything is read-only. The server never creates, edits, or deletes anything in the store.
Install & build
From npm (package name is scoped - the unscoped woocommerce-mcp name is locked on the registry):
From source:
Configure
Set three environment variables:
Create the WooCommerce keys in WooCommerce → Settings → Advanced → REST API → Add key with Read permission. search_posts works without keys against any public WordPress site.
The keys are sent to your own store over HTTPS as REST query auth. Use HTTPS, and give the key Read access only.
Use with Claude Desktop / Claude Code
Add to your MCP client config (e.g. claude_desktop_config.json):
Then ask things like "What were last month's WooCommerce sales?" or "List the 5 most recent orders that are on hold."
Docs on wppoland.com
- WooCommerce MCP open source (read-only): release and ops guide - npm scope, registry, Glama, and how we ship updates without write tools
Articles (off-site)
Field notes published on DEV (not duplicates of wppoland.com pages):
- A read-only MCP server for WooCommerce: what AI agents actually need from a store
- Syncing a wholesaler's API into WooCommerce without overselling or melting the server
- Twelve months after migrating wppoland.com from WordPress to Astro on Cloudflare Pages
Show HN: discussion
Verify
Notes
- Node 18+ (uses the built-in
fetch). - Logs go to stderr so they never corrupt the stdio MCP protocol on stdout.
- API errors are surfaced with the store's message; credentials are never echoed.
License
MIT © WPPoland
来源:README.md,提交 0943ad2
工具
0版本历史
1- v0.1.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分