# agrobr

Hands your agent live Brazilian agricultural figures — commodity prices, harvest estimates, weather, forest loss. Useful when you need those numbers inside the chat instead of another browser tab.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 29
- Author: bruno-portfolio
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/bruno-portfolio/agrobr-mcp
- Updated: 2026-10-10
- HTML: https://affpapa.org/en/nevibecode/mcp/agrobr

## What it does

agrobr-mcp is a thin layer. Data collection, parsing and caching all sit in the agrobr library; the server itself mostly formats text for the model. It exposes 14 tools: daily spot prices from CEPEA/ESALQ, settlement prices for farm futures on B3, monthly exports split by product and state, crop estimates, supply and demand balance, weekly planting and harvest progress, livestock counts, per-state climate, deforestation polygons and fire hotspots.

Everything comes from public APIs — CEPEA, CONAB, IBGE, INPE, B3, NASA POWER. No API key is involved. Version 0.2.0 pins agrobr >=2.0.0,<3 and MCP Python SDK >=2.0.0,<3, and the package installs with `pip install agrobr-mcp`. Python 3.11 or newer is required. Going through `uvx` pulls the dependencies for you.

Two meta tools help you orient: `listar_produtos` lists which products each tool accepts, `health_check` reports whether the sources are up. Several tools return the latest published slice by default — `futuros_b3` takes the most recent session, `desmatamento` caps output at 2000 records. Without Python 3.11 on the machine the server will not start.

## Requirements
- Needs: Python and uv (commands run via uvx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add agrobr -- uvx agrobr-mcp
```
uvx runs the command named after the package; if the README names another one, use uvx --from agrobr-mcp <command>

### Codex

**Platform CLI**
```bash
codex mcp add agrobr -- uvx agrobr-mcp
```
uvx runs the command named after the package; if the README names another one, use uvx --from agrobr-mcp <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "agrobr": {
            "command": "uvx",
            "args": [
                "agrobr-mcp"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from agrobr-mcp <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "agrobr": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "agrobr-mcp"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from agrobr-mcp <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add agrobr uvx agrobr-mcp
```
uvx runs the command named after the package; if the README names another one, use uvx --from agrobr-mcp <command>

## When to use it
- check the spot price of soy or corn over recent days
- total up exports by state and month
- follow weekly harvest progress
- pull climate readings for a given state
- export deforestation polygons for a biome

## Example prompts
- What was the soy price over the last 5 days?
- Show the corn crop estimate by state
- Deforestation data for the Amazon

## Similar
- [World Monitor](https://affpapa.org/en/nevibecode/mcp/world-monitor.md) — MCP server · ★ 89408
- [Scrapling MCP Server](https://affpapa.org/en/nevibecode/mcp/scrapling-mcp-server.md) — MCP server · ★ 89433
- [MCP Toolbox for Databases](https://affpapa.org/en/nevibecode/mcp/googleapis-mcp-toolbox-for-databases.md) — MCP server · ★ 16717
- [PostHog MCP Server](https://affpapa.org/en/nevibecode/mcp/posthog-mcp-server.md) — MCP server · ★ 40409
- [dbx](https://affpapa.org/en/nevibecode/mcp/dbx.md) — MCP server · ★ 27669
- [Metabase](https://affpapa.org/en/nevibecode/mcp/metabase.md) — MCP server · ★ 49845

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
