FAOSTAT MCP
PYPI · FAOSTAT-MCP
FAOSTAT data for 245 countries: crops, trade, food security, and emissions via 23 MCP tools.
Available components
Last scanned (5 hours ago)
Scores higher than 95% of PyPI servers
Category Data and Analytics
How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score → Why this is hard to score →
Supply Chain Security100
- No malware found by supply-chain analysis.Pass
- No known CVEs affecting this package version or its production dependencies.Pass
- Runs setuptools.build_meta at install time, a recognised build step with no custom scripting around it. View diagnostics → Pass
- 0 of 32 dependencies flagged as unhealthy. View diagnostics → Pass
Provenance & Transparency97
- Source repository is publicly reachable at the declared URL. View diagnostics → Pass
- Cryptographically verified build provenance (signed, bound to berba-q/faostat-mcp). View diagnostics → Pass
- Clear OSI-approved license (MIT).Pass
- Actively maintained (last published 33 days ago).Pass
- Disclosure check failed: no security disclosure policy was found in the source repository. See how to fix → Fail
Schema Quality & AI Usability71
- AI-judged instruction clarity (good).Pass
- Tool/resource definitions use about 1785 tokens (~77/item across 23 items; 23 tools + 0 resources), lean.Pass
- Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management100
- No destabilizing schema changes in the last 30 days.Pass
Tool Coverage71
- 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
- 0% of tool parameters carry a description.Fail
- Structured output schemas are declared (100% of tools); any adoption earns full credit.Pass
Tool Safety100
- No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.Pass
- We read all 23 captured tool definition(s), and no name or description among them implies an irreversible operation.Pass
- An AI judge read all 24 captured unit(s) of tool text and found none that tries to manipulate the model reading it.Pass
Capabilities100
- Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.
- 3 Nov 26 +15
- Malware scan: unverified → pass ▲ security
- 2 Nov 26 −15
- Malware scan: pass → unverified ▼ security
- 1 Nov 26 +16
- Malware scan: unverified → pass ▲ security
- Stability: 0.97 → pass security
- 31 Oct 26 −15
- Malware scan: pass → unverified ▼ security
- Package version: 1.2.2 → 1.3.0 functional
- 30 Oct 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 90 to 93. That category is still filling its 30-day observation window: 27 days of observed history at the previous scan, 28 at this one. The score rises as the window fills, whether or not the server changes.
- 29 Oct 26 +15
- Malware scan: unverified → pass ▲ security
- 28 Oct 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 83 to 87. That category is still filling its 30-day observation window: 25 days of observed history at the previous scan, 26 at this one. The score rises as the window fills, whether or not the server changes.
- 25 Oct 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 73 to 77. That category is still filling its 30-day observation window: 22 days of observed history at the previous scan, 23 at this one. The score rises as the window fills, whether or not the server changes.
Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.
Captured 5 Nov 2026 · Analysed pypi/faostat-mcp@1.3.0
Provenance Verified
A signed build attestation was found and verified, binding this exact artifact to the source repository it claims to come from.
| Result | Verified |
|---|---|
| Ecosystem | pypi |
| Reason | Verified |
| Discovered via | Registry attestation endpoint |
| Source repo | berba-q/faostat-mcp |
| Certificate issuer | https://token.actions.githubusercontent.com |
| Certificate SAN | https://github.com/berba-q/faostat-mcp/.github/workflows/release-please.yml@refs/heads/main |
| Rekor log index | 3059604104 |
| Predicate type | PyPI publish attestation https://docs.pypi.org/attestations/publish/v1 |
| Subject digest | sha256:348809b6aeab8355a455a5b6e1d63bc9abab86f80a924704fdb5a54e16eaac7a |
Background: How many MCP packages publish verified provenance →
Install scripts 1 script
| Hook | Tier | Command |
|---|---|---|
| build_backend | allowlisted | setuptools.build_meta |
Background: Why install scripts are a supply-chain risk →
Dependencies 32 packages
| Packages resolved | 32 |
|---|---|
| Tree resolution | Complete |
Background: SBOMs and build attestations, explained →
The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability. A tool's description is untrusted text the model reads on every call, which is what makes this list a security surface and not just an inventory: how tool poisoning works →
faostat_definition_types ~48
List all available definition types (used with faostat_get_definition_type for FAO-wide definitions, or faostat_get_definitions_by_type within one domain).
| Name | Type | Req | Description |
|---|---|---|---|
| lang | string | – | – |
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
faostat_get_codes ~84
Browse domain FILTER codes. Prefer faostat_search_codes for named lookups. Element filter codes differ from display codes (QCL: Production filter 2510, display 5510). limit=0 returns all codes.
| Name | Type | Req | Description |
|---|---|---|---|
| dimension_id | string | yes | – |
| domain_code | string | yes | – |
| lang | string | – | – |
| limit | integer | – | – |
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
faostat_get_data ~205
Fetch domain data. Resolve filter codes with faostat_search_codes first. Element FILTER codes differ from display codes (QCL Production: filter 2510, display 5510). Filter large queries by area/item/year; check datasize when unsure. Prefer response_format="compact" and fields to save tokens; objects and csv are supported. limit=50; 0 returns all rows. Preserve units when selecting fields.
| Name | Type | Req | Description |
|---|---|---|---|
| area | – | – | – |
| area_cs | – | – | – |
| domain_code | string | yes | – |
| element | – | – | – |
| element_cs | – | – | – |
| fields | – | – | – |
| item | – | – | – |
| item_cs | – | – | – |
| lang | string | – | – |
| limit | integer | – | – |
| null_values | boolean | – | – |
| response_format | string | – | – |
| show_codes | boolean | – | – |
| show_flags | boolean | – | – |
| show_unit | boolean | – | – |
| year | – | – | – |
| year_cs | – | – | – |
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
faostat_get_datasize ~112
Estimate the number of rows a data query will return BEFORE fetching. Use this to check if a query is too large before calling faostat_get_data. Accepts the same filter parameters as faostat_get_data.
| Name | Type | Req | Description |
|---|---|---|---|
| area | – | – | – |
| area_cs | – | – | – |
| domain_code | string | yes | – |
| element | – | – | – |
| element_cs | – | – | – |
| item | – | – | – |
| item_cs | – | – | – |
| lang | string | – | – |
| year | – | – | – |
| year_cs | – | – | – |
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
faostat_get_definition_type ~116
Get FAOSTAT-wide definitions without a domain. Types include areagroup, area, indicator, element, item, unit, flag; use faostat_definition_types for all types. search filters text columns; limit=100, 0 returns all. response_format: compact (default) or objects. Definition codes are not necessarily query filter codes.
| Name | Type | Req | Description |
|---|---|---|---|
| definition_type | string | yes | – |
| lang | string | – | – |
| limit | integer | – | – |
| response_format | string | – | – |
| search | – | – | – |
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
faostat_get_definitions ~43
Get all definitions (descriptions of items, elements, flags) for a domain.
| Name | Type | Req | Description |
|---|---|---|---|
| domain_code | string | yes | – |
| lang | string | – | – |
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
faostat_get_definitions_by_type ~54
Get definitions for a domain filtered by type (e.g. items, elements, flags).
| Name | Type | Req | Description |
|---|---|---|---|
| definition_type | string | yes | – |
| domain_code | string | yes | – |
| lang | string | – | – |
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
faostat_get_dimensions ~57
Get the structure of a domain — what dimensions (filters) are available, such as area (country), item (commodity), element (measure), and year.
| Name | Type | Req | Description |
|---|---|---|---|
| domain_code | string | yes | – |
| lang | string | – | – |
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
faostat_get_metadata ~46
Get full methodology and metadata for a domain — including data sources, collection methods, coverage, and limitations.
| Name | Type | Req | Description |
|---|---|---|---|
| domain_code | string | yes | – |
| lang | string | – | – |
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
faostat_get_metadata_print ~39
Get metadata for a domain in a printable/simplified format.
| Name | Type | Req | Description |
|---|---|---|---|
| domain_code | string | yes | – |
| lang | string | – | – |
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
faostat_get_rankings ~114
Rank countries by a domain item/element/year. element_code is a DISPLAY code (QCL Production: 5510), unlike get_data filter code 2510. limit=10. response_format defaults to compact; objects and csv are supported.
| Name | Type | Req | Description |
|---|---|---|---|
| domain_code | string | yes | – |
| element_code | string | yes | – |
| item_code | string | yes | – |
| lang | string | – | – |
| limit | integer | – | – |
| response_format | string | – | – |
| year | string | yes | – |
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
faostat_get_report_data ~34
Get structured report data from FAOSTAT.
| Name | Type | Req | Description |
|---|---|---|---|
| lang | string | – | – |
| payload | object | yes | – |
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
faostat_get_report_headers ~38
Get the column headers/schema for a report before fetching its data.
| Name | Type | Req | Description |
|---|---|---|---|
| lang | string | – | – |
| payload | object | yes | – |
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
faostat_groups_and_domains ~44
Get the full hierarchical tree of all FAOSTAT groups and their domains. Use this for a complete overview of all available datasets.
| Name | Type | Req | Description |
|---|---|---|---|
| lang | string | – | – |
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
faostat_list_bulk_downloads ~53
List available bulk download files for a domain (ZIP/CSV archives). These contain the full domain dataset and can be very large.
| Name | Type | Req | Description |
|---|---|---|---|
| domain_code | string | yes | – |
| lang | string | – | – |
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
faostat_list_documents ~39
List related documents (methodology papers, questionnaires) for a domain.
| Name | Type | Req | Description |
|---|---|---|---|
| domain_code | string | yes | – |
| lang | string | – | – |
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
faostat_list_domains ~38
List all datasets (domains) within a FAOSTAT group.
| Name | Type | Req | Description |
|---|---|---|---|
| group_code | string | yes | – |
| lang | string | – | – |
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
faostat_list_groups ~48
List all top-level FAOSTAT data groups (e.g. Production, Trade, Food Security). Use this to discover what categories of data are available.
| Name | Type | Req | Description |
|---|---|---|---|
| lang | string | – | – |
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
faostat_ping ~29
Check the FAOSTAT API health status. Returns a status message indicating if the API is online.
Input schema present but exposes no named parameters.
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
faostat_refresh_token ~20
Force-refresh the FAOSTAT API authentication token.
Input schema present but exposes no named parameters.
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
faostat_resolve_name ~125
Find FAOSTAT definitions by name when the domain is unknown. kind: region, country, indicator (includes elements/items). definition_code identifies a definition, NOT a domain query filter; use faostat_search_codes for query codes. Exact matches are defined; partial matches require confirmation. no_matching_definition means this lookup found no match, not proof FAO never defines the concept. Narrow truncated matches. Custom constructions require explicit user request and a non-FAO label.
| Name | Type | Req | Description |
|---|---|---|---|
| kind | string | yes | – |
| lang | string | – | – |
| name | string | yes | – |
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
faostat_search_codes ~94
Find domain FILTER codes by name (case-insensitive substring). Use before querying unknown codes. A unique match is usable; multiple matches require user selection. Default limit=25; narrow the query when truncated. query must be nonblank.
| Name | Type | Req | Description |
|---|---|---|---|
| dimension_id | string | yes | – |
| domain_code | string | yes | – |
| lang | string | – | – |
| limit | integer | – | – |
| query | string | yes | – |
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
faostat_setup ~65
Validate and persist FAOSTAT credentials for automatic authentication across sessions. username is the account email. Saves to the system keychain when available and ~/.config/faostat-mcp/credentials.json (mode 600).
| Name | Type | Req | Description |
|---|---|---|---|
| password | string | yes | – |
| username | string | yes | – |
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
How do I install the FAOSTAT MCP server?
FAOSTAT MCP runs locally as a PyPI package, launched with uvx faostat-mcp. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.
pypi · faostat-mcp
claude mcp add berba-q-faostat-mcp -- uvx faostat-mcp
What is the FAOSTAT MCP server?
FAOSTAT MCP is listed in the public MCP registry as io.github.berba-q/faostat-mcp. FAOSTAT data for 245 countries: crops, trade, food security, and emissions via 23 MCP tools. This page covers its PyPI package (faostat-mcp).
Is the FAOSTAT MCP server safe to use?
FAOSTAT MCP scores 92 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 5 November 2026. Its build provenance is signed and verified. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.
What tools does the FAOSTAT MCP server expose?
FAOSTAT MCP exposes 23 tools: faostat_ping, faostat_refresh_token, faostat_setup, faostat_list_groups, faostat_groups_and_domains, and 18 more. Their descriptions and schemas cost roughly 1,545 tokens of context every time the server is loaded.
Is the FAOSTAT MCP server still maintained?
FAOSTAT MCP is still listed as active in the MCP registry. We last reached this channel on 5 November 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.
What licence is the FAOSTAT MCP server under?
FAOSTAT MCP declares the MIT licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.