product
Pack: openfoodfacts · Endpoint: https://gateway.pipeworx.io/openfoodfacts/mcp
Product by barcode.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
barcode | string | yes |
Example call
Arguments
{
"barcode": "3017620425035"
}
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":"product","arguments":{"barcode":"3017620425035"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('product', {
"barcode": "3017620425035"
});
More examples
{
"barcode": "5000112128619"
}
Response shape
| Field | Type | Description |
|---|---|---|
code | string | Product barcode |
product | object | Product details object |
status | number | HTTP status code |
status_verbose | string | Status description |
Full JSON Schema
{
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "Product barcode"
},
"product": {
"type": "object",
"description": "Product details object",
"properties": {
"product_name": {
"type": "string",
"description": "Product name"
},
"brands": {
"type": "string",
"description": "Brand names"
},
"categories": {
"type": "string",
"description": "Product categories"
},
"countries": {
"type": "string",
"description": "Countries of origin"
},
"generic_name": {
"type": "string",
"description": "Generic product name"
},
"quantity": {
"type": "string",
"description": "Product quantity"
},
"nutrition_grade_fr": {
"type": "string",
"description": "Nutri-Score grade"
},
"nutriscore_score": {
"type": "number",
"description": "Nutri-Score numerical value"
},
"nova_group": {
"type": "number",
"description": "NOVA group classification"
}
}
},
"status": {
"type": "number",
"description": "HTTP status code"
},
"status_verbose": {
"type": "string",
"description": "Status description"
}
}
}
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.