Brazilian agricultural data for LLMs — prices, crops, climate, deforestation.
Runs on your machine from its package; the steps are below.
At most: only reads or looks up information.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
uvx agrobr-mcp
MCP client config
{
"mcpServers": {
"agrobr": {
"command": "uvx",
"args": [
"agrobr-mcp"
]
}
}
}MCP server that gives LLMs access to real-time Brazilian agricultural data — prices, crop estimates, climate, deforestation and more from 10 public sources from agrobr.
Version 0.2.0 requires agrobr >=2.0.0,<3 and MCP Python SDK >=2.0.0,<3.
pip install agrobr-mcp
Add to claude_desktop_config.json:
{
"mcpServers": {
"agrobr": {
"command": "python",
"args": ["-m", "agrobr_mcp"]
}
}
}
Settings > MCP Servers > Add:
{
"agrobr": {
"command": "python",
"args": ["-m", "agrobr_mcp"]
}
}
claude mcp add agrobr python -- -m agrobr_mcp
If the above fails due to
-mflag parsing, create a wrapper script:Linux/macOS:
echo 'python -m agrobr_mcp' > run.sh && chmod +x run.sh && claude mcp add agrobr ./run.shWindows:
echo python -m agrobr_mcp > run.bat && claude mcp add agrobr run.bat
docker build -t agrobr-mcp .
docker run --rm -i agrobr-mcp
Add to claude_desktop_config.json:
{
"mcpServers": {
"agrobr": {
"command": "docker",
"args": ["run", "--rm", "-i", "agrobr-mcp"]
}
}
}
14 tools available out of the box:
| Tool | Description |
|---|---|
preco_diario | Daily spot prices for agricultural commodities (CEPEA/ESALQ) |
futuros_b3 | Daily settlement prices for agricultural futures on B3 exchange (latest published session by default) |
exportacao | Agricultural exports summed by month, by product and state of origin (Comex Stat; ABIOVE fallback) |
| Tool | Description |
|---|---|
estimativa_safra | Crop estimate by state, latest season with data by default (CONAB/IBGE) |
producao_anual | Historical annual production by state (IBGE PAM) |
balanco | Supply and demand balance — stock, consumption, exports (CONAB) |
progresso_safra | Weekly planting and harvesting progress by state (CONAB) |
serie_historica_safra | Historical crop series by season — area, production, yield; last 10 years by default (CONAB) |
rebanho | Livestock herds and animal products by state, latest published year by default (IBGE PPM) |
| Tool | Description |
|---|---|
clima | Climate data by state — temperature, precipitation, radiation (NASA POWER) |
desmatamento | Deforestation polygons (PRODES for the previous calendar year, falling back one more year when empty) and alerts (DETER, last 15 days) by biome, with optional year and state filters, up to 2,000 records (INPE) |
queimadas | Fire hotspots of one day by municipality and biome, reference satellite (INPE) |
| Tool | Description |
|---|---|
listar_produtos | List valid products for each tool |
health_check | Check status of all data sources |
"Qual o preço da soja nos últimos 5 dias?"
"Estimativa de safra de milho por estado"
"Progresso da colheita de soja"
"Dados de desmatamento na Amazônia"
"Quais produtos estão disponíveis?"
User (natural language)
│
MCP Client (Claude Desktop / Cursor / Claude Code)
│
agrobr-mcp (this server — thin layer, text formatting)
│
agrobr library (data collection, parsing, caching)
│
19 public APIs (CEPEA, CONAB, IBGE, INPE, B3, NASA POWER…)
agrobr-mcp is a thin wrapper. All data logic lives in the agrobr library.
git clone https://github.com/bruno-portfolio/agrobr-mcp.git
cd agrobr-mcp
pip install -e ".[dev]"
# Run tests
pytest tests/ -m "not integration" -v
# Lint
ruff check src/ tests/
ruff format src/ tests/
MIT
Servidor MCP que dá acesso a dados agrícolas brasileiros em tempo real para LLMs. Preços, safras, clima, desmatamento e mais — tudo de fontes públicas como CEPEA, CONAB, IBGE, INPE e B3.
A versão 0.2.0 requer agrobr >=2.0.0,<3 e MCP Python SDK >=2.0.0,<3.
pip install agrobr-mcp
Adicione ao seu client MCP (Claude Desktop, Cursor ou Claude Code) conforme as instruções acima.
docker build -t agrobr-mcp .
docker run --rm -i agrobr-mcp
mcp-name: io.github.bruno-portfolio/agrobr