faostat-mcp-server
UN FAOSTAT global food & agriculture statistics over a local SQLite mirror, via MCP.
What this server provides
UN FAOSTAT global food & agriculture statistics over a local SQLite mirror, via MCP.
Remote endpoints
https://faostat.caseyjhand.com/mcpPackages
npxTransport stdio- FAOSTAT_DOMAINSOptional
Comma-separated FAOSTAT domain codes to index into the local mirror.
Format: string · Default: QCL,TCL,FBS,FS,RL,GLE,RFN,QV - FAOSTAT_MIRROR_PATHOptional
Directory holding the per-domain SQLite mirror databases and the shared dimension database.
Format: string · Default: ./.faostat-mirror - FAOSTAT_BULK_BASE_URLOptional
FAOSTAT bulk-download service base URL (manifest + per-domain ZIPs).
Format: string · Default: https://bulks-faostat.fao.org/production - CANVAS_PROVIDER_TYPEOptional
Set to 'duckdb' to enable the DataCanvas SQL surface (default), or 'none' to disable analytical staging.
Format: string · Default: duckdb - FAOSTAT_DATAFRAME_DROP_ENABLEDOptional
Set to 'true' to make faostat_dataframe_drop callable, so a staged table can be dropped before its 2-hour TTL. Off by default: the tool is registered disabled.
Format: boolean · Default: false - MCP_LOG_LEVELOptional
Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').
Format: string · Default: info
npxTransport streamable-httphttp://localhost:3010/mcp- MCP_HTTP_HOSTOptional
The hostname for the HTTP server.
Format: string · Default: 127.0.0.1 - MCP_HTTP_PORTOptional
The port to run the HTTP server on.
Format: string · Default: 3010 - MCP_HTTP_ENDPOINT_PATHOptional
The endpoint path for the MCP server.
Format: string · Default: /mcp - MCP_AUTH_MODEOptional
Authentication mode to use: 'none', 'jwt', or 'oauth'.
Format: string · Default: none - FAOSTAT_DOMAINSOptional
Comma-separated FAOSTAT domain codes to index into the local mirror.
Format: string · Default: QCL,TCL,FBS,FS,RL,GLE,RFN,QV - FAOSTAT_MIRROR_PATHOptional
Directory holding the per-domain SQLite mirror databases and the shared dimension database.
Format: string · Default: ./.faostat-mirror - FAOSTAT_BULK_BASE_URLOptional
FAOSTAT bulk-download service base URL (manifest + per-domain ZIPs).
Format: string · Default: https://bulks-faostat.fao.org/production - FAOSTAT_REFRESH_CRONOptional
Cron expression for the in-process incremental mirror refresh (HTTP transport only). Omit to disable.
Format: string - CANVAS_PROVIDER_TYPEOptional
Set to 'duckdb' to enable the DataCanvas SQL surface (default), or 'none' to disable analytical staging.
Format: string · Default: duckdb - FAOSTAT_DATAFRAME_DROP_ENABLEDOptional
Set to 'true' to make faostat_dataframe_drop callable, so a staged table can be dropped before its 2-hour TTL. Off by default: the tool is registered disabled.
Format: boolean · Default: false - MCP_LOG_LEVELOptional
Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').
Format: string · Default: info