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.

已验证STDIO仅桌面数据与分析商业与电商

概览

AI 生成的概览

只读 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 无需密钥。需要能访问该商店的网络连接。
安装前请注意
WooCommerce 凭据 WC_CONSUMER_KEY 和 WC_CONSUMER_SECRET 会以 REST 查询认证方式通过 HTTPS 发送到商店,因此请使用 HTTPS,并只授予 Read 权限的密钥。商店数据会被读取并返回给助手;该服务器为只读,不会写入、发送或删除商店内容。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Woocommerce Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

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

ToolWhat it doesNeeds WooCommerce keys
list_productsList / search products (name, sku, price, stock, permalink)yes
get_productFull details for one product by idyes
list_ordersRecent orders, newest first, optional status filteryes
sales_reportSales totals for a period (week / month / last_month / year)yes
search_postsSearch published blog posts (public WP REST API)no

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):

bash
npm install -g @wppoland/woocommerce-mcp# or: npx @wppoland/woocommerce-mcp

From source:

bash
git clone https://github.com/wppoland/woocommerce-mcp.gitcd woocommerce-mcpnpm installnpm run build

Configure

Set three environment variables:

VarRequiredExample
WP_URLyeshttps://shop.example.com
WC_CONSUMER_KEYfor wc_* toolsck_xxx
WC_CONSUMER_SECRETfor wc_* toolscs_xxx

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):

json
{  "mcpServers": {    "woocommerce": {      "command": "node",      "args": ["/absolute/path/to/woocommerce-mcp/dist/index.js"],      "env": {        "WP_URL": "https://shop.example.com",        "WC_CONSUMER_KEY": "ck_xxx",        "WC_CONSUMER_SECRET": "cs_xxx"      }    }  }}

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

Articles (off-site)

Field notes published on DEV (not duplicates of wppoland.com pages):

Show HN: discussion

Verify

bash
npm run check   # builds, then asserts all five tools register (no network/credentials needed)

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
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分