MCP directory
FM

Faostat Mcp Server

by github.com/cyanheads · v0.7.2 · updated Nov 20, 2026

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

Remotenpm

Connect to the hosted server

Add this URL as a custom connector in your AI client.

Server URL

https://faostat.caseyjhand.com/mcp

Claude Code

claude mcp add --transport http faostat-mcp-server https://faostat.caseyjhand.com/mcp

Run it locally

Install the package and point your AI client at it.

npm

npx -y @cyanheads/[email protected]

Environment variables

  • FAOSTAT_DOMAINS

    Comma-separated FAOSTAT domain codes to index into the local mirror.

  • FAOSTAT_MIRROR_PATH

    Directory holding the per-domain SQLite mirror databases and the shared dimension database.

  • FAOSTAT_BULK_BASE_URL

    FAOSTAT bulk-download service base URL (manifest + per-domain ZIPs).

  • CANVAS_PROVIDER_TYPE

    DataCanvas engine for SQL over large result sets. Defaults to 'duckdb'; set 'none' to disable analytical staging.

  • FAOSTAT_DATAFRAME_DROP_ENABLED

    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.

  • FAOSTAT_CLAMP_LIMITS

    A count input (limit, top_n, row_limit) above its cap is served at the cap with a notice. Set to 'false' to advertise each cap as a schema maximum and reject a larger value instead.

  • MCP_LOG_LEVEL

    Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').

npm

npx -y @cyanheads/[email protected]

Environment variables

  • MCP_TRANSPORT_TYPE

    Selects the HTTP transport.

  • MCP_HTTP_HOST

    The hostname for the HTTP server.

  • MCP_HTTP_PORT

    The port to run the HTTP server on.

  • MCP_HTTP_ENDPOINT_PATH

    The endpoint path for the MCP server.

  • MCP_AUTH_MODE

    Authentication mode to use: 'none', 'jwt', or 'oauth'.

  • FAOSTAT_DOMAINS

    Comma-separated FAOSTAT domain codes to index into the local mirror.

  • FAOSTAT_MIRROR_PATH

    Directory holding the per-domain SQLite mirror databases and the shared dimension database.

  • FAOSTAT_BULK_BASE_URL

    FAOSTAT bulk-download service base URL (manifest + per-domain ZIPs).

  • FAOSTAT_REFRESH_CRON

    Cron expression for the in-process incremental mirror refresh (HTTP transport only). Omit to disable.

  • CANVAS_PROVIDER_TYPE

    DataCanvas engine for SQL over large result sets. Defaults to 'duckdb'; set 'none' to disable analytical staging.

  • FAOSTAT_DATAFRAME_DROP_ENABLED

    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.

  • FAOSTAT_CLAMP_LIMITS

    A count input (limit, top_n, row_limit) above its cap is served at the cap with a notice. Set to 'false' to advertise each cap as a schema maximum and reject a larger value instead.

  • MCP_LOG_LEVEL

    Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').

More from github.com/cyanheads

More MCP servers