Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI β†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE β†— (opens in a new tab)
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. πŸ’» Developer Tools
  3. FAOSTAT MCP
FAOSTAT MCP logo
Health: ActiveRecent health check succeeded.Last checked 9/7/2026, 6:42:20 PM

FAOSTAT MCP

User RatingsBe the first to rate and review this MCP server! Enrichment pendingWe haven’t run our AI enrichment pass on this listing yet, so the overview, use cases, and FAQ below may be sparse or missing. We work through the catalog over time β€” check back soon.
View Repository16 GitHub StarsTotal stargazers on GitHub for the source repository (16 stars).Visit Website

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

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Not yet automatically verified

We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β€” we're steadily working through the catalog.

Manual Client & Custom JSON ConfigExpand JSON β–Ύ

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "faostat-mcp": {
      "command": "uvx",
      "args": [
        "faostat-mcp"
      ]
    }
  }
}

πŸ’‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Directory Badge Claim listing AlternativesπŸ’» More in Developer Tools

Documentation Overview

FAOSTAT MCP Server

Query UN food and agriculture statistics with AI β€” powered by the Model Context Protocol

Version PyPI MCP Registry Python 3.10+ MCP Compatible License: MIT

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).

Keywords: FAOSTAT, MCP server, Model Context Protocol, AI agriculture data, FAO statistics, food security AI, agricultural data Python, UN data, crop production statistics, Claude, Cursor, Windsurf


Why Use This?

Researchers, data journalists, policy analysts, and developers can ask natural-language questions and get answers directly from FAOSTAT β€” without writing a single API call. Your AI assistant handles domain discovery, filtering, and interpretation automatically.

Who is this for?

  • 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

What is FAOSTAT?

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:

  • Crop and livestock production β€” yields, harvested area, and quantities for hundreds of commodities
  • Trade β€” import/export volumes and values between countries
  • Food security β€” prevalence of undernourishment, dietary energy supply, and access indicators
  • Emissions β€” greenhouse gas emissions from agriculture, land use, and food systems
  • Forestry and fisheries β€” production and trade data
  • Prices, inputs, and population β€” producer prices, fertilizer use, and demographic context

Data spans from 1961 to the present, across 245 countries and territories, in multiple languages.

What is MCP?

The Model Context Protocol is an open standard that lets AI assistants call external tools at runtime. This server registers all FAOSTAT API endpoints as discoverable tools β€” your AI assistant automatically selects and chains the right calls when you ask a question.


Features

  • 21 MCP tools covering every FAOSTAT endpoint (data, metadata, rankings, bulk downloads, reports)
  • 245 countries and territories across dozens of domains: crops, livestock, trade, food security, emissions, forestry, fisheries, and more
  • Built-in rate limiting (2 req/s) β€” safe for the FAOSTAT production API out of the box
  • Auto-retry with exponential backoff on transient network errors
  • Rich tool descriptions so the AI knows exactly when and how to call each tool
  • 3-tier hybrid caching β€” in-memory (20 min) β†’ SQLite disk (24 h, cross-session) β†’ Redis (optional, 30 min)
  • Zero-config auth via faostat_setup β€” store credentials once, never touch a config file again
  • Disambiguation via faostat_search_codes β€” agents ask before guessing ambiguous codes
  • Works with Claude Desktop, Claude Code, Cursor, Windsurf, Zed, and any MCP-compatible client

Quick Start

Prerequisites

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

Option A β€” Install via MCP Registry (recommended)

Listed on the official MCP Registry β€” discoverable directly from Claude Desktop, Cursor, and any MCP-compatible client.

bash
# Install with pip or uvx (no virtual env needed):
pip install faostat-mcp
uvx faostat-mcp

Option B β€” Install from source

bash
git clone https://github.com/berba-q/faostat-mcp.git
cd faostat-mcp
pip install -e .

Configure credentials

Easiest β€” use the faostat_setup tool (no config files needed):

Once the server is running and connected to your AI client, ask your assistant:

"Call faostat_setup with my FAOSTAT username and password."

The tool validates your credentials against the API, then stores them securely in your system keychain (macOS/Windows) or ~/.config/faostat-mcp/credentials.json (Linux/Docker). All subsequent sessions authenticate automatically β€” no env vars or .env file required.

Alternative β€” environment variables (CI/CD, Docker, advanced):

bash
cp .env.example .env
# Edit .env:
# FAOSTAT_API_TOKEN=your_token_here        ← API token, OR
# FAOSTAT_USERNAME=your_email              ← username + password
# FAOSTAT_PASSWORD=your_password

Register for a free FAOSTAT API account at the FAOSTAT Developer Portal.

Optional β€” Redis caching (multi-user / high-volume deployments)

The server works without Redis (SQLite disk cache is used instead). For shared or high-volume setups, launch Redis via Docker:

Terminal
docker run -p 6379:6379 -it redis/redis-stack:latest

Then set REDIS_HOST_IP_ADDRESS, REDIS_HOST_PORT_NUMBER, and REDIS_DATABASE in .env.


Running the Server

Development mode (interactive MCP Inspector UI)

bash
mcp dev faostat_mcp/server.py

