MCP server exposing 3 tools for faostat.
This URL is a JSON-RPC 2.0 endpoint over HTTP. Issue POST requests with a JSON-RPC body. Browsers and search crawlers land here on GET.
POST https://gateway.pipeworx.io/faostat/mcp
Content-Type: application/json
{"jsonrpc":"2.0","id":1,"method":"tools/list"}
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, food production, food security, agricultural trade, land use or farm emissions — FAOSTAT is the UN Food and Agriculture Organization's own statistics service and the reference series for these subjects. Returns the domain code (e.g. "QCL" crops and livestock production, "FBS" food balance sheets, "TCL" crops and livestock trade, "RFN" fertilisers by nutrient, "GT" agri-environmental emissions) that faostat_dimensions and faostat_data need. Search for "production", "trade", "emissions", "food security", "prices", "land".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 fertiliser, ...) or years a domain actually carries. Call this BEFORE faostat_data: FAOSTAT codes are numeric and domain-specific, so guessing them returns nothing rather than an error. Example: domain "QCL" dimension "element" lists production quantity (5510), area harvested (5312) and yield (5412); domain "QCL" dimension "item" lists the 278 crops and livestock products.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, 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".Code samples (curl / TypeScript / one-click client install), schemas, and the live playground are on the pack page:
https://pipeworx.io/packs/faostat/
Pipeworx is an open MCP gateway connecting AI agents to live data. pipeworx.io