modbus-copilot
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@modbus-copilotwhat's the suction pressure on Pump-01?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
modbus-copilot
Ask a Modbus device questions by tag name instead of by register number.
you: what's the suction pressure on Pump-01?
claude: 2.0 bar — holding register 0, raw 20, scaled x0.1, read 1s agoNot this, which is what a raw Modbus MCP server gives you:
you: read holding registers 40001 to 40010That difference is the whole project. A Modbus device answers questions about register 40001. An engineer asks about suction pressure. The meaning in between lives in a vendor PDF and in the head of whoever commissioned the panel.
Write-up: I gave Claude a live Modbus device
Run the whole lab
Two simulated devices, Node-RED polling them, an MCP server, and a setup UI:
git clone https://github.com/aradhsai/modbus-copilot
cd modbus-copilot
docker compose up -dMCP endpoint |
|
Setup UI |
|
Node-RED editor |
|
Pump / chiller (Modbus TCP) |
|
Ports are off the defaults because 1880 and 3000 are usually taken on a machine
that runs other things. Override with NODERED_PORT, WIZARD_PORT, PUMP_PORT,
CHILLER_PORT.
Related MCP server: telemetry-mcp
Connect Claude Desktop
{
"mcpServers": {
"modbus-copilot": {
"command": "npx",
"args": ["-y", "mcp-remote", "http://127.0.0.1:1882/mcp", "--allow-http"]
}
}
}Claude Desktop launches stdio servers, so a bare { "url": ... } will not work —
mcp-remote bridges stdio to the HTTP endpoint. With a token set, add
"--header", "Authorization: Bearer <token>".
Then ask it: what devices can you see? · give me a snapshot of both · where exactly did that number come from?
It does not write
There is no write tool. Not disabled by a flag, not gated behind a role — absent from the codebase, so no misconfiguration can enable one.
An LLM holding a writable handle to running plant is a bad idea, and the only way to be certain a misconfiguration cannot enable one is for the code not to exist. If you need supervisory writes, build that path deliberately, with an interlock and an operator in front of it. Do not inherit it from a chat client.
The profile is the asset
One YAML file per device model. Version it, review it, share it — so one person's afternoon with the vendor manual becomes a reusable artefact instead of tribal knowledge.
device:
name: Pump-01
host: 192.0.2.10
unit_id: 1
byte_order: big
word_order: big # stated, never defaulted
tags:
- name: suction_pressure
kind: holding
address: 0 # the manual says 40001
type: uint16
scale: 0.1
unit: barTwo things it is strict about, because both are where Modbus work quietly goes wrong:
Addresses are zero-based protocol addresses. A manual saying 40001 means holding register 0. The conversion happens once, at import, so nothing downstream has to work out which convention a number is written in.
Word order must be declared. A 32-bit value assembled the wrong way round produces a number that looks plausible and is wrong, which is worse than an error. A profile that does not say is rejected at load.
Check the map before you trust it
node tools/validate.js --profile profiles/pump-01.yaml --host localhost --port 5022Reads every tag several times and reports what answers, what never moves, and what does not exist. Findings roll up: if every tag under a branch is unreachable then the branch is the finding, one line rather than forty.
▲ 3 live · 3 static · 0 zero · 3 unreachable
✗ Plant-Room/Dosing-01 NOT RESPONDING — 3 tags, none answered.
One cause, not 3: wrong address block, unwired card, or device offline.
● Plant-Room/Pump-01 3 live · 3 static
running_hours 214.00 h holding@20
↳ word_order: reads 214 as mapped, 14024704 with words swapped — confirm which is rightIt deliberately knows nothing about processes. An earlier version carried plausible ranges per unit so it could catch a missing scale factor; it passed a temperature reading 386 °C because the band was wide, and narrowing the band would have failed legitimate plants. There is no setting that works, because the information needed is not in the tag map — and a tool that argues with an engineer about their own process gets uninstalled. What is left is structural and generalises to any device.
Import a tag database
node tools/import-csv.js --in samples/site-taglist.csv --device Site-A --host 192.0.2.10Column names are matched loosely, 4xxxx/3xxxx/1xxxx/0xxxx are converted, and
Area/Equipment columns become the hierarchy the report rolls up by.
Tools the model gets
Tool | Answers |
| what is configured |
| every point, with units |
| "which tags mention temperature?" |
| one point, with provenance |
| several, sharing a moment |
| a snapshot |
The tag map is exposed as tools rather than pasted into a prompt, because small models act on tools and ignore paragraphs.
Architecture
device ──▶ Node-RED ──▶ tag layer ──▶ MCP ──▶ assistant
any protocol name · unit · read-only
scale · ageNode-RED does acquisition, and that is the point rather than a compromise:
node-red-contrib-modbus alone gets ~12,400 downloads a week, and the same
ecosystem covers OPC UA, S7 and BACnet. What it has never had is a tag model. Add
one, and adding a protocol becomes a wiring job rather than a code change.
Not production
The simulator behaves like plant — the pump's discharge follows a curve, its bearing holds heat, the chiller's delta-T narrows as load falls — but it is still a simulator behaving well. A real panel has a serial gateway that drops requests under load, a manual that disagrees with the device, and a unit ID nobody wrote down. Take this as a commissioning aid and a starting point, not a product.
Credit
The idea of putting Modbus behind MCP is not mine — alejoseb/ModbusMCP got there first and proved the shape. This takes a different line: it adds the semantic layer, and it drops write support on purpose.
Apache-2.0.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityBmaintenanceRead-only Modbus TCP monitoring server that exposes safe MCP tools for AI agents to read holding/input registers, coils, and device identity from industrial devices without write access.Last updated4Apache 2.0
- Alicense-qualityBmaintenanceA read-only MCP server for querying telemetry data from configurable backends. Provides tools to list sources, describe schemas, run bounded queries, and compute aggregates.Last updatedMIT
- AlicenseAqualityAmaintenanceProvides AI agents with safe, governed read access to industrial control systems (OPC-UA, Modbus, S7, Mitsubishi, MTConnect, MQTT/Sparkplug) plus cross-protocol diagnostics for troubleshooting data breaks, alarm floods, and unhealthy tags.Last updated100MIT
- Alicense-qualityCmaintenanceEnables live tag read/write access to Rockwell Automation Logix5000 controllers over EtherNet/IP without requiring Studio 5000 Logix Designer, including discovery, tag listing, and batch operations.Last updatedMIT
Related MCP Connectors
Search and query government open-data portals (Socrata SODA API).
Cross-OEM industrial machine intelligence: identity, normalization, automation, attestation.
Query your Google Sheets as structured JSON: list sheets and tabs, read schemas, filter rows.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/aradhsai/modbus-copilot'
If you have feedback or need assistance with the MCP directory API, please join our Discord server