bruno-portfolio/agrobr-mcp

📊 Data Platforms
0 Views
0 Installs

🐍 ☁️ - Brazilian agricultural data for LLMs — prices, crop estimates, climate, deforestation from 19 public sources via CEPEA, CONAB, IBGE, INPE and B3.

Quick Install

One-Click IDE Configuration
claude_desktop_config.json
{
  "mcpServers": {
    "bruno-portfolio-agrobr-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "bruno-portfolio-agrobr-mcp"
      ]
    }
  }
}
Or

Using an AI coding agent (Claude Code, Cursor, etc.)? Copy a ready-made prompt that tells it to fetch the setup instructions and install this server for you.

Documentation Overview

agrobr-mcp

PyPI Tests License: MIT Python 3.11+

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.

Demo


Install

pip install agrobr-mcp

Setup

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "agrobr": {
      "command": "python",
      "args": ["-m", "agrobr_mcp"]
    }
  }
}

Cursor

Settings > MCP Servers > Add:

{
  "agrobr": {
    "command": "python",
    "args": ["-m", "agrobr_mcp"]
  }
}

Claude Code

claude mcp add agrobr python -- -m agrobr_mcp

If the above fails due to -m flag parsing, create a wrapper script:

Linux/macOS: echo 'python -m agrobr_mcp' > run.sh && chmod +x run.sh && claude mcp add agrobr ./run.sh

Windows: echo python -m agrobr_mcp > run.bat && claude mcp add agrobr run.bat

Docker

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"]
    }
  }
}

Tools

10 tools available out of the box:

Prices & Market

ToolDescription
preco_diarioDaily spot prices for agricultural commodities (CEPEA/ESALQ)
futuros_b3Daily settlement prices for agricultural futures on B3 exchange

Production & Crop

ToolDescription
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)

Climate & Environment

ToolDescription
climaClimate data by state — temperature, precipitation, radiation (NASA POWER)
desmatamentoDeforestation rates and real-time alerts by biome (INPE)

Meta

ToolDescription
listar_produtosList valid products for each tool
health_checkCheck status of all data sources

Example queries

"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?"

How it works

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.


Development

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/

License

MIT


PT-BR

O que é o agrobr-mcp?

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.

Instalação

pip install agrobr-mcp

Configuração

Adicione ao seu client MCP (Claude Desktop, Cursor ou Claude Code) conforme as instruções acima.

Docker

docker build -t agrobr-mcp .
docker run --rm -i agrobr-mcp

10 tools disponíveis

  • preco_diario — Preço spot de commodities agrícolas (CEPEA/ESALQ)
  • futuros_b3 — Ajustes diários de futuros agrícolas na B3
  • estimativa_safra — Estimativa da safra corrente por UF (CONAB/IBGE)
  • producao_anual — Produção histórica por UF (IBGE PAM)
  • balanco — Balanço de oferta e demanda (CONAB)
  • progresso_safra — Progresso semanal de plantio e colheita (CONAB)
  • clima — Dados climáticos por UF (NASA POWER)
  • desmatamento — Taxa de desmatamento e alertas por bioma (INPE)
  • listar_produtos — Lista produtos válidos por tool
  • health_check — Status das fontes de dados

Links

mcp-name: io.github.bruno-portfolio/agrobr

Related MCP Servers

1luvc0d3/metabase-mcp

📇 🏠 - MCP server connecting Claude to Metabase with 28 tools for natural language data analysis, dashboard management, SQL queries, and automated insights. Features SQL guardrails, rate limiting, and audit logging.

📊 Data Platforms0 views
aegis-dq/aegis-dq

🐍 🏠 🍎 🪟 🐧 - Agentic data quality framework that runs structured rules against warehouses (DuckDB, BigQuery, Athena, Databricks, Postgres), diagnoses failures with LLM root cause analysis, and proposes SQL remediations. Every LLM decision is audit-logged with cost and latency.

📊 Data Platforms0 views
alanpcf/brasil-data-mcp

📇 🏠 🍎 🪟 🐧 - Brazilian public data for AI agents — companies (CNPJ), addresses (CEP), banks (BACEN), national holidays — via BrasilAPI. No auth, no API key. Install: npx -y brasil-data-mcp.

📊 Data Platforms0 views
Alessandro114/scala-mcp-server

📇 ☁️ 🍎 🪟 🐧 - Search and enrich data from 250M+ companies across 50+ countries. Company lookup by name, VAT, or ID, NACE sector search, and financial data from official EU business registries. Free tier: 50 lookups/month. Install: npx scala-mcp-server.

📊 Data Platforms0 views

Engagement

Views
0
Installs
0
Upvotes
0

Views and upvotes are unique per visitor network (hashed IP). Installs count copy actions.

Status

Health: Not checked yet

We have not completed a health check for this listing yet.

Last checked: 7/28/2026, 7:54:57 PM

Unclaimed listing (imported or pending owner verification). Claim it →
★ Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Claim this listing

Promote this listing

Optional paid placement. Free listings stay free forever.

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.