L'Atlas / Serveurs MCP / faostat-mcp-server
Serveur MCP

faostat-mcp-server

io.github.cyanheads/faostat-mcp-server

Serveur MCP OK 6 outils

Faire examiner Voir les tarifs

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

Fiche technique

Auteur
cyanheads (espace de noms du registre)
Dépôt
github.com/cyanheads/faostat-mcp-server
Site
—
Version
0.7.2
Transport
Streamable HTTP stdio
Authentification
Aucune (constatée par notre test)
Adresse du serveur
https://faostat.caseyjhand.com/mcp Streamable HTTP
Paquets
@cyanheads/faostat-mcp-server 0.7.2 npm stdio
@cyanheads/faostat-mcp-server 0.7.2 npm Streamable HTTP
Outils
6
Catégories
Bases de données
Comparatifs
Serveurs MCP pour SQLite
Dernière mise à jour
20 nov. 2026
Publication
20 nov. 2026

Auteur vérifié et popularité

Fiche pas encore revendiquée. C’est votre projet ? Revendiquez-la

Pas « Populaire » pour l’instant Retiré tout seul dès que les critères ne sont plus remplis.

  • Visiteurs distincts de la fiche sur 30 jours : 0 (il en faut 30) pas encore
  • ou configurations d’installation copiées sur 30 jours : 0 (il en faut 5) pas encore
  • et un test réussi de moins de 14 jours : testé le 28 nov. 2026 rempli

Badge à jour tout seul. Toujours « testé le … », jamais « certifié ». Comment ça marche

