MCP server that gives LLMs access to real-time Brazilian agricultural data — prices, crop estimates, climate, deforestation and more from 10 public sources. Add to claudedesktopconfig.json: Settings > MCP Servers > Add: Add to claudedesktopconfig.json: 10 tools available out of the box: agrobr-mcp is a thin wrapper. All data logic lives in the agrobr library. Servidor MCP que dá acesso a dados agr
Add this skill
npx mdskills install bruno-portfolio/agrobr-mcpComprehensive MCP server providing 10 well-documented tools for Brazilian agricultural data from public sources
1# agrobr-mcp23[](https://pypi.org/project/agrobr-mcp/)4[](https://github.com/bruno-portfolio/agrobr-mcp/actions/workflows/tests.yml)5[](https://opensource.org/licenses/MIT)6[](https://www.python.org/downloads/)78**MCP server that gives LLMs access to real-time Brazilian agricultural data** — prices, crop estimates, climate, deforestation and more from 10 public sources.9101112---1314## Install1516```bash17pip install agrobr-mcp18```1920## Setup2122### Claude Desktop2324Add to `claude_desktop_config.json`:2526```json27{28 "mcpServers": {29 "agrobr": {30 "command": "python",31 "args": ["-m", "agrobr_mcp"]32 }33 }34}35```3637### Cursor3839Settings > MCP Servers > Add:4041```json42{43 "agrobr": {44 "command": "python",45 "args": ["-m", "agrobr_mcp"]46 }47}48```4950### Claude Code5152```bash53claude mcp add agrobr python -- -m agrobr_mcp54```5556> If the above fails due to `-m` flag parsing, create a wrapper script:57>58> **Linux/macOS:** `echo 'python -m agrobr_mcp' > run.sh && chmod +x run.sh && claude mcp add agrobr ./run.sh`59>60> **Windows:** `echo python -m agrobr_mcp > run.bat && claude mcp add agrobr run.bat`6162### Docker6364```bash65docker build -t agrobr-mcp .66docker run --rm -i agrobr-mcp67```6869Add to `claude_desktop_config.json`:7071```json72{73 "mcpServers": {74 "agrobr": {75 "command": "docker",76 "args": ["run", "--rm", "-i", "agrobr-mcp"]77 }78 }79}80```8182---8384## Tools858610 tools available out of the box:8788### Prices & Market8990| Tool | Description |91|------|-------------|92| `preco_diario` | Daily spot prices for agricultural commodities (CEPEA/ESALQ) |93| `futuros_b3` | Daily settlement prices for agricultural futures on B3 exchange |9495### Production & Crop9697| Tool | Description |98|------|-------------|99| `estimativa_safra` | Current crop season estimate by state (CONAB/IBGE) |100| `producao_anual` | Historical annual production by state (IBGE PAM) |101| `balanco` | Supply and demand balance — stock, consumption, exports (CONAB) |102| `progresso_safra` | Weekly planting and harvesting progress by state (CONAB) |103104### Climate & Environment105106| Tool | Description |107|------|-------------|108| `clima` | Climate data by state — temperature, precipitation, radiation (NASA POWER) |109| `desmatamento` | Deforestation rates and real-time alerts by biome (INPE) |110111### Meta112113| Tool | Description |114|------|-------------|115| `listar_produtos` | List valid products for each tool |116| `health_check` | Check status of all data sources |117118---119120## Example queries121122```123"Qual o preço da soja nos últimos 5 dias?"124"Estimativa de safra de milho por estado"125"Progresso da colheita de soja"126"Dados de desmatamento na Amazônia"127"Quais produtos estão disponíveis?"128```129130---131132## How it works133134```135User (natural language)136 │137MCP Client (Claude Desktop / Cursor / Claude Code)138 │139agrobr-mcp (this server — thin layer, text formatting)140 │141agrobr library (data collection, parsing, caching)142 │14319 public APIs (CEPEA, CONAB, IBGE, INPE, B3, NASA POWER…)144```145146agrobr-mcp is a thin wrapper. All data logic lives in the [agrobr](https://github.com/bruno-portfolio/agrobr) library.147148---149150## Development151152```bash153git clone https://github.com/bruno-portfolio/agrobr-mcp.git154cd agrobr-mcp155pip install -e ".[dev]"156157# Run tests158pytest tests/ -m "not integration" -v159160# Lint161ruff check src/ tests/162ruff format src/ tests/163```164165---166167## License168169MIT170171---172173## PT-BR174175### O que é o agrobr-mcp?176177Servidor 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.178179### Instalação180181```bash182pip install agrobr-mcp183```184185### Configuração186187Adicione ao seu client MCP (Claude Desktop, Cursor ou Claude Code) conforme as instruções acima.188189### Docker190191```bash192docker build -t agrobr-mcp .193docker run --rm -i agrobr-mcp194```195196### 10 tools disponíveis197198- **preco_diario** — Preço spot de commodities agrícolas (CEPEA/ESALQ)199- **futuros_b3** — Ajustes diários de futuros agrícolas na B3200- **estimativa_safra** — Estimativa da safra corrente por UF (CONAB/IBGE)201- **producao_anual** — Produção histórica por UF (IBGE PAM)202- **balanco** — Balanço de oferta e demanda (CONAB)203- **progresso_safra** — Progresso semanal de plantio e colheita (CONAB)204- **clima** — Dados climáticos por UF (NASA POWER)205- **desmatamento** — Taxa de desmatamento e alertas por bioma (INPE)206- **listar_produtos** — Lista produtos válidos por tool207- **health_check** — Status das fontes de dados208209### Links210211- [agrobr library](https://github.com/bruno-portfolio/agrobr) — biblioteca de dados agrícolas212- [MCP Protocol](https://modelcontextprotocol.io) — Model Context Protocol213214mcp-name: io.github.bruno-portfolio/agrobr215
Full transparency — inspect the skill content before installing.