FAOSTAT MCP Server

FAOSTAT data for 245 countries: crops, trade, food security, and emissions via 21 MCP tools.

Local serverstdioPython

What is the FAOSTAT MCP MCP server?

Connect FAOSTAT MCP to Claude, Cursor or any other MCP client and it stops being a tab you switch to. FAOSTAT data for 245 countries: crops, trade, food security, and emissions via 21 MCP tools. The faostat mcp mcp server is what makes that connection.

What the server does

An MCP (Model Context Protocol) server that exposes the full FAOSTAT API as tools for AI assistants. Connect any MCP-compatible client — Claude, Cursor, Windsurf, Zed, or your own agent — to the world's most comprehensive database of food, agriculture, fisheries, forestry, and nutrition statistics, covering 245 countries and territories from the United Nations Food and Agriculture Organization (FAO).

FAOSTAT is the statistical database of the United Nations Food and Agriculture Organization (FAO). It is the world's most comprehensive freely available source of data on food and agriculture, covering:

  • Agricultural economists and food security researchers
  • Journalists and policy analysts working with FAO data
  • Developers building AI pipelines on top of FAOSTAT
  • Anyone who wants to explore crop, trade, nutrition, or emissions data conversationally

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • Prerequisites — The Prerequisites tool exposed by this server
  • Cursor — Add the block to .cursor/mcp.json in your project root, or to your global Cursor MCP settings. See the [Cursor MCP
  • Authentication — The Authentication tool exposed by this server

Installation

faostat-mcp on PyPI is all you need. Most clients run it directly, so configuration is a few lines and a restart.

Credentials and setup notes

Configuration is passed through the environment: FAOSTAT_API_TOKEN. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

  • Python 3.10+ - Any MCP-compatible client (Claude Desktop, Cursor, Windsurf, Zed, or a custom agent)

Where it fits

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. FAOSTAT MCP's toolset — Prerequisites, Cursor, Authentication — is a fair guide to whether it matches your workflow. It is maintained by berba-q; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
PrerequisitesThe Prerequisites tool exposed by this server.
CursorAdd the block to .cursor/mcp.json in your project root, or to your global Cursor MCP settings. See the [Cursor MCP docs](https://docs.cursor.com/context/model-context-protocol) for details.
AuthenticationThe Authentication tool exposed by this server.

How to install the FAOSTAT MCP MCP server

### Dev / source config

```json
{
  "mcpServers": {
    "faostat": {
      "command": "python",
      "args": ["-m", "faostat_mcp.server"],
      "cwd": "/path/to/faostat-mcp",
      "env": {
        "FAOSTAT_API_TOKEN": "your_token_here"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Python 3.10+ - Any MCP-compatible client (Claude Desktop, Cursor, Windsurf, Zed, or a custom agent)
VariableDescriptionRequired
FAOSTAT_API_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • Use FAOSTAT MCP to Prerequisites.
  • Use FAOSTAT MCP to Cursor.
  • Use FAOSTAT MCP to Authentication.

Frequently asked questions

It connects FAOSTAT MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 3 tools (Prerequisites, Cursor, Authentication) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with FAOSTAT MCP directly.