Opens a browser UI at http://localhost:5173 where you can browse and test all 21 tools interactively.

Production mode (stdio transport, for Claude Desktop)

bash
python -m faostat_mcp.server
# or, using the installed script:
faostat-mcp

Caching

The server uses a 3-tier cache to minimise redundant API calls. FAOSTAT data updates at most daily, so most repeated queries are served instantly.

TierTTLScopeNotes
In-memory20 minCurrent sessionFastest; reset on server restart
SQLite disk24 hCross-session~/.cache/faostat-mcp/cache.db; no extra infra
Redis30 minMulti-user sharedOptional; set REDIS_* env vars to enable

Cache lookup order: memory β†’ disk β†’ Redis β†’ API call. A disk or Redis hit promotes the value to memory for the rest of the session.

To disable the disk cache (e.g. on a read-only filesystem), set FAOSTAT_DISK_CACHE=false.


MCP Client Integration

The server speaks standard MCP over stdio, so it works with any compatible client.

Recommended config (PyPI install)

config.json
{
  "mcpServers": {
    "faostat": {
      "command": "uvx",
      "args": ["faostat-mcp"]
    }
  }
}

Dev / source config

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

Claude Desktop

Add one of the blocks above to:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Restart Claude Desktop β€” faostat will appear in the tools panel.

Cursor

Add the block to .cursor/mcp.json in your project root, or to your global Cursor MCP settings. See the Cursor MCP docs for details.

Windsurf / Zed / other clients

Any client that supports MCP stdio servers accepts the same config shape. Consult your client's documentation for the config file location.


Example Queries

Once connected, ask your AI assistant questions like:

DomainExample Question
Crop production"What were the top 10 wheat-producing countries in 2022?"
Food security"Show me food security indicators for Ethiopia from 2015 to 2020"
Trade"Which countries are most dependent on food imports?"
Yield comparison"Compare maize yields between the USA and Brazil over the last decade"
Emissions"What are greenhouse gas emissions from agriculture in Sub-Saharan Africa?"
Discovery"What agricultural datasets does FAOSTAT have for trade?"

Your AI assistant will automatically:

  1. Call faostat_list_groups or faostat_groups_and_domains to find the right domain
  2. Call faostat_search_codes to look up a code by name β€” if multiple codes match (e.g. "production" matches both Production and Gross Production Index), the assistant pauses and asks you to choose before proceeding
  3. Call faostat_get_data or faostat_get_rankings with the confirmed codes
  4. Interpret and summarize the results in plain language

Available MCP Tools

Discovery & Metadata

Read the full README β†’View source on GitHub β†’

Related MCP Servers

View all in Developer Tools View all alternatives
  • Flutter Skill logoFlutter Skill

    AI E2E testing bridge β€” give AI eyes and hands inside any app. 8 platforms, 40+ tools.

    πŸ’» Developer Tools1 views
    Compare vs Flutter Skill β†’
  • PraisonAI logoPraisonAI

    AI Agents Framework with Self Reflection and MCP support

    πŸ’» Developer Tools1 views
    Compare vs PraisonAI β†’
  • TokenSave logoTokenSave

    Code intelligence for 15+ languages: semantic graph queries instead of file reads. 37 MCP tools.

    πŸ’» Developer Tools0 views
    Compare vs TokenSave β†’
  • Coach Watts logoCoach Watts

    Remote MCP server for training, nutrition, wellness, and performance data with OAuth 2.0.

    πŸ’» Developer Tools1 views
    Compare vs Coach Watts β†’

Reviews

No reviews yet β€” be the first to share how this listing worked for you.

Frequently Asked Questions about FAOSTAT MCP

Add the following block to your claude_desktop_config.json under mcpServers: "mcpServers": { "faostat-mcp": { "command": "npx", "args": ["-y", "FAOSTAT MCP"] } }

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewFAOSTAT MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/faostat-mcp?style=directory)](https://allmcps.com/mcp/faostat-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/faostat-mcp"><img src="https://allmcps.com/api/badge/faostat-mcp?style=directory" alt="FAOSTAT MCP on AllMCPs" /></a>

Technical Specs & Signals

CategoryπŸ’»Developer Tools
More technical detailsExpand β–Ύ
TransportSTDIO
RuntimePython
Last updatedSep 7, 2026
Views0
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars16
GitHub Star CountTotal stargazers on GitHub representing community popularity (16 stars).
39Quality signal: Fair Β· 39/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools16/30
Adoption & activity3/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

β˜… FeaturedAllMCPs Server logo

AllMCPs Server

The official MCP server for AllMCPs.com - submit and manage tools directly from your AI. The open directory for MCP servers. Connect Claude, Cursor, Windsurf, and AI agents to databases, tools, files, and APIs. Explore 10,000+ servers. AllMCPs is the premier, open directory for discovering, evaluating, and installing Model Context Protocol (MCP) servers to equip AI agents and LLMs with real-world superpowers.

Explore Server β†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge β€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it β€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in πŸ’» Developer Tools β†’Best MCP servers for Developers β†’Alternatives to FAOSTAT MCP β†’Install in Claude DesktopInstall in CursorInstall in VS Code