FAOSTAT MCP Server
by berba-qio.github.berba-q/faostat-mcpv1.3.0
FAOSTAT data for 245 countries: crops, trade, food security, and emissions via 23 MCP tools.
context tax
queued
security
queued
cold start
queued
freshness
Active8d ago
Install FAOSTAT MCP server
Install in Claude Code
claude mcp add faostat -e FAOSTAT_API_TOKEN='<faostat-api-token>' -e FAOSTAT_USERNAME='<faostat-username>' -e FAOSTAT_PASSWORD='<faostat-password>' -- uvx faostat-mcpInstall in Cursor
{
"mcpServers": {
"faostat": {
"command": "uvx",
"args": [
"faostat-mcp"
],
"env": {
"FAOSTAT_API_TOKEN": "<faostat-api-token>",
"FAOSTAT_USERNAME": "<faostat-username>",
"FAOSTAT_PASSWORD": "<faostat-password>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"faostat": {
"command": "uvx",
"args": [
"faostat-mcp"
],
"env": {
"FAOSTAT_API_TOKEN": "<faostat-api-token>",
"FAOSTAT_USERNAME": "<faostat-username>",
"FAOSTAT_PASSWORD": "<faostat-password>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"faostat": {
"type": "stdio",
"command": "uvx",
"args": [
"faostat-mcp"
],
"env": {
"FAOSTAT_API_TOKEN": "<faostat-api-token>",
"FAOSTAT_USERNAME": "<faostat-username>",
"FAOSTAT_PASSWORD": "<faostat-password>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"faostat": {
"command": "uvx",
"args": [
"faostat-mcp"
],
"env": {
"FAOSTAT_API_TOKEN": "<faostat-api-token>",
"FAOSTAT_USERNAME": "<faostat-username>",
"FAOSTAT_PASSWORD": "<faostat-password>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| FAOSTAT_API_TOKEN | — | yes | Optional. A FAOSTAT access token from the Developer Portal. Tokens expire after 1 hour, so prefer FAOSTAT_USERNAME + FAOSTAT_PASSWORD, which refresh automatically. |
| FAOSTAT_USERNAME | yes | — | FAOSTAT account email (free account at https://www.fao.org/faostat/en/#developer-portal). Used to obtain and refresh tokens automatically. |
| FAOSTAT_PASSWORD | yes | yes | FAOSTAT account password. Used with FAOSTAT_USERNAME to obtain and refresh tokens automatically. |
Freshness
Active — last maintenance signal 8d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-02 · 8d ago · GitHub
Latest release
2026-10-02 · 8d ago · GitHub · v1.3.0
Package published
no data · npm/PyPI
Registry entry updated
2026-10-02 · 8d ago · official registry · v1.3.0
FAQ
›How do I install the FAOSTAT MCP server in Claude Code?
Run: claude mcp add faostat -e FAOSTAT_API_TOKEN='<faostat-api-token>' -e FAOSTAT_USERNAME='<faostat-username>' -e FAOSTAT_PASSWORD='<faostat-password>' -- uvx faostat-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does FAOSTAT require an API key?
Yes. It expects FAOSTAT_USERNAME, FAOSTAT_PASSWORD, FAOSTAT_API_TOKEN, of which 2 are secrets.
›Can I use FAOSTAT as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is FAOSTAT in the official MCP registry?
Yes, as io.github.berba-q/faostat-mcp.
Alternatives to FAOSTAT
Other security MCP servers.