@pipeworx/faostat
Connect: https://gateway.pipeworx.io/faostat/mcp · Install: one-click buttons
No MCP client? Skip the connection: POST https://gateway.pipeworx.io/v1/tools/search_packs {"query":"..."} to find a tool below, GET /v1/tools/<name> for its schema, POST the same URL with arguments for the data — see For AI agents.
Tools: 3
UN Food and Agriculture Organization statistics — crop and livestock production, food balance sheets, agricultural trade, land and input use, farm emissions, food security and producer prices, for 245 countries and territories since 1961.
Tools
faostat_domains(search?, domain_code?, limit?)— the 69 statistical domains, with last-updated date and observation count. Gives you the domain code.faostat_dimensions(domain_code, dimension, search?, limit?)— the valid area / element / item / year codes for a domain. Call this before the next one.faostat_data(domain_code, area?, element?, item?, year?, limit?)— the observations, with unit, year and data-quality flag.
Auth
Keyless.
Data sources
- https://bulks-faostat.fao.org/production/datasets_E.json — the domain
catalogue. Carries
DateUpdateandFileRows, which the query API does not. - https://fenixservices.fao.org/faostat/api/v1/en/definitions/domain/{domain}/{dimension} — dimension code lists.
- https://fenixservices.fao.org/faostat/api/v1/en/data/{domain} — observations.
Things worth knowing:
- Two hosts, and they fail independently.
fenixservices(the query API) was returning Cloudflare 521 on every path, then timing out, through 2026-09-17 22:00–23:00 UTC while this pack was built;bulks-faostatwas unaffected throughout. The pack surfaces that as a named upstream outage — an empty array here would read as “this country grows nothing”. faostatservices.fao.orgis a different host and answers401 Missing Authorization Header. It is not a drop-in substitute.bulks-faostat.fao.orgserves the catalogue JSON but 403s on per-domain paths such as/production/QCL/QCL_AreaCodes_E.json; only the documented catalogue and the zip bulk files are readable.- FAOSTAT codes are numeric and domain-specific. A wrong item code returns
an empty result, not an error, which is why
faostat_dimensionsexists and whyfaostat_datasays so explicitly on a zero-row answer. - Not the
codex-mrlpack — that also reads fao.org but serves Codex Alimentarius maximum residue limits.
Verified
2026-09-17 — faostat_domains returned all 69 domains with update dates and row
counts. faostat_dimensions and faostat_data could not be verified: the FAO
query host was down for the whole build window (see above).
Tools
- faostat_domains — The 69 statistical domains FAOSTAT publishes, with what each covers, when it was last updated and how many observations it holds. AUTHORITATIVE starting point for any question about world agriculture,
- faostat_dimensions — The valid codes for one dimension of one FAOSTAT domain — the country/area codes, element codes (production quantity, area harvested, yield, import value, …), item codes (wheat, cattle, nitrogen fer
- faostat_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, fe
Tools
faostat_data— Observations from a FAOSTAT domain — the actual numbers, with units, year and data-quality flag. AUTHORITATIVE for how much <crop> did <country> produce in <year> , world agricultural trade flows, ferfaostat_dimensions— The valid codes for one dimension of one FAOSTAT domain — the country/area codes, element codes (production quantity, area harvested, yield, import value, ...), item codes (wheat, cattle, nitrogen ferfaostat_domains— The 69 statistical domains FAOSTAT publishes, with what each covers, when it was last updated and how many observations it holds. AUTHORITATIVE starting point for any question about world agriculture,