mcp server
mcp-for-woocommerce
WooCommerce MCP Server — WordPress community plugin implementing the Model Context Protocol (MCP) for WooCommerce. Supports STDIO and HTTP streamable transport, with optional JWT authentication. Based
Set up
Runs on your computer. Pick your agent and operating system.
This project does not publish an install method we can turn into a config. Follow the README instead.
README
synced Oct 14, 2026MCP for WooCommerce
Connect your WooCommerce store to AI assistants like Claude and VS Code. This WordPress plugin enables AI clients to access your store's product catalog, categories, reviews, and content through a secure, read-only interface.
Community Plugin Notice: This is a community-developed plugin and is not affiliated with or endorsed by Automattic, the creators of WordPress and WooCommerce. While it builds upon the foundation of the official WordPress MCP implementation, this plugin is independently maintained.
MCP for WooCommerce transforms your WordPress site into an AI-accessible data source built on Automattic's official WordPress MCP. It safely exposes public store information—products, categories, tags, reviews, shipping options, and WordPress content—while protecting customer data and private details.
Perfect for building AI-powered shopping assistants or integrating with custom AI applications.
Key Features
- Read-only: every tool has type
read; nothing can be created, changed or deleted - Public storefront data only: published products, categories, tags, attributes, approved reviews, shipping, tax and payment options, published posts and pages
- No user sign-in: the endpoint never acts as a WordPress user and has no administrator access
- Product and variation permalinks: every product and variation includes a
permalinkfield - Two transports: STDIO-style (WordPress REST format) and Streamable HTTP (JSON-RPC 2.0)
- Admin UI: master on/off switch and per-tool toggles
- Smart search: natural-language product search with price, brand, category and attribute filters
Why Choose MCP for WooCommerce
- WooCommerce MCP Server: turnkey MCP server for WooCommerce + WordPress.
- Nothing to configure: enable it and paste the endpoint URL into your MCP client.
- AI chatbot ready: connect a chat platform and answer shoppers with clickable product links.
- Safe by design: no personal data, no write access, no user impersonation.
- Works with Claude, ChatGPT, Cursor, VS Code, the MCP Inspector and custom MCP clients.
Architecture and Endpoints
-
Streamable HTTP transport (JSON-RPC 2.0) — recommended
- Endpoint:
/wp-json/wp/v2/wpmcp/streamable - Access: public while MCP is enabled; no credentials
- Endpoint:
-
STDIO-style transport (WordPress REST format)
- Endpoint:
/wp-json/wp/v2/wpmcp - Access: public while MCP is enabled; no credentials
- Endpoint:
Tip: If you’re searching for “WooCommerce MCP Server endpoint”, this is it. Use the Streamable HTTP transport for modern, low-latency clients.
Requirements
- WordPress 6.4+
- PHP 8.0+
- WooCommerce activated
- Node.js (admin UI build), Composer (development)
Installation
- WordPress Admin (recommended)
- Install from the plugin directory, or upload the release ZIP via Plugins > Add New > Upload
- Activate the plugin, then switch on Enable MCP functionality in Settings > MCP for WooCommerce
- Development install
cd wp-content/plugins/
git clone https://github.com/iOSDevSK/mcp-for-woocommerce.git
cd mcp-for-woocommerce
composer install
npm install && npm run build
AI Shopping Assistant
Deploy AI-powered customer assistance on your site using the MCP data interface.
- Enable MCP in Settings > MCP for WooCommerce
- Give your AI platform the endpoint
https://your-site.com/wp-json/wp/v2/wpmcp/streamable - Deploy your chosen chat interface or assistant (for example Webtalkbot)
Result: an AI assistant connected to your catalogue that answers questions with product links and variations.
Documentation
- Documentation: mcpforwoocommerce.com
- Client setup inside WordPress: Settings > MCP for WooCommerce > Documentation
Admin Settings
- Location: Settings > MCP for WooCommerce
- Enable MCP functionality: master on/off switch; when off, the endpoints are not registered
- Tools: switch individual tools on or off (stored in the
mcpfowo_tool_statesoption)
Note: The settings page is a React UI (assets in build/).
Connecting clients
- Claude Code
claude mcp add --transport http \
mcp-for-woocommerce https://your-site.com/wp-json/wp/v2/wpmcp/streamable
- Claude Desktop (through
mcp-remote)
{
"mcpServers": {
"mcp-for-woocommerce": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://your-site.com/wp-json/wp/v2/wpmcp/streamable"]
}
}
}
- VS Code
{
"servers": {
"mcp-for-woocommerce": {
"type": "http",
"url": "https://your-site.com/wp-json/wp/v2/wpmcp/streamable"
}
}
}
-
MCP Inspector:
npx @modelcontextprotocol/inspector, choose Streamable HTTP and enter the endpoint URL -
Local STDIO proxy:
mcp-proxy.phpin this repository is a standalone command-line bridge (not part of the plugin package):php mcp-proxy.php https://your-site.com/wp-json/wp/v2/wpmcp/streamable
Best-Practice Product Search Workflow
- Use
wc_products_searchfirst to find products by name/description - Use
wc_get_productwith the returned ID for details - Use
wc_get_product_variations(orwc_get_product_variation) for variations - Always include clickable
permalinklinks for products and variations
Registered Tools (read-only)
-
Products & search
wc_products_search— primary universal search (includespermalink)wc_get_product— product by ID (includespermalink)wc_get_product_variations— all variations for a variable product (each includespermalink)wc_get_product_variation— specific variation by ID (includespermalink)wc_intelligent_search— intelligent fallback multi-stage searchwc_analyze_search_intent— analyze user query and suggest parameterswc_analyze_search_intent_helper— helper for categories/tags mappingwc_get_products_by_brand— products by brand (attribute/category/custom taxonomy)wc_get_products_by_category— products by categorywc_get_products_by_attributes— products filtered by attributeswc_get_products_filtered— multi-criteria filtering (brand/category/price/attributes)
-
Categories, tags, attributes
wc_get_categories— list product categorieswc_get_tags— list product tagswc_get_product_attributes— global attribute definitionswc_get_product_attribute— attribute by IDwc_get_attribute_terms— attribute terms (e.g., Red, Blue for Color)
-
Reviews
wc_get_product_reviews— list reviews with filters/paginationwc_get_product_review— single review by ID
-
Shipping & payments
wc_get_shipping_zones,wc_get_shipping_zonewc_get_shipping_methods,wc_get_shipping_locationswc_get_payment_gateways,wc_get_payment_gateway
-
Taxes
wc_get_tax_classes,wc_get_tax_rates
-
WordPress content
wordpress_posts_list,wordpress_posts_getwordpress_pages_list,wordpress_pages_get
Notes:
- Tools are defined under
includes/Tools/*. Every tool has typeread; the registry rejects any other type. - Products, variations, reviews, posts and pages are returned only when an anonymous shop visitor could see them: published, not password-protected, and not hidden from the catalogue.
Security
- Read-only: the tool registry accepts only
readtools - No user sign-in: no tokens, no OAuth, no
wp_set_current_user(); callers never get a WordPress identity - Public data only: published, visible products and content; no orders, customers, users, e-mail addresses or settings
- Tool toggles: switch off any tool you don’t want exposed, or switch MCP off entirely
Troubleshooting
- “WooCommerce functions not available”: ensure WooCommerce is active
- Endpoint returns 404: switch on Enable MCP functionality
- Clients that still send an
Authorizationheader keep working; the header is ignored wc_intelligent_searchreturns no products: the tool suggests alternatives; try a less restrictive query- Admin UI issues: run
npm install && npm run buildin the plugin directory
Developer Notes
Structure (selection):
includes/
Core/ (McpStdioTransport, McpStreamableTransport, WpMcp, …)
Admin/ (Settings.php — MCP switch and tool toggles)
Tools/ (McpWooProducts, McpWooIntelligentSearch, McpWoo*, …)
Utils/ (StorefrontVisibility — what an anonymous visitor may see)
Resources/
src/ (React UI for settings)
Build UI:
npm install
npm run build
End-to-end transport tests: see tests/e2e/README.md.
Changelog
- Full changelog:
changelog.txtandreadme.txt
License
This project is licensed under the GPL v2 or later. See the LICENSE file for details.
More from the author
html2wp converts a static HTML site (a Lovable, Bolt or v0 export, or hand-written HTML) into a standalone WordPress block theme, with WooCommerce for shops.
AI Assistant Tips (best practice):
- Always start with
wc_products_search, thenwc_get_productfor details - Never hardcode product IDs; use IDs returned from search
- Always include clickable
permalinklinks in user-facing answers