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 on Automattic’s official WordPress MCP. This plugin is not affiliated with Automattic.
claude mcp add --transport stdio iosdevsk-mcp-for-woocommerce npx -y @automattic/mcp-wordpress-remote@latest \ --env JWT_TOKEN="YOUR_JWT_TOKEN" \ --env WP_API_URL="https://your-site.com"
How to use
MCP for WooCommerce turns a WordPress/WooCommerce installation into an MCP data source that AI assistants can query. It exposes read-only access to products, categories, reviews, and WordPress content through two transports: a WordPress-style STDIO endpoint and a modern, low-latency Streamable HTTP JSON-RPC endpoint. Clients can use the standard WordPress MCP proxy tooling to connect (via Claude Desktop or compatible MCP clients) and retrieve permalinks for products and variations to present clickable links in AI responses. This setup is designed to keep customer data private while offering rich, browsable catalog information to AI agents and chat interfaces.
How to install
Prerequisites:
- WordPress 6.4+ with WooCommerce activated
- PHP 8.0+ on the WordPress host
- Node.js and npm for admin UI build (development)
- Composer for development
Installation options:
- WordPress Admin (recommended)
- In WordPress, go to Plugins > Add New > Upload, and upload the MCP for WooCommerce plugin ZIP from the releases page.
- Activate the plugin and configure as needed (JWT, tools, etc.).
- Manual installation
- Upload the plugin ZIP to wp-content/plugins/ and unzip.
- Activate the plugin in the WordPress admin area.
- Development install (for contributing or testing)
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
Configure the MCP client (example with Claude Desktop proxy):
# Use the following in Claude Desktop or your MCP client configuration
{
"mcpServers": {
"mcp-for-woocommerce": {
"command": "npx",
"args": ["-y", "@automattic/mcp-wordpress-remote@latest"],
"env": {
"WP_API_URL": "https://your-site.com",
"JWT_TOKEN": "YOUR_JWT"
}
}
}
}
Notes:
- The WordPress REST endpoints used are /wp-json/wp/v2/wpmcp (STDIO) and /wp-json/wp/v2/wpmcp/streamable (Streamable HTTP).
- Ensure JWT authentication is configured if you require secured access; you can also enable a local proxy mode when JWT is disabled.
Additional notes
Tips and considerations:
- Use the Streamable endpoint for lower latency and direct integration with modern MCP clients.
- When JWT Authentication is disabled, the plugin can auto-generate a Claude Desktop-friendly proxy script (mcp-proxy.js) to simplify local testing.
- The tools exposed by this MCP server are read-only to protect customer data; always include permalinks in AI responses for product references.
- Manage tokens via WordPress Admin > Settings > MCP for WooCommerce. Rotate tokens regularly and use short expirations in production.
- If you encounter CORS or authentication issues, verify that WP_API_URL and JWT_TOKEN are correctly set in your MCP client configuration and that the WordPress site is reachable from the client environment.
Related MCP Servers
AstrBot
Agentic IM Chatbot infrastructure that integrates lots of IM platforms, LLMs, plugins and AI feature, and can be your openclaw alternative. ✨
better-chatbot
Just a Better Chatbot. Powered by Agent & MCP & Workflows.
agentql
Model Context Protocol server that integrates AgentQL's data extraction capabilities.
mcp
🤖 A Model Context Protocol (MCP) library for use with Agentic chat bots
codemesh
The Self-Improving MCP Server - Agents write code to orchestrate multiple MCP servers with intelligent TypeScript execution and auto-augmentation
daedra
Daedra is a high-performance DuckDuckGo-powered web search and research Model Context Protocol (MCP) server written in Rust. It provides web search and page fetching capabilities that can be used with AI assistants like Claude.