cyanheads avatar

faostat-mcp-server

cyanheads/faostat-mcp-server

If you've ever wanted an LLM to answer questions about world food production, trade, or land use without scraping the FAOSTAT site, this one is worth a look. It ships a local SQLite mirror of the UN FAOSTAT bulk downloads, so queries run against indexed data rather than hitting upstream each time. The tools cover domain discovery, resolving country and commodity codes, querying observations by area, item, element, and year, and a one-call commodity profile that pulls top producers, trade flows, and a production trend. Larger result sets get staged into a SQL-queryable canvas, so you can run read-only SELECTs over them. It runs over stdio or Streamable HTTP, and there's a public hosted instance if you just want to try it.

tools
7
transport
HTTP
last updated
Jul 10, 2026

Tools

7 tools

Public tool metadata for what this MCP can expose to an agent.

faostat_list_domainsDiscover FAOSTAT statistical domains with codes, descriptions, last-update date, upstream row count, and local index status.

Discover FAOSTAT statistical domains with codes, descriptions, last-update date, upstream row count, and local index status.

No parameter schema in public metadata yet.

faostat_resolve_codesResolve human terms to the codes a query needs (areas, items, elements), flagging each area as a country or an aggregate region.

Resolve human terms to the codes a query needs (areas, items, elements), flagging each area as a country or an aggregate region.

No parameter schema in public metadata yet.

faostat_query_observationsQuery a domain's cube by area(s), item(s), element(s), and year range. Inline preview for small results; large sets spill to a DataCanvas table.

Query a domain's cube by area(s), item(s), element(s), and year range. Inline preview for small results; large sets spill to a DataCanvas table.

No parameter schema in public metadata yet.

faostat_commodity_profileWorkflow: assemble top producers, the production trend, and trade flows for one commodity from the production and trade domains in a single call.

Workflow: assemble top producers, the production trend, and trade flows for one commodity from the production and trade domains in a single call.

No parameter schema in public metadata yet.

faostat_dataframe_queryRun a read-only SQL SELECT against the canvas tables staged by the analytical tools.

Run a read-only SQL SELECT against the canvas tables staged by the analytical tools.

No parameter schema in public metadata yet.

faostat_dataframe_describeList the canvas tables staged this session, each with provenance, row count, and column schema.

List the canvas tables staged this session, each with provenance, row count, and column schema.

No parameter schema in public metadata yet.

faostat_dataframe_dropDrop one staged canvas table before its 2-hour TTL. Opt-in — callable only with FAOSTAT_DATAFRAME_DROP_ENABLED=true.

Drop one staged canvas table before its 2-hour TTL. Opt-in — callable only with FAOSTAT_DATAFRAME_DROP_ENABLED=true.

No parameter schema in public metadata yet.

Sponsors

Readme

@cyanheads/faostat-mcp-server

Global food & agriculture statistics from the UN FAOSTAT bulk-download corpus, served from a local SQLite mirror with a DataCanvas SQL surface, via MCP. STDIO or Streamable HTTP.

7 Tools • 1 Skill Resource • 0 Prompts

Details

Repository
github.com/cyanheads/faostat-mcp-server
Website
faostat.caseyjhand.com/mcp
Category
Databases
Transport
HTTP

More from cyanheads

Related Databases MCP servers

View all
1daedalus avatarMcp Server Mssqldaedalus/mcp-server-mssqlMCP server for Microsoft SQL Server using mssql-python0stars
2dbsectrainer avatarMcp Data Pipeline Connectordbsectrainer/mcp-data-pipeline-connectorUniversal data connector for CSV, Postgres, and REST APIs via DuckDB0stars
3instanode-dev avatarMcpinstanode-dev/mcpProvision Postgres databases + webhooks from AI coding agents in one HTTP call.0stars
4infoinlet-marketplace avatarMcp Datainfoinlet-marketplace/marketplaceTabular data for AI agents — load CSV/JSON/XLSX, query, group-by, stats (no database).0stars
5sirarchiemccarthy-oss avatarAgentBuilderssirarchiemccarthy-oss/clawdDeploy full-stack web apps with database, file storage, auth, and RBAC via a single API call.0stars
6kalehdoo avatarWarehouse Mcpkalehdoo/warehouse-mcpProduction MCP server for Postgres, Oracle, Snowflake, BigQuery, Redshift, DuckDB, MotherDuck.0stars