Shop MCP

Connect a module

WordPress + WooCommerce

Connect WordPress with an Application Password or approve store access in WooCommerce.

Prerequisites

  • WordPress 5.6 or newer (for Application Passwords).
  • A WordPress account with permissions for the content or store data you want ShopMCP to access.
  • WooCommerce 3.5+ if you want the woo_* tools (products, orders, customers, reports, stock).
  • The site must be served over HTTPS. ShopMCP refuses to send credentials over plain HTTP.

Approve in WooCommerce

In Settings → Integrations → WordPress, enter your store’s HTTPS URL and select WooCommerce approval. WooCommerce creates a key with Read access by default, and you can use that connection for a migration audit. Where writes are available, choose Read and write and then enable writes for that site after connecting.

Approving a store that is already connected updates its WooCommerce credentials. Review and revoke unused keys in WooCommerce → Settings → Advanced → REST API.

Connect WordPress with an Application Password

Select Manual credentials to connect WordPress posts, pages, and media. You can add existing WooCommerce keys in the same form.

In your WP admin, go to Users → Profile (or Users → All Users → (your user) if you're editing another account), scroll down to the Application Passwords section, and type a name like ShopMCP. Click Add New Application Password.

WordPress shows the new password once, in 24-character groups (e.g. AbCd 1234 EfGh 5678 IjKl 9012). Copy the whole thing including the spaces — WordPress ignores them on sign-in.

If you don't see the Application Passwords section, your host may have disabled the feature at the server level (some managed hosts do this). Ask support to enable WordPress Application Passwords over HTTPS.

Manual connection: WooCommerce REST keys

If the WordPress credential cannot read your WooCommerce catalog, generate a WooCommerce REST API key.

  • Go to WooCommerce → Settings → Advanced → REST API.
  • Click Add key.
  • Set Description to ShopMCP, User to a shop manager (or higher), and Permissions to Read for an audit or Read/Write if you need to make WooCommerce changes.
  • Click Generate API key. Copy both the Consumer key (starts with ck_) and Consumer secret (starts with cs_) — they only display once.
Read-only keys work for the woo_get_* tools but block every write. If you later want to use woo_update_product etc., you'll need to regenerate with Read/Write.

Manual connection: Enter your credentials

Open Settings → Integrations and click Connect on the WordPress card. Select Connect manually and enter the following details.

  • Site URL — the full https:// URL of the site, e.g. https://blog.example.com.
  • Display name — a friendly label for the dashboard and tool output (e.g. Acme Blog).
  • WordPress username — the login name of the user whose Application Password you generated.
  • Application password — the 24-character value generated in WordPress.
  • Woo consumer key/secret — optional, only if the site has WooCommerce.

ShopMCP verifies the site is reachable, confirms the credentials work, and runs a plugin probe against /wp-json and /wp-json/wp/v2/plugins. The detected plugins show up in the "connected sites" table and gate which tools appear in your tools/list.

Manage multiple sites

Add each site from the WordPress integration page — every site lives under a single connection blob but is addressable via its own site_id. The workspace's default site is used when a tool call omits site_id; change the default by clicking Set default on any row.

Use wp_list_sites from the chat client to discover the ids before making targeted calls:

> What WordPress sites do I have connected?

(calls wp_list_sites → returns id, URL, detected plugins per site)

> On the acme-blog site, list draft posts modified this week

(calls wp_get_posts with site_id: "<acme id>", status: "draft", modified_after: ...)

Audit a WooCommerce migration

In Settings → Integrations → WordPress, select a connected WooCommerce source and start a migration audit. The audit checks catalog pagination and reports coverage. You can resume an interrupted audit and download the JSONL export with catalog records, migration findings, and proposed Shopify collection and product URL mappings.

For individual pages of data, call woo_list_catalog with the site ID and catalog section.

Review and apply catalog changes in batches

Use woo_preview_catalog_batch to save the changes for one site and review every page withwoo_get_catalog_batch. After reviewing the plan, use its hash and next offset to apply batches of up to ten rows. ShopMCP reads back the affected records and saves the results for each row.

Use woo_reconcile_catalog_batch when an operation needs review. It checks WooCommerce state so you can decide what to do with the remaining changes.

Tool inventory

Always available on every connected site:

  • wp_list_sites, wp_get_site_info
  • wp_get_posts, wp_get_pages, wp_get_media, wp_get_users, wp_get_taxonomies, wp_get_comments

Unlocked when WooCommerce is detected:

  • woo_list_catalog, woo_get_products, woo_get_orders, woo_get_customers, woo_get_coupons, woo_get_sales_report, woo_get_top_sellers, woo_get_stock

Unlocked when Yoast SEO or Rank Math is detected:

  • seo_get_meta — normalized across both plugins so the caller doesn't need to care which is installed.

Unlocked when ACF is detected:

  • acf_get_fields — read ACF field values attached to a post.

Write tools (wp_create_post, wp_update_post, wp_delete_post, wp_upload_media, wp_moderate_comment, woo_create_product, woo_update_product, woo_set_product_stock, woo_update_order_status, woo_create_coupon, woo_create_refund, seo_update_meta, acf_update_fields) require writes to be enabled on the selected site. When multiple sites are connected, pass its site ID. Every mutating tool supports dry_run: true to preview a unified diff before you authorize the real write.

Troubleshooting

  • "WordPress rejected the username or Application Password (HTTP 401)" — the Application Password was revoked, the user was deactivated, or you pasted the wrong username. Go back to Users → Profile in WP and generate a fresh password for the same user.
  • "WordPress REST authentication is blocked for /wp-json/wp/v2/users/me (HTTP 403)" — the site is reachable, but a host rule, WAF, LiteSpeed/ModSecurity rule, Cloudflare rule, or security plugin is blocking the REST auth route. Ask the host to allow REST API Basic Auth/Application Password requests for /wp-json/wp/v2/users/me.
  • "Couldn't reach /wp-json/" — a security plugin (Wordfence, iThemes, SolidWP) is blocking unauthenticated access to the REST namespace. Whitelist ShopMCP's egress IPs or relax the REST API filter for /wp-json/wp/v2.
  • "WooCommerce rejected the Consumer Key/Secret" — regenerate the WooCommerce REST API key with Read/Write permissions for a shop manager or admin user. ShopMCP may retry with WooCommerce's HTTPS query-string auth fallback when the host strips the Authorization header.
  • "WooCommerce returned 404" — either Woo isn't installed, Woo is older than 3.5, or the keys are for a different site. Re-generate the keys in WooCommerce → Settings → Advanced → REST API.
  • Plugin tools don't appear in tools/list — the probe reads /wp-json/wp/v2/plugins, which some hosts disable. If Woo/Yoast/Rank Math/ACF is installed but undetected, the site still works — tools just don't auto-register. Ping support and we can widen the fallback detection.
  • Rate limit hit (HTTP 429) — WooCommerce's Store API rate limits are off by default but some hosts add their own. Back off for 30 seconds and retry.