WooCommerce MCP Server (AI Gateway)

WordPress plugin that turns a WooCommerce store into an MCP server with OAuth sign-in and per-role read/write/delete permissions: products, orders, coupons, reports, shipping and content, with an audit log.

Documentation

WooCommerce MCP Server (AI Gateway)

Give Claude, ChatGPT, Cursor, Claude Code or Gemini CLI access to your WooCommerce store over the Model Context Protocol. You decide, role by role, what each AI app may read, write or delete.

AI Gateway is a WordPress plugin. Install it on your store, and the store itself becomes the MCP server. You don't host a separate service or copy store API keys into your AI tools. Each store serves its own endpoint:

https://your-store.com/wp-json/ai-gateway/mcp
  • Transport: HTTP (a remote MCP server; clients connect with --transport http)
  • Auth: OAuth on your store, with dynamic client registration. The app acts as the WordPress user who approved it.
  • Runs on: WordPress with WooCommerce. Needs the MCP Adapter plugin, which AI Gateway can install for you.

What an AI can do with it

AreaExamples
ProductsFind products, update prices, stock, status and categories. PRO: change up to 500 at once, previewed first
Orders and couponsLook up orders, check their status, create and edit coupons
ReportsSales, top sellers, stock levels
Shipping and paymentsRead and adjust shipping zones and methods; list payment gateways
WordPress contentPosts, pages, media, menus, comments, SEO fields
IntegrationsAdvanced Custom Fields and Google Site Kit; PRO adds WooCommerce Subscriptions and AutomateWoo

Example prompts once connected:

Which products are out of stock but still published?

Make a 15% coupon for the Winter category that expires on Sunday.

Show me my five best sellers and how much stock each has left.

Safety model

  • Off by default. No role can connect, and no store area is open, until the owner enables it.
  • Per-role permission grid. Read, Write and Delete can be switched on separately for each area of the store.
  • Audit log. While logging is on, each tool call is recorded with the user, app, permission used and item touched.
  • Undo (PRO). Reverse supported single-item AI edits from the log. Bulk edits can't be undone.
  • Revoke any app instantly from the OAuth Clients screen.

Quick start

  1. Download the free plugin zip from Releases (or get PRO from the product page) and upload the zip under Plugins → Add Plugin → Upload Plugin, then activate it.
  2. Open 1TeamSoftware → AI Gateway → Connection. If the MCP Adapter line in Status isn't Active, click its install or activate button.
  3. On Access & Roles, turn on your role. On Permissions, allow what the AI may use. On Integrations, turn on WooCommerce.
  4. Add the endpoint to your client (configs below) and approve the sign-in page that opens.

Claude Code

claude mcp add --transport http --scope user ai-gateway 'https://your-store.com/wp-json/ai-gateway/mcp'

Then /mcp → ai-gateway → Authenticate.

Gemini CLI

gemini mcp add --scope user --transport http ai-gateway https://your-store.com/wp-json/ai-gateway/mcp

Then inside gemini, run /mcp auth ai-gateway.

Cursor, Claude, ChatGPT

  • Cursor: in AI Gateway, open Connection, click Copy Cursor config and paste it into ~/.cursor/mcp.json.
  • Claude and ChatGPT: add the endpoint as a custom connector or custom MCP server. Both connect from the vendor's cloud, so the store must be reachable on public HTTPS, or through the tunnel options on the Connection tab.

Agent skill

Teach your coding agent to use the server safely: confirm before writing, preview bulk changes, respect refusals.

npx skills add https://github.com/1TeamSoftware/skills --skill ai-gateway-woocommerce-mcp

Free vs PRO

The free plugin covers WordPress content, WooCommerce products, orders, coupons, shipping, payments, reports, ACF, Site Kit and the audit log. PRO adds bulk product edits, Undo, store settings, customers, taxes, users and site settings, WooCommerce Subscriptions and AutomateWoo.

Links

This repository has the listing and client setup for the server. The plugin is distributed from 1teamsoftware.com.