Agrobr

io.github.bruno-portfolio由 GitHub 帳號 bruno-portfolio 發布v0.2.0更新於 Oct 24, 2026

Brazilian agricultural data for LLMs — prices, crops, climate, deforestation.

已驗證STDIO僅桌面位置與生活資料與分析

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理取得巴西農業資料:商品價格、作物估產、氣候、森林砍伐與火點,來源為多個公開資料源。

可以做什麼
查詢每日現貨價格、B3 期貨結算價,以及依產品與原產州彙總的每月農產品出口。取得各州作物估產、年度產量、供需平衡、每週播種與收成進度、歷史序列與牲畜存欄。取得各州氣候資料、依生物群系的森林砍伐多邊形與警報,以及依鄉鎮統計的每日火點。列出各工具支援的產品,並檢查資料源狀態。
適用情境
適合回答巴西農業相關問題,例如大豆或玉米價格、收成進度、作物估產、出口、某生物群系的森林砍伐或火點,並希望助理從公開資料源取數而非憑空作答。
執行需求
以 stdio 本機程序執行。需安裝 agrobr-mcp 的 Python 套件(pip),並在用戶端設定以 python -m agrobr_mcp 啟動,或透過 Docker 執行。需要 Python 與連線公開資料源的網路;未宣告帳號、API 金鑰或環境變數。
安裝前請注意
伺服器從第三方公開 API(CEPEA、CONAB、IBGE、INPE、B3、NASA POWER 等)取得資料,查詢與結果會經過這些服務。資料為唯讀查詢,但取決於來源發布內容,可能不完整或有延遲;森林砍伐與火點資料最多回傳 2,000 筆記錄。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Agrobr,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

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

Version 0.2.0 requires agrobr >=2.0.0,<3 and MCP Python SDK >=2.0.0,<3.

bash
pip install agrobr-mcp

Setup

Claude Desktop

Add to claude_desktop_config.json:

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

Cursor

Settings > MCP Servers > Add:

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

Claude Code

bash
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

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

Add to claude_desktop_config.json:

json
{  "mcpServers": {    "agrobr": {      "command": "docker",      "args": ["run", "--rm", "-i", "agrobr-mcp"]    }  }}

Tools

14 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 (latest published session by default)
exportacaoAgricultural exports summed by month, by product and state of origin (Comex Stat; ABIOVE fallback)

Production & Crop

ToolDescription
estimativa_safraCrop estimate by state, latest season with data by default (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)
serie_historica_safraHistorical crop series by season — area, production, yield; last 10 years by default (CONAB)
rebanhoLivestock herds and animal products by state, latest published year by default (IBGE PPM)

Climate & Environment

ToolDescription
climaClimate data by state — temperature, precipitation, radiation (NASA POWER)
desmatamentoDeforestation 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)
queimadasFire hotspots of one day by municipality and biome, reference satellite (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

bash
git clone https://github.com/bruno-portfolio/agrobr-mcp.gitcd agrobr-mcppip install -e ".[dev]"
# Run testspytest tests/ -m "not integration" -v
# Lintruff 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

A versão 0.2.0 requer agrobr >=2.0.0,<3 e MCP Python SDK >=2.0.0,<3.

bash
pip install agrobr-mcp

Configuração

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

Docker

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

14 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 (por padrão, o último pregão publicado)
  • exportacao — Exportações agrícolas somadas por mês, por produto e UF de origem (Comex Stat; ABIOVE como reserva)
  • estimativa_safra — Estimativa de safra por UF, por padrão a safra mais recente com dado (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)
  • serie_historica_safra — Série histórica por safra: área, produção e produtividade; por padrão os últimos 10 anos (CONAB)
  • rebanho — Rebanhos e produção animal por UF, por padrão o ano mais recente publicado (IBGE PPM)
  • clima — Dados climáticos por UF (NASA POWER)
  • desmatamento — Polígonos de desmatamento (PRODES do ano anterior ao corrente, recuando mais um ano se vier vazio) e alertas (DETER, últimos 15 dias) por bioma, com filtros opcionais de ano e UF, até 2.000 registros (INPE)
  • queimadas — Focos de calor de um dia por município e bioma, satélite de referência (INPE)
  • listar_produtos — Lista produtos válidos por tool
  • health_check — Status das fontes de dados

Links

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

來源:README.md,提交 396b737

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

2
  1. v0.2.0最新Oct 10, 2026
  2. v0.1.2Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分