What is WooCommerce MCP Server (HTTP/Express)?
This server provides a JSON-RPC 2.0 interface over HTTP intended to interact with WooCommerce. It is designed for developers who want to manage WooCommerce data through Model Context Protocol (MCP)-compatible clients. Note that the actual WooCommerce API integration is a placeholder and must be implemented before the server can connect to a live WooCommerce site.
How to use WooCommerce MCP Server (HTTP/Express)?
Clone the repository, run npm install, create a .env file with your WooCommerce site URL, consumer key, consumer secret, a chosen port, and an API key for authentication. Start the server with node server.js; the RPC endpoint will be available at http://localhost:3000/rpc. Use POST requests with a JSON-RPC 2.0 body and the X-API-Key header to call methods like get_products, get_product, and update_product.
Key features of WooCommerce MCP Server (HTTP/Express)
- JSON‑RPC 2.0 protocol over HTTP
- Pre‑defined methods: get_products, get_product, update_product
- API‑key authentication via X‑API‑Key header
- Configurable port and WooCommerce credentials via .env
- Lightweight Express‑based server
Use cases of WooCommerce MCP Server (HTTP/Express)
- Retrieving a list of recent WooCommerce products programmatically
- Fetching details of a specific product by ID
- Updating product information (e.g., description) from an MCP‑aware tool
- Integrating WooCommerce data into AI‑powered assistants or automation workflows (once the WooCommerce integration is implemented)
Comments