country

Pack: openfoodfacts · Endpoint: https://gateway.pipeworx.io/openfoodfacts/mcp

Products from a country.

Parameters

NameTypeRequiredDescription
countrystringyes
pagenumberno
page_sizenumberno

Example call

Arguments

{
  "country": "France"
}

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":"country","arguments":{"country":"France"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('country', {
  "country": "France"
});

More examples

{
  "country": "United States",
  "page": 1,
  "page_size": 30
}

Response shape

FieldTypeDescription
countnumberTotal products from country
pagenumberCurrent page number
page_sizenumberResults per page
productsarrayArray of products from country
Full JSON Schema
{
  "type": "object",
  "properties": {
    "count": {
      "type": "number",
      "description": "Total products from country"
    },
    "page": {
      "type": "number",
      "description": "Current page number"
    },
    "page_size": {
      "type": "number",
      "description": "Results per page"
    },
    "products": {
      "type": "array",
      "description": "Array of products from country",
      "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.

Regenerated from source · build July 6, 2026