Agro API MCP by usefulapi
Read satellite, NDVI, weather and soil data; create and delete fields in Agro API.
作者提供的说明(英文原文)
MCP server for Modbus TCP/RTU devices with typed, scaled register maps and per-point limits.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
LABMCP_ADDRESS, LABMCP_SIMULATE, LABMCP_READ_ONLY, LABMCP_LIMITS你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"labmcp-modbus": {
"command": "uvx",
"args": [
"labmcp-modbus"
],
"env": {
"LABMCP_ADDRESS": "your-value",
"LABMCP_SIMULATE": "your-value",
"LABMCP_READ_ONLY": "your-value",
"LABMCP_LIMITS": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add labmcp-modbus --env LABMCP_ADDRESS=your-value --env LABMCP_SIMULATE=your-value --env LABMCP_READ_ONLY=your-value --env LABMCP_LIMITS=your-value -- uvx labmcp-modbus运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"labmcp-modbus": {
"command": "uvx",
"args": [
"labmcp-modbus"
],
"env": {
"LABMCP_ADDRESS": "your-value",
"LABMCP_SIMULATE": "your-value",
"LABMCP_READ_ONLY": "your-value",
"LABMCP_LIMITS": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"labmcp-modbus": {
"type": "stdio",
"command": "uvx",
"args": [
"labmcp-modbus"
],
"env": {
"LABMCP_ADDRESS": "your-value",
"LABMCP_SIMULATE": "your-value",
"LABMCP_READ_ONLY": "your-value",
"LABMCP_LIMITS": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
LABMCP_ADDRESS envLABMCP_SIMULATE envLABMCP_READ_ONLY envLABMCP_LIMITS env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 K-Dense-AI 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.1.3)于42天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:Agro API MCP by usefulapi, FieldClimate MCP by usefulapi, Exely MCP by usefulapi
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Read satellite, NDVI, weather and soil data; create and delete fields in Agro API.
Read weather station data, sensors, farms, fields and crop zones in FieldClimate.
Read hotel bookings, rooms, cancellation rules and daily occupancy in Exely.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Let an AI agent read and control Modbus devices over Ethernet (Modbus TCP) or RS-485/RS-232 (Modbus RTU/ASCII): PID temperature controllers, recirculating chillers, PLCs, process sensors, VFDs and data loggers. You describe the device once in a register map (YAML or JSON). The agent then works with named points in real units, such as process_temperature = 37.2 °C or setpoint, instead of raw registers. The server enforces the map's rules: only writable points can be written by name, every writable number must have a min and max, and out-of-range values are refused before anything is sent. The map can also define a safe state, a list of point writes (heater off, controller to standby) that a SAFETY tool runs on request.
| Package | labmcp-modbus |
| Instruments | Any Modbus device: temperature controllers (Watlow, Eurotherm, Omega, Autonics, …), chillers and circulators, PLCs and remote I/O, sensors/transmitters, VFDs, power meters, data loggers |
| Interfaces | Ethernet (Modbus TCP, port 502), RS-485 / RS-232 (Modbus RTU or ASCII), serial-to-Ethernet gateways (RTU over TCP) |
| Protocol | MODBUS Application Protocol Specification V1.1b3, MODBUS over Serial Line V1.02, MODBUS Messaging on TCP/IP Implementation Guide V1.0b; client via pymodbus 3.8+ |
| Status | 🧪 simulated: tested against an in-memory simulated controller and a local pymodbus server, not yet verified on hardware. Report a hardware test |
What this server adds over a plain register-poking Modbus MCP:
scale and offset, units, enums (0 = standby, 1 = auto) and descriptions.min/max or an enum, and values are checked before sending. Raw writes to addresses that belong to a mapped point are refused, so the limits can't be bypassed.write_point reads the value back and reports whether it matches.apply_safe_state SAFETY tool, defined in the map, that works even in --read-only mode.--read-only), an audit log of every request and reply, and bounded request sizes.uvx labmcp-modbus --simulate --check
The simulator is a generic single-loop PID temperature controller. Its layout is the bundled example register map. It is illustrative and not a copy of any vendor's map. A heater (3 °C/s at full power) heats a thermal mass that cools towards a 22 °C room (τ = 90 s). The PID loop has a ramping working setpoint and alarm bits. The simulator answers exception 02 for unimplemented addresses, 03 for values outside its own range (e.g. a 500 °C setpoint), and 0B for a wrong unit id. With --simulate --option register_map=my_map.yaml, points that are not in the example layout get zero-initialised storage, so you can test your own map.
uvx labmcp-modbus --address tcp://192.168.1.20:502 --option register_map=~/maps/oven.yaml --check
uvx labmcp-modbus --address "serial:///dev/ttyUSB0?baudrate=9600&parity=N" --option unit_id=3 \ --option register_map=~/maps/controller.yaml --check uvx labmcp-modbus --address "serial://COM4?baudrate=19200&parity=E" --option register_map=C:/maps/chiller.json --check uvx labmcp-modbus --address "tcp://192.168.1.30:4001?framer=rtu" --check # RTU through a transparent gateway
`--check` connects, reads the map's first point as a probe and prints `probe: ok: …` or the error. More address parameters: `stopbits=2`, `bytesize=7`, `framer=ascii` (Modbus ASCII), `timeout=1`, `retries=2`.
device: # optional
name: Incubator oven manufacturer: Example model: X-100 unit_id: 1 # --option unit_id overrides it word_order: big # default for 32/64-bit points byte_order: big
points: chamber_temperature: table: input # holding | input | coil | discrete address: 0 # 0-based protocol address ("30001" in the manual -> input 0) type: int16 # uint16 | int16 | uint32 | int32 | float32 | float64 | bool scale: 0.1 # value = raw * scale + offset unit: °C description: Chamber temperature setpoint: table: holding address: 0 # "40001" -> holding 0 type: int16 scale: 0.1 unit: °C writable: true min: 20 # required for writable numbers: checked before sending max: 60 mode: table: holding address: 1 writable: true enum: {0: standby, 1: run} heater_enable: table: coil address: 0 writable: true
safe_state: # optional: run in order by apply_safe_state
| Field | Default | Meaning |
|---|---|---|
table | (required) | holding (FC03/06/16), input (FC04, read-only), coil (FC01/05), discrete (FC02, read-only) |
address | (required) | 0-based protocol (PDU) address. Manual numbering: 4xxxx → holding xxxx − 1, 3xxxx → input, 1xxxx → discrete, 0xxxx → coil |
type | uint16 (bool for coils/discretes) | 32-bit types use 2 registers, float64 uses 4. bool in a register means 0 = false, anything else = true |
word_order / byte_order | big / big | big/big = ABCD (most significant register first). little/big = CDAB (common on PLCs). big/little = BADC. little/little = DCBA |
scale, offset | 1, 0 | Engineering value = raw × scale + offset. Writes are rounded to the register's resolution and re-checked |
unit, description | "" | Shown to the agent |
writable | false | Only holding registers and coils can be writable |
min, max | none | Engineering-unit limits. Required for writable numeric points (unless enum is used) |
enum | none | {number: label} for integer points. Writes accept the label or the number |
The server validates the map when it starts. Unknown fields (e.g. a misspelt maximum) and repeated keys (a second max, or a point defined twice) are errors rather than being silently ignored, so a typo can't remove a limit. Two writable points may not share a register (writing one would bypass the other's limits); read-only views of a writable register are fine. If the map is invalid, list_points shows the error and the device tools refuse to run. The server fails closed.
Claude Code
claude mcp add oven -- uvx labmcp-modbus --address tcp://192.168.1.20:502 --option register_map=/home/me/maps/oven.yaml
Claude Desktop / Cursor / Windsurf (claude_desktop_config.json, .cursor/mcp.json, …)
{
"mcpServers": { "controller": { "command": "uvx", "args": [ "labmcp-modbus", "--address", "serial:///dev/ttyUSB0?baudrate=9600&parity=N", "--option", "unit_id=1", "--option", "register_map=/home/me/maps/controller.yaml", "--option", "raw_writes=false" ] } } }
Useful flags:
--read-only allows reads only. apply_safe_state stays available.--option raw_writes=false removes write_register, write_registers and write_coil, so the agent can only write what the map allows. This is recommended once your map is complete.| Tool | Kind | Description |
|---|---|---|
apply_safe_state | 🛑 safety | Put the device into the safe state defined in the register map (e.g. heater output off, controller to standby), writing each step in order and reading it back. Every step is attempted even if an earlier one fails. Call it immediately if anything looks wrong. all_ok is true only if every step was written AND read back with the requested value; a step the device acknowledged but ignored (e.g. in local mode) is not ok. |
get_command_log | 👁 read | Return the most recent raw commands sent to / replies received from the instrument (newest last). Useful for debugging and for recording what was done. |
get_connection_info | 👁 read | Report which instrument is connected (identity, address, simulated or real), whether the server is read-only, and the active safety limits. Call this first. |
list_points | 👁 read | Describe the loaded register map: device, every named point (table, 0-based address, type, scaling, unit, writable, min/max, enum) and the safe-state steps. Works without a connection. |
read_coils | 👁 read | Read coils (FC01): single-bit outputs such as run/stop or relay states. |
read_discrete_inputs | 👁 read | Read discrete inputs (FC02): single-bit, read-only status such as alarms or limit switches. |
read_points | 👁 read | Read named points from the register map, decoded and scaled into engineering units (e.g. process_temperature = 25.1 °C). A point that cannot be read gets an error instead of failing the whole call. |
read_registers | 👁 read | Read raw holding or input registers (unsigned 16-bit), optionally decoded as int16, 32-bit or 64-bit values. For exploring a device; prefer read_points when a register map describes it. |
reconnect | 🛑 safety | Close and re-open the connection to the instrument (e.g. after it was power cycled or a cable was re-plugged). |
write_coil | ⚠️ hazard | Switch one raw coil (FC05). Coils often start or stop equipment (heaters, pumps, motors); mapped coils are refused here (use write_point). |
write_point | ⚠️ hazard | Write a named point from the register map (setpoint, mode, output enable...). The value is checked against the point's writable flag, min/max or enum BEFORE sending, converted to raw registers, written, then read back. Changing setpoints and outputs acts on real equipment. If the write succeeds but the read-back fails, read_back_error says why. |
write_register | ⚠️ hazard | Write one raw holding register (FC06). No scaling or limits are applied, so only use it for addresses the register map does not describe (mapped addresses are refused: use write_point). Returns a read-back if the register is readable. |
write_registers | ⚠️ hazard | Write consecutive raw holding registers (FC16), e.g. both halves of a 32-bit value. No scaling or limits are applied; mapped addresses are refused (use write_point). |
get_connection_info, get_command_log and reconnect are built into every La
只显示了开头部分;其余内容请在仓库中阅读