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
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain_code | string | yes | FAOSTAT domain code, e.g. “QCL”. From faostat_domains. |
area | string | no | One or more FAOSTAT area codes, comma-separated, e.g. “231” or “231,68,100”. From faostat_dimensions dimension “area”. |
element | string | no | One or more element codes, comma-separated, e.g. “5510” (production quantity). From faostat_dimensions dimension “element”. |
item | string | no | One or more item codes, comma-separated, e.g. “15” (wheat). From faostat_dimensions dimension “item”. |
year | string | no | One or more years, comma-separated, e.g. “2022” or “2018,2019,2020,2021,2022”. Omit for every year the domain holds. |
limit | number | no | Max 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.