MCP.so
Sign In
Servers

Faostat Mcp

@berba-q

MCP server that exposes the full FAOSTAT API as tools for AI assistants — query UNFAO Food & Agriculture Statistics in natural language via Claude, Cursor, or any MCP-compatible client.

Overview

What is Faostat Mcp?

Faostat Mcp is an MCP server that exposes the full FAOSTAT API as tools for AI assistants. It provides access to the United Nations Food and Agriculture Organization's statistical database covering 245 countries and territories, including data on crops, livestock, trade, food security, emissions, forestry, and fisheries.

How to use Faostat Mcp?

Install via pip install faostat-mcp or uvx faostat-mcp, configure FAOSTAT credentials using the faostat_setup tool or environment variables, then run the server with faostat-mcp. Connect any MCP-compatible client such as Claude Desktop, Cursor, or Windsurf.

Key features of Faostat Mcp

  • 21 MCP tools covering all FAOSTAT endpoints
  • 245 countries and territories across dozens of domains
  • Built-in rate limiting (2 requests per second)
  • Auto-retry with exponential backoff on transient errors
  • 3-tier hybrid caching (memory, SQLite, optional Redis)
  • Zero-config credential storage via faostat_setup tool
  • Disambiguation via faostat_search_codes to avoid code confusion

Use cases of Faostat Mcp

  • Query crop production statistics for any country
  • Analyze food security indicators over time
  • Compare agricultural yields between countries
  • Explore trade and emissions data interactively
  • Discover available FAOSTAT domains and metadata

FAQ from Faostat Mcp

What runtime is required for Faostat Mcp?

Python 3.10 or higher is required.

How do I authenticate with FAOSTAT?

Use the faostat_setup tool to validate and store credentials securely, or set FAOSTAT_API_TOKEN or FAOSTAT_USERNAME/FAOSTAT_PASSWORD in environment variables.

Does Faostat Mcp require a Redis cache?

No, a SQLite disk cache is used by default; Redis is optional for multi-user or high-volume deployments.

What MCP clients does Faostat Mcp work with?

It works with Claude Desktop, Claude Code, Cursor, Windsurf, Zed, and any MCP-compatible client that supports stdio transport.

Tags

More from Developer Tools