category
Pack: openfoodfacts · Endpoint: https://gateway.pipeworx.io/openfoodfacts/mcp
Products by category.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
category | string | yes | |
page | number | no | |
page_size | number | no |
Example call
Arguments
{
"category": "breakfast cereals"
}
curl
curl -X POST https://gateway.pipeworx.io/openfoodfacts/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"category","arguments":{"category":"breakfast cereals"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('category', {
"category": "breakfast cereals"
});
More examples
{
"category": "yogurts",
"page": 1,
"page_size": 50
}
Response shape
| Field | Type | Description |
|---|---|---|
count | number | Total products in category |
page | number | Current page number |
page_size | number | Results per page |
products | array | Array of products in category |
Full JSON Schema
{
"type": "object",
"properties": {
"count": {
"type": "number",
"description": "Total products in category"
},
"page": {
"type": "number",
"description": "Current page number"
},
"page_size": {
"type": "number",
"description": "Results per page"
},
"products": {
"type": "array",
"description": "Array of products in category",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "Product barcode"
},
"product_name": {
"type": "string",
"description": "Product name"
},
"brands": {
"type": "string",
"description": "Brand names"
},
"categories": {
"type": "string",
"description": "Product categories"
},
"nutrition_grade_fr": {
"type": "string",
"description": "Nutri-Score grade"
},
"nutriscore_score": {
"type": "number",
"description": "Nutri-Score value"
},
"nova_group": {
"type": "number",
"description": "NOVA group"
}
}
}
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"openfoodfacts": {
"url": "https://gateway.pipeworx.io/openfoodfacts/mcp"
}
}
}
See Getting Started for client-specific install steps.