FAOSTAT MCP
FAOSTAT data for 245 countries: crops, trade, food security, and emissions via 23 MCP…
- Pricing
- Open source
- Runs
- Locally
- Version
- 1.3.0
- Listing updated
- 5 days ago
About FAOSTAT MCP
FAOSTAT MCP is an open-source MCP server. It runs locally on your machine and is started by your AI client.
FAOSTAT data for 245 countries: crops, trade, food security, and emissions via 23 MCP tools.
Install
Run in a terminal
claude mcp add faostat-mcp --env FAOSTAT_API_TOKEN='<FAOSTAT_API_TOKEN>' --env FAOSTAT_USERNAME='<FAOSTAT_USERNAME>' --env FAOSTAT_PASSWORD='<FAOSTAT_PASSWORD>' -- uvx faostat-mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"faostat-mcp": {
"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
{
"mcpServers": {
"faostat-mcp": {
"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
{
"servers": {
"faostat-mcp": {
"type": "stdio",
"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
{
"mcpServers": {
"faostat-mcp": {
"command": "uvx",
"args": [
"faostat-mcp"
],
"env": {
"FAOSTAT_API_TOKEN": "<FAOSTAT_API_TOKEN>",
"FAOSTAT_USERNAME": "<FAOSTAT_USERNAME>",
"FAOSTAT_PASSWORD": "<FAOSTAT_PASSWORD>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"faostat-mcp": {
"command": "uvx",
"args": [
"faostat-mcp"
],
"env": {
"FAOSTAT_API_TOKEN": "<FAOSTAT_API_TOKEN>",
"FAOSTAT_USERNAME": "<FAOSTAT_USERNAME>",
"FAOSTAT_PASSWORD": "<FAOSTAT_PASSWORD>"
}
}
}
}Configuration
FAOSTAT_API_TOKENOptional. A FAOSTAT access token from the Developer Portal. Tokens expire after 1 hour, so prefer FAOSTAT_USERNAME + FAOSTAT_PASSWORD, which refresh automatically.FAOSTAT_USERNAMEFAOSTAT account email (free account at https://www.fao.org/faostat/en/#developer-portal). Used to obtain and refresh tokens automatically.RequiredFAOSTAT_PASSWORDFAOSTAT account password. Used with FAOSTAT_USERNAME to obtain and refresh tokens automatically.Required
Pricing
Open source
FAOSTAT MCP FAQ
Is FAOSTAT MCP free?
Yes. FAOSTAT MCP is open source, so you can use and self-host it for free.
How do I add FAOSTAT MCP to Claude Code?
Run this command in your terminal: claude mcp add faostat-mcp --env FAOSTAT_API_TOKEN='<FAOSTAT_API_TOKEN>' --env FAOSTAT_USERNAME='<FAOSTAT_USERNAME>' --env FAOSTAT_PASSWORD='<FAOSTAT_PASSWORD>' -- uvx faostat-mcp