faostat_data

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

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/faostat_data for the schema, then POST the same URL with its arguments for the data.

Observations from a FAOSTAT domain — the actual numbers, with units, year and data-quality flag. AUTHORITATIVE for “how much did produce in ”, world agricultural trade flows, fertiliser and pesticide use, agricultural emissions and food-balance data. Pass codes from faostat_dimensions: area (country), element (what is measured) and item (the commodity) are all numeric domain-specific codes, not names. Example: domain “QCL”, area “231” (United States of America), element “5510” (production quantity), item “15” (wheat), years “2020,2021,2022”.

Parameters

NameTypeRequiredDescription
domain_codestringyesFAOSTAT domain code, e.g. “QCL”. From faostat_domains.
areastringnoOne or more FAOSTAT area codes, comma-separated, e.g. “231” or “231,68,100”. From faostat_dimensions dimension “area”.
elementstringnoOne or more element codes, comma-separated, e.g. “5510” (production quantity). From faostat_dimensions dimension “element”.
itemstringnoOne or more item codes, comma-separated, e.g. “15” (wheat). From faostat_dimensions dimension “item”.
yearstringnoOne or more years, comma-separated, e.g. “2022” or “2018,2019,2020,2021,2022”. Omit for every year the domain holds.
limitnumbernoMax observations to return (default 100, max 2000).

Example call

Arguments

{
  "domain_code": "QCL",
  "area": "231",
  "element": "5510",
  "item": "15",
  "year": "2022"
}

curl

curl -X POST https://gateway.pipeworx.io/faostat/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"faostat_data","arguments":{"domain_code":"QCL","area":"231","element":"5510","item":"15","year":"2022"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('faostat_data', {
  "domain_code": "QCL",
  "area": "231",
  "element": "5510",
  "item": "15",
  "year": "2022"
});

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "faostat": {
      "url": "https://gateway.pipeworx.io/faostat/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build September 18, 2026