cd /news/ai-tools/show-hn-a-read-only-mcp-server-for-w… · home topics ai-tools article
[ARTICLE · art-49273] src=github.com ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

Show HN: A read-only MCP server for WooCommerce

WPPoland released a read-only Model Context Protocol server for WooCommerce that allows AI assistants like Claude to query live store data—products, orders, sales, and blog posts—via existing REST APIs without requiring plugins or write access. The open-source tool requires Node 18+ and WooCommerce API keys with read permissions, enabling natural language questions about store operations.

read2 min views6 publishedJul 7, 2026
Show HN: A read-only MCP server for WooCommerce
Image: source

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 — senior WordPress & WooCommerce engineering. 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).

Tool What it does Needs WooCommerce keys
list_products
List / search products (name, sku, price, stock, permalink) yes
get_product
Full details for one product by id yes
list_orders
Recent orders, newest first, optional status filter yes
sales_report
Sales totals for a period (week / month / last_month / year) yes
search_posts
Search published blog posts (public WP REST API) no

Everything is read-only. The server never creates, edits, or deletes anything in the store.

git clone https://github.com/wppoland/woocommerce-mcp.git
cd woocommerce-mcp
npm install
npm run build

Set three environment variables:

Var Required Example
WP_URL
yes https://shop.example.com
WC_CONSUMER_KEY
for wc_* tools
ck_xxx
WC_CONSUMER_SECRET
for wc_* tools
cs_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

Readaccess only.

Add to your MCP client config (e.g. claude_desktop_config.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."

npm run check   # builds, then asserts all five tools register (no network/credentials needed)
  • 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.

MIT © WPPoland

── more in #ai-tools 4 stories · sorted by recency
── more on @wppoland 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-a-read-only-…] indexed:0 read:2min 2026-07-07 ·