BP

bruno-portfolio/agrobr-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

30 stars 9 forks 质量 81 趋势 33MIT

MCP服务器,用于巴西农业数据,包括来自CEPEA、CONAB、IBGE、B3、INPE等公司的价格、作物、贸易、气候、毁林和火灾

概览

——价格,作物估计,气候,毁林等10个以上来自农布的公有来源. 0.2.0版本需要农用br >= 2.0.0,= 2.0.0,<3. 如果由于 - m 旗帜解析失败, 请创建一个包装脚本 : 回声“ python - m argonbr mcp ” > run.sh \\ chmod + x run.sh \ claude mcp 添加 Agrobr. / run.sh 回声“ python - m argonbr mcp ” 运行.bat \ claude mcp 添加 Agrobr run.bat. 农活-mcp是一种薄薄的包装. 所有数据逻辑都生活在Agriculturebr库. (原始内容存档于2012-10-12). Servidor MCP que dá acesso a dados agrícolas brasileiros temple 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 02.0 重置农用br → 2.0.0, = 2.0.0, <3. Adicione ao seu 客户端 MCP(Claude桌面, Cursor ou Claude Code)与指令相符合.

概述(AI 翻译)

** MCP服务器,允许LLMs实时获取巴西农业数据**——价格、作物估计、气候、毁林以及来自农业部10个公共来源的更多数据。

– – . . .

□ 安装

0.2.0版本需要农用br >= 2.0.0, = 2.0.0, MCP 服务器 > 添加:

克劳德密码

如果由于 -m 旗帜解析而出现上述失败, 请创建一个包装脚本 : 翻译: ** Linux/macOS:** echo 'python -m agrobr_mcp' > run.sh && chmod +x run.sh && claude mcp add agrobr ./run.sh 翻译: 窗口: echo python -m agrobr_mcp > run.bat && claude mcp add agrobr run.bat

{\fn华文楷体\fs16\1cHE0E0E0}多克

添加到 [[T3] :

– – . . .

□ 工具

箱外现有14个工具:

价格和市场

  • 工具 * * 描述 * * |-|-|-. [[T4] 农业商品每日现货价格(CEPEA/ESALQ) B3交易所农产品期货的每日结算价格(默认最新发布会) 按月、按产品和原产地状况分列的农业出口(Comex Stat;ABIOVE倒计时)

生产与作物

  • 工具 * * 描述 * * |-|-|-

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

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.


Install

Version 0.2.0 requires agrobr >=2.0.0,=2.0.0,<3.

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

14 tools available out of the box:

Prices & Market

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)

Production & Crop

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)

Climate & Environment

Tool Description
在 GitHub 查看完整 README

安装

docker run --rm -i agrobr-mcp
新手?先看 mcpskill.org 教程 →

配置

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