woo_get_product
Pack: woocommerce · Endpoint: https://gateway.pipeworx.io/woocommerce/mcp
Get a single product by ID from a WooCommerce store.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
_apiKey | string | yes | WooCommerce consumer key |
_apiSecret | string | yes | WooCommerce consumer secret |
_storeUrl | string | yes | Store URL (e.g., https://mystore.com) |
id | number | yes | Product ID |
Example call
Arguments
{
"_apiKey": "your-woocommerce-api-key",
"_apiSecret": "your-woocommerce-api-secret",
"_storeUrl": "https://mystore.com",
"id": 123
}
curl
curl -X POST https://gateway.pipeworx.io/woocommerce/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"woo_get_product","arguments":{"_apiKey":"your-woocommerce-api-key","_apiSecret":"your-woocommerce-api-secret","_storeUrl":"https://mystore.com","id":123}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('woo_get_product', {
"_apiKey": "your-woocommerce-api-key",
"_apiSecret": "your-woocommerce-api-secret",
"_storeUrl": "https://mystore.com",
"id": 123
});
Response shape
| Field | Type | Description |
|---|---|---|
id | number | Product ID |
name | string | Product name |
slug | string | Product slug |
permalink | string | Product permalink |
date_created | string | Creation date in ISO format |
date_modified | string | Last modified date in ISO format |
type | string | Product type |
status | string | Product status |
featured | boolean | Whether product is featured |
catalog_visibility | string | Catalog visibility |
description | string | Product description |
short_description | string | Short product description |
sku | string | Product SKU |
price | string | Product price |
regular_price | string | Regular price |
sale_price | string | Sale price |
total_sales | number | Total sales count |
tax_status | string | Tax status |
tax_class | string | Tax class |
stock_quantity | integer | null | Stock quantity |
stock_status | string | Stock status |
Full JSON Schema
{
"type": "object",
"description": "Single product object from WooCommerce",
"properties": {
"id": {
"type": "number",
"description": "Product ID"
},
"name": {
"type": "string",
"description": "Product name"
},
"slug": {
"type": "string",
"description": "Product slug"
},
"permalink": {
"type": "string",
"description": "Product permalink"
},
"date_created": {
"type": "string",
"description": "Creation date in ISO format"
},
"date_modified": {
"type": "string",
"description": "Last modified date in ISO format"
},
"type": {
"type": "string",
"description": "Product type"
},
"status": {
"type": "string",
"description": "Product status"
},
"featured": {
"type": "boolean",
"description": "Whether product is featured"
},
"catalog_visibility": {
"type": "string",
"description": "Catalog visibility"
},
"description": {
"type": "string",
"description": "Product description"
},
"short_description": {
"type": "string",
"description": "Short product description"
},
"sku": {
"type": "string",
"description": "Product SKU"
},
"price": {
"type": "string",
"description": "Product price"
},
"regular_price": {
"type": "string",
"description": "Regular price"
},
"sale_price": {
"type": "string",
"description": "Sale price"
},
"total_sales": {
"type": "number",
"description": "Total sales count"
},
"tax_status": {
"type": "string",
"description": "Tax status"
},
"tax_class": {
"type": "string",
"description": "Tax class"
},
"stock_quantity": {
"type": [
"integer",
"null"
],
"description": "Stock quantity"
},
"stock_status": {
"type": "string",
"description": "Stock status"
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"woocommerce": {
"url": "https://gateway.pipeworx.io/woocommerce/mcp"
}
}
}
See Getting Started for client-specific install steps.