MarkdownREADME.md
[![Statut sur L’Atlas](https://latlas.dev/badge/statut/mcp/io.github.cyanheads/faostat-mcp-server.svg)](https://latlas.dev/mcp/io.github.cyanheads/faostat-mcp-server)
HTML
<a href="https://latlas.dev/mcp/io.github.cyanheads/faostat-mcp-server"><img src="https://latlas.dev/badge/statut/mcp/io.github.cyanheads/faostat-mcp-server.svg" alt="Statut sur L’Atlas" height="20"></a>

Badge pour votre README

Référencé sur L’Atlas

Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.

MarkdownREADME.md
[![Référencé sur L’Atlas](https://latlas.dev/badge/fiche/io.github.cyanheads/faostat-mcp-server.svg)](https://latlas.dev/mcp/io.github.cyanheads/faostat-mcp-server)
HTML
<a href="https://latlas.dev/mcp/io.github.cyanheads/faostat-mcp-server"><img src="https://latlas.dev/badge/fiche/io.github.cyanheads/faostat-mcp-server.svg" alt="Référencé sur L’Atlas" height="20"></a>

Nos tests

Chaque semaine : initialize puis tools/list, sans identifiant, sans jamais appeler d’outil. Méthode

Adresse
https://faostat.caseyjhand.com/mcp
Dernier résultat
OK 28 nov. 2026, 11:34
Temps de réponse
1 004 ms (initialize + tools/list)
Version du protocole
2025-11-25
Nom annoncé
faostat-mcp-server 0.7.2
Outils
6

Historique

DateRésultatRéponseOutils
28 nov. 2026, 11:34OK1 004 ms6

Outils exposés (6, réponse à tools/list, 28 nov. 2026)

faostat_list_domains

faostat-mcp-server: list domains

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.

ParamètreTypeRequisDescription
codestringnonExact domain code lookup (e.g. "RL"), case-insensitive. Returns that one domain's full record on a single page. Takes precedence over `topic` / `indexed_only` when provided.
topicstringnonCase-insensitive substring filter over domain code, name, and topic (e.g. "trade", "emissions", "QCL"). Omit to list the full catalog.
indexed_onlybooleannonWhen true, return only domains indexed in the local mirror (queryable now).
limitintegernonDomains to return on this page, at most 200 per call — above the catalog size, so raise it to fetch everything at once. Domain descriptions are long; the default keeps a browse call small.
offsetintegernonZero-based pagination offset into the matching domains (code-sorted). When the response reports truncated, pass the returned nextOffset here to fetch the next page. Ignored for exact-code lookups (always single-page).

faostat_resolve_codes

faostat-mcp-server: resolve codes

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.

ParamètreTypeRequisDescription
domainstringouiFAOSTAT domain code (e.g. "QCL"). Item and element resolution is scoped to the codes present in this domain's data; area code lists are shared across all indexed domains.
dimensionenum: "area" | "item" | "element"ouiWhich dimension to resolve: "area" (countries/regions), "item" (commodities), or "element" (metrics).
querystringnonFull-text search term, FTS5-matched against the dimension labels with prefix matching (e.g. "wheat", "import quantity"). Relevance-ranked. Quotes, parentheses, asterisks, and control characters separate words. Blank or "*" reads as omitted; any other value made only of quotes, parentheses, asterisk…
name_containsstringnonCase-insensitive substring filter over the label. Used only when `query` is omitted.
codeintegernonExact code lookup. Takes precedence over `query`/`name_contains` when provided.
code_textstringnonExact alphanumeric item code; letters are uppercased before lookup, so 210400f reads as 210400F. Only for dimension item; mutually exclusive with code. Numeric identities use code.
m49_codestringnonExact M49 area code: one to three digits, optionally a dot and more digits, such as "840" or "002.03". The integer part is zero-padded to three digits before lookup, so "40" reads as "040". Returns every area carrying the code on one page. Only for dimension area; mutually exclusive with code and c…
item_codesarray<integer>nonFor element resolution only: restrict elements and units to these items. Empty matches nothing; omit for domain-wide elements. Mutually exclusive with item_codes_text.
item_codes_textarray<string>nonFor element resolution only: restrict elements and units to these exact text items, letters uppercased before lookup. Empty matches nothing; mutually exclusive with item_codes.
limitintegernonMatches to return on this page, at most 200 per call.
offsetintegernonZero-based pagination offset into the match set. When the response reports truncated, pass the returned nextOffset here to fetch the next page. Ignored for exact lookups by code, code_text, or m49_code (always single-page).

faostat_query_observations

faostat-mcp-server: query observations

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.

ParamètreTypeRequisDescription
domainstringouiFAOSTAT domain code (e.g. "QCL"). Must be indexed locally.
area_codesarray<integer>nonArea codes from faostat_resolve_codes. When set, aggregates are NOT auto-excluded — the codes are honored verbatim.
item_codesarray<integer>nonItem codes from faostat_resolve_codes.
element_codesarray<integer>nonElement codes from faostat_resolve_codes (e.g. 5510 Production).
item_codes_textarray<string>nonExact alphanumeric item identities from resolver code_text; letters are uppercased before the query, so 210400f reads as 210400F. Mutually exclusive with item_codes. Numeric codes use item_codes.
source_codesarray<integer>nonExact source codes, such as 3050 or 3051 in GLE. Omit to return every methodology; choose or group sources before summing.
year_startintegernonInclusive start year (e.g. 2000).
year_endintegernonInclusive end year (e.g. 2022).
include_aggregatesbooleannonWhen false (default), exclude aggregate-region rows (codes ≥ 5000 plus a few curated sub-threshold roll-ups such as China=351) so sums are not double-counted. Set true for World/continent/grouping roll-ups. Ignored when explicit area_codes are passed.
limitintegernonObservations per page, at most 1000 per call. Rows past the page are never dropped silently: nextOffset continues from them, and with DataCanvas on a first page (offset 0) whose match exceeds limit also stages the whole match to a canvas table (canvas_id + table_name).
offsetintegernonZero-based position of the page’s first row in the match, in year order. Pass the nextOffset a previous call returned to fetch the following page; a page past the first stages nothing. At most 100000, so offset paging reaches the first 100000 rows of a match plus one page; to reach rows past that,…
canvas_idstringnonCanvas ID to stage onto, as returned by a prior faostat_query_observations / faostat_commodity_profile call — exactly 10 characters of letters, digits, hyphens, and underscores. Consulted only when this call stages: a first page whose match exceeds limit, with DataCanvas on. Omit to stage onto this…

faostat_commodity_profile

faostat-mcp-server: commodity profile

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.

ParamètreTypeRequisDescription
item_codeintegernonExact item code present in QCL; takes precedence over item_query. Obtain it from faostat_resolve_codes with domain QCL and dimension item.
item_querystringnonCommodity label or search term (e.g. "Wheat"). A unique normalized exact QCL label wins, with ";" and "," compared as one character ("Peas, dry" selects "Peas; dry"); otherwise the relevance search must match exactly one item. Broad queries such as "maize" or "milk" require item_code. Whitespace-on…
trade_item_codeintegernonTCL item code to rank top_exporters and top_importers on instead of the selected item, for a commodity traded mostly in processed form (QCL holds paddy rice 27; its trade sits in 30, rice milled equivalent). The staged TCL rows follow it; producers and the trend stay on the selected item, and the t…
year_startintegernonInclusive start year (e.g. 1990) for the rankings, the trend, and the staged rows. An area with no data from this year on drops out of the rankings; set it to a ranking's latest year to keep only current rows.
year_endintegernonInclusive end year (e.g. 2022) for the rankings, the trend, and the staged rows; each area then ranks at its latest year up to this one.
top_nintegernonRows in each ranking (top producers, exporters, importers), at most 50 per call.
canvas_idstringnonCanvas ID to stage onto, as returned by a prior faostat_query_observations / faostat_commodity_profile call — exactly 10 characters of letters, digits, hyphens, and underscores. Omit to stage onto this session’s canvas, created on the first spill and reused by every later call, so tables staged ear…

faostat_dataframe_query

faostat-mcp-server: dataframe query

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.

ParamètreTypeRequisDescription
canvas_idstringnonOptional canvas ID as returned by a prior faostat_query_observations / faostat_commodity_profile call — exactly 10 characters of letters, digits, hyphens, and underscores. Omit to query the tables staged in this session (the common case).
sqlstringouiSingle-statement read-only SELECT against staged faostat_ tables. Columns: area_code, area, item_code, item, element_code, element, year, unit, value, flag, item_code_text, period, value_qualifier, source_code, source, area_m49 — plus domain (QCL or TCL) on tables staged by faostat_commodity_profil…
row_limitintegernonHard cap on rows in the response, at most 10000 per call.

faostat_dataframe_describe

faostat-mcp-server: dataframe describe

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.

ParamètreTypeRequisDescription
canvas_idstringnonOptional canvas ID as returned by a prior faostat_query_observations / faostat_commodity_profile call — exactly 10 characters of letters, digits, hyphens, and underscores. Omit to list the tables staged in this session (the common case).
namestringnonOptional table name (faostat_xxxxxxxx) to describe a single staged table. Takes precedence over `offset` / `limit`, which are ignored for a name lookup (always single-page).
limitintegernonStaged tables to return on this page, at most 100 per call. Each entry carries a full column schema, so the default keeps a discovery call small.
offsetintegernonZero-based pagination offset into the staged tables (newest first). When the response reports truncated, pass the returned nextOffset here to fetch the next page. Ignored for `name` lookups.

Compatibilité clients

Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.

ClientTransports documentésCe serveurSource
Claude Codestdio Streamable HTTP SSEtransport acceptédoc
Claude (claude.ai, Claude Desktop, Cowork)stdio Streamable HTTP SSEtransport acceptédoc
ChatGPT (serveurs MCP personnalisés / plugins)Streamable HTTP SSEtransport acceptédoc
Cursorstdio Streamable HTTP SSEtransport acceptédoc
VS Code (GitHub Copilot)stdio Streamable HTTP SSEtransport acceptédoc
Windsurf (documentation redirigée vers Devin Local / Devin CLI)stdio Streamable HTTP SSEtransport acceptédoc
Gemini CLIstdio Streamable HTTP SSEtransport acceptédoc
OpenAI Codex (CLI, extension IDE, app)stdio Streamable HTTPtransport acceptédoc

Configs prêtes à copier

Adresse distante utilisée : https://faostat.caseyjhand.com/mcp. Formats repris de la documentation de chaque client.

Claude Code
claude mcp add --transport http faostat-mcp-server https://faostat.caseyjhand.com/mcp
Claude (claude.ai, Claude Desktop, Cowork)
Customize > Connectors > + Add > Add custom connector ; Name : faostat-mcp-server ; URL : https://faostat.caseyjhand.com/mcp
ChatGPT (serveurs MCP personnalisés / plugins)
chatgpt.com/plugins > + > Add custom MCP server ; Name : faostat-mcp-server ; Server URL : https://faostat.caseyjhand.com/mcp ; Create as a plugin
Cursor.cursor/mcp.json (projet) ou ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "faostat-mcp-server": {
      "url": "https://faostat.caseyjhand.com/mcp"
    }
  }
}
VS Code (GitHub Copilot).mcp.json à la racine du workspace, ou ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json)
{
  "mcpServers": {
    "faostat-mcp-server": {
      "type": "http",
      "url": "https://faostat.caseyjhand.com/mcp",
      "tools": ["*"]
    }
  }
}
Windsurf (documentation redirigée vers Devin Local / Devin CLI).devin/mcp_config.json (projet), .devin/mcp_config.local.json (local), ~/.config/devin/mcp_config.json (utilisateur)
{
  "mcpServers": {
    "faostat-mcp-server": {
      "url": "https://faostat.caseyjhand.com/mcp"
    }
  }
}
Gemini CLI~/.gemini/settings.json (utilisateur) ou .gemini/settings.json (projet)
{
  "mcpServers": {
    "faostat-mcp-server": {
      "httpUrl": "https://faostat.caseyjhand.com/mcp"
    }
  }
}
OpenAI Codex (CLI, extension IDE, app)~/.codex/config.toml (ou .codex/config.toml pour un projet de confiance)
[mcp_servers.faostat-mcp-server]
url = "https://faostat.caseyjhand.com/mcp"

Citer cette source

Vous rédigez un article ou un comparatif ? Cette fiche distingue les informations du registre et nos mesures. Citez le lien permanent et la date du test ; un résultat OK ne constitue pas un audit de sécurité ni une garantie de disponibilité.

faostat-mcp-server · L’Atlas · Test du

Markdown
[faostat-mcp-server — L’Atlas](https://latlas.dev/mcp/io.github.cyanheads/faostat-mcp-server)
Méthode et limites des tests

Source : Registre officiel MCP · relevé le 2 déc. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.