Skip to main content
Glama

Server Details

UN FAOSTAT global food & agriculture statistics over a local SQLite mirror, via MCP.

If you are the author of this connector, you can claim ownership. Claimed connector authors can inspect health checks, view analytics, and manage their listing.
Status
Healthy
Uptime
100.0% over the last 24 hours
Last Tested
Transport
Streamable HTTP · MCP 2025-11-25
URL
Repository
cyanheads/faostat-mcp-server
GitHub Stars
3
Server Listing
@cyanheads/faostat-mcp-server
ChatGPT
–
Claude
–

TDQS

A4.2/5.0

Scored across 6 tools

Disambiguation4/5

The six tools split cleanly along discover → resolve → query → analyze lines, and descriptions explicitly state which entry point to use. The only real overlap is between faostat_commodity_profile (a fixed composite for one item) and faostat_query_observations (arbitrary cube query); an agent could plausibly reach for the wrong one, though the profile tool's contract is narrow enough to disambiguate.

Naming Consistency3/5

All names share the faostat_ prefix and snake_case, but the verb convention is split: list_domains, resolve_codes and query_observations are verb-first, while dataframe_describe and dataframe_query use a resource-first grouping prefix, and commodity_profile has no verb at all. Readable, but not the predictable verb_noun pattern throughout.

Tool Count5/5

Six tools is tightly scoped for a single-domain data server: one discovery tool, one resolver, one query tool, one composite shortcut, and a two-tool SQL layer for spilled results. Nothing looks redundant or speculative.

Completeness4/5

The lifecycle is covered end to end: find domains, resolve codes, query observations, get a canned commodity profile, then inspect and SQL over staged canvas tables. Gaps are minor — no export/save of query results, no tool to trigger an index sync for un-indexed domains (the description defers to an env var), and no direct element-catalog listing outside resolve_codes or an empty query.

Available Tools

6 tools
faostat_commodity_profilefaostat-mcp-server: commodity profileA
Read-only
Inspect

Assemble a global profile for one QCL item in a single call: top-producing countries, the annual trend, and trade flows (top exporters and importers). The elements follow what the item carries: Production (5510) and tonne trade quantities (5610/5910) for an item with Production; for live-animal items, which have none, their Stocks elements and every trade quantity element they carry. ranking_elements names each ranking's elements and units. Supply item_code or item_query; code wins when both are supplied. For a crop traded mostly in processed form, trade_item_code ranks the exporters and importers on that TCL item instead (rice milled equivalent 30 for paddy rice 27), with the elements still picked from the selected item. A query selects a unique normalized exact label, otherwise a unique relevance match; ambiguous queries require an explicit code. Each ranking uses the selected item at each country's own latest year with data, grouped by unit. The trend is returned inline as year/value points. Country-level only (aggregates excluded). QCL is required; unavailable TCL yields a profile without trade, with a notice. When the merged observation set is too large to inline, it spills to a DataCanvas table (canvas_id + table_name) — call faostat_dataframe_describe for its columns, then faostat_dataframe_query for deeper SQL.

Inputs: top_n, year_end, canvas_id, item_code, +3 more. Returns: error, notice, spilled, canvas_id, +17 more

faostat_dataframe_describefaostat-mcp-server: dataframe describeA
Read-onlyIdempotent
Inspect

List the canvas tables (faostat_xxxxxxxx) staged by faostat_query_observations and faostat_commodity_profile, each with its source tool, the query parameters that produced it, creation/expiry timestamps, row count, and column schema. Call this before faostat_dataframe_query to discover the exact table and column names to reference in SQL. Tables are listed newest-first and paged: pass name to describe one table outright, or page with offset + limit — when the response reports truncated, pass the returned nextOffset to fetch the rest.

Inputs: name, limit, offset, canvas_id. Returns: error, notice, tables, truncated, +4 more

faostat_dataframe_queryfaostat-mcp-server: dataframe queryA
Read-onlyIdempotent
Inspect

Run a single-statement SELECT against canvas tables staged by faostat_query_observations and faostat_commodity_profile (faostat_xxxxxxxx). Use DuckDB joins, aggregates, window functions, and CTEs for rankings and time-series analysis. Item groups can overlap their members even with matching units; do not sum them together, and resolver kind=null does not establish safe-to-sum. Separate source methodologies and respect bounded values and multi-year periods. Read-only: writes, DDL, DROP, COPY, PRAGMA, ATTACH, and external-file functions are rejected; system catalogs are denied. List tables and columns with faostat_dataframe_describe. Preserve data-quality flags in projections: commonly A=Official, B=time-series break, E=Estimated, I=Imputed, M=Missing, T=Unofficial, X=international organization; unrecognized flags never establish official status.

Inputs: sql (required), canvas_id, row_limit. Returns: rows, error, notice, columns, +4 more

faostat_list_domainsfaostat-mcp-server: list domainsA
Read-onlyIdempotent
Inspect

Discover FAOSTAT statistical domains (production, trade, food balances, food security, land use, agri-emissions, prices, value) with their codes, descriptions, last-update date, upstream row count, and local index status. Every query keys on a domain code from here. The indexed flag tells you which domains are queryable right now; un-indexed domains exist in the catalog but must be added to FAOSTAT_DOMAINS and re-synced before faostat_query_observations can read them. The catalog runs to ~69 domains with long descriptions, so responses are paged: narrow with topic / indexed_only, pass code to fetch one domain outright, or page with offset + limit — when the response reports truncated, pass the returned nextOffset to fetch the rest.

Inputs: code, limit, topic, offset, +1 more. Returns: error, notice, domains, truncated, +6 more

faostat_query_observationsfaostat-mcp-server: query observationsA
Read-only
Inspect

Query a FAOSTAT domain's data cube by area(s), item(s), element(s), sources, and year range, returning values with units and data-quality flags. Resolve numeric codes or exact alphanumeric item identities with faostat_resolve_codes; element resolution accepts item selectors and returns units. Empty queries with explicit items and elements list available elements for those items across the domain, without establishing area/year/source coverage. Aggregate regions are excluded by default; include_aggregates=true returns roll-ups, and explicit area_codes are honored verbatim. Item groups can overlap their members even with matching units; they remain included, and kind=null does not establish safe-to-sum. Keep source methodologies separate. Returns up to limit rows from offset, in year order; pass nextOffset back as offset for the next page, up to offset 100000, and partition a larger match by year or codes. With DataCanvas on, a first page (offset 0) whose match exceeds limit also stages the whole match to a DataCanvas table (canvas_id + table_name); call faostat_dataframe_describe for its columns, then faostat_dataframe_query for SQL over every row. Honor every row's flag: commonly A=Official, B=time-series break, E=Estimated, I=Imputed, M=Missing, T=Unofficial, X=international organization; unrecognized flags never establish official status.

Inputs: domain (required), limit, offset, year_end, +8 more. Returns: error, domain, notice, spilled, +11 more

faostat_resolve_codesfaostat-mcp-server: resolve codesA
Read-onlyIdempotent
Inspect

Resolve labels to the numeric codes or exact alphanumeric item identities faostat_query_observations needs: areas (countries/regions), items (commodities), and elements (metrics). Use query for full-text matching, name_contains for substring matching, code or code_text for exact identity, m49_code to find areas by M49 code, or omit them to list. Item and element matches occur in the selected domain; areas use shared vocabulary. For elements, optionally pass item_codes or item_codes_text to discover metrics and distinct units observed for those items; this does not establish area/year/source coverage. Empty item selectors match nothing. Page with offset and limit using nextOffset when truncated. Areas carry country/aggregate classification and the M49 code FAO publishes for each, a standard key for joining other sources. Verified domain-specific item groups carry aggregate; null means unclassified, not safe-to-sum. Item groups can overlap their members even with matching units. Area aggregates include codes ≥ 5000 and curated roll-ups such as China=351; exclude overlapping regional and country rows when summing.

Inputs: domain (required), dimension (required), code, limit, +7 more. Returns: error, domain, notice, matches, +6 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server that exposes SQLite datasets as queryable tools and resources via Streamable HTTP, enabling read-only exploration and SQL queries.
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables querying UNHCR refugee, IDP, stateless populations, asylum decisions, returns, and resettlement statistics via MCP, including staging large datasets for SQL queries. Supports stdio or Streamable HTTP transports.
      119 npm
      1
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides an MCP server for querying and managing Monarch Money personal finance data through a local SQLite mirror with read-only SQL access. It enables users to sync transaction history from the Monarch API and analyze accounts, categories, and tags.
      1
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Custom MCP server connected to a read-only SQLite database, exposing a schema resource and a query tool for safe data retrieval.
      -
    Try in Browser

    Glama MCP Gateway

    Add one secure layer between your agents and this server.