
How to add agrobr-mcp to Cursor
Give LLMs real-time Brazilian agricultural data — prices, crop estimates, climate and deforestation from public sources. Paste the config into ~/.cursor/mcp.json and restart Cursor.
Last updated June 14, 2026 · 25★ · stdio · no auth
Cursor config for agrobr-mcp
pip install agrobr-mcp{
"mcpServers": {
"agrobr-mcp": {
"command": "python",
"args": [
"-m",
"agrobr_mcp"
]
}
}
}Setup steps
- 1Open Cursor → Settings → MCP → Add new MCP server (or edit ~/.cursor/mcp.json directly).
- 2Paste the agrobr-mcp config below into the "mcpServers" object.
- 3Fill in placeholder secrets, then save.
- 4Cursor reloads MCP servers automatically — check Settings → MCP for a green status dot.
- 5Ask Cursor to use one of agrobr-mcp's tools to confirm it's connected.
Before you start
- Python 3.11+
- pip install agrobr-mcp (or Docker)
What agrobr-mcp can do in Cursor
preco_diarioDaily spot prices for agricultural commodities (CEPEA/ESALQ).
futuros_b3Daily settlement prices for agricultural futures on the B3 exchange.
estimativa_safraCurrent crop season estimate by state (CONAB/IBGE).
producao_anualHistorical annual production by state (IBGE PAM).
balancoSupply and demand balance — stock, consumption, exports (CONAB).
progresso_safraWeekly planting and harvesting progress by state (CONAB).
climaClimate data by state — temperature, precipitation, radiation (NASA POWER).
desmatamentoDeforestation rates and real-time alerts by biome (INPE).
Security
No authentication or API keys required; all data is fetched from public Brazilian government and exchange sources. Data accuracy and availability depend entirely on those upstream public APIs.
agrobr-mcp + Cursor FAQ
Where is the Cursor config file?
Cursor reads MCP servers from ~/.cursor/mcp.json. Paste the agrobr-mcp config there under the "mcpServers" key and restart the client.
Is agrobr-mcp safe to use with Cursor?
No authentication or API keys required; all data is fetched from public Brazilian government and exchange sources. Data accuracy and availability depend entirely on those upstream public APIs.
Does it require an API key?
No. All data comes from public Brazilian government and exchange sources, so no authentication or API keys are needed.
What is the relationship to the agrobr library?
agrobr-mcp is a thin MCP wrapper that handles tool exposure and text formatting. All data collection, parsing, and caching logic lives in the separate agrobr Python library.
How do I install it in Claude Code?
Run `claude mcp add agrobr python -- -m agrobr_mcp`. If the `-m` flag fails to parse, create a wrapper script (run.sh / run.bat) and add that instead.