About ProtoForge
ProtoForge is an MCP server published by suoten in the IoT category: zero-hardware simulator for 32 industrial protocols — Modbus TCP/S7/OPC UA/BACnet/MQTT & more. Test SCADA, HMI & IoT gateway software without real PLCs. 零硬件仿真32种工业协议设备,测试上位机/SCADA/网关,开箱即用。. Conduid read 24 tools from its source: ai_analyze_logs, ai_create_device_from_text, ai_extract_points, connection_guide, create_device, delete_device and 18 more. No package is published for it, so it installs from a source checkout.
The repository has 339 stars and 103 forks, is licensed MIT, and its last commit was on 30 Nov 2026. The latest release is v1.18.0 (30 Nov 2026): ✨ 新增 — 设备停止 → 协议层离线语义(GitHub issue #39) 用户实测(Kepware 类客户端):设备停止后仍收到 good 质量的 0 值——停止的 仿真设备应当"离线"。本版把 Modbus 已有的设备状态拦截机制补齐到全链路: S7:Read/Write Var 在设备停止或未注册时,数据项返回码 0x0A (… It follows v1.17.1 (30 Nov 2026), and the 5 most recent releases go back to v1.16.5 (25 Nov 2026). It passes all 5 static checks Conduid ran on the repository. Its topics include bacnet, dnp3, iec-104, industrial-automation, industrial-iot and iot-gateway.
Install
git clone https://github.com/suoten/ProtoForgeTools (24)
ai_analyze_logsAI troubleshoot (v1.13.4): analyze recent protocol debug logs with the configured LLM (local Ollama by default). Returns a diagnosis where every finding cites real log lines as evidence. Filters: protocol / device_id / direction (inbound|outbound|system).| Parameter | Type | Description |
|---|---|---|
| count | integer | |
| device_id | string | |
| direction | string | |
| protocol | string | |
| question | string |
ai_create_device_from_textOne-shot: LLM parses datasheet text into a point table, then creates + auto-starts the simulated device. Returns device info incl. point count and notes.| Parameter | Type | Description |
|---|---|---|
| device_id | string | |
| name | string | |
| protocol_hint | string | |
| text * | string |
ai_extract_pointsParse unstructured datasheet/manual text into a structured point table via the configured LLM (local Ollama by default). Returns device name/protocol/slave_id/points[] + notes. Review before creating.| Parameter | Type | Description |
|---|---|---|
| protocol_hint | string | |
| text * | string |
connection_guideGet how a client should connect to this simulated device: protocol, host:port, addressing examples.| Parameter | Type | Description |
|---|---|---|
| device_id * | string |
create_deviceCreate a simulated device from a template (auto-started by default). Returns device id/protocol/points. If creation fails with a slave_id conflict, retry with protocol_config={\"slave_id\": <suggested>}.| Parameter | Type | Description |
|---|---|---|
| device_id | string | |
| name * | string | |
| protocol_config | object | |
| start | boolean | |
| template_id * | string |
delete_deviceDelete a simulated device.| Parameter | Type | Description |
|---|---|---|
| device_id * | string |
get_deviceGet one device's full info: status, points, addresses, config.| Parameter | Type | Description |
|---|---|---|
| device_id * | string |
get_logsFetch recent protocol message logs (WebSocket debug stream snapshot). Filter by protocol or keyword.| Parameter | Type | Description |
|---|---|---|
| count | integer | |
| protocol | string | |
| search | string |
get_test_reportFetch one test report with per-step assertion results.| Parameter | Type | Description |
|---|---|---|
| report_id * | string |
list_devicesList simulated devices with id/name/protocol/status/point count.| Parameter | Type | Description |
|---|---|---|
| limit | integer | |
| protocol | string |
list_protocolsList all protocol services and their running state (modbus_tcp, s7, opcua, mqtt, ...).list_scenariosList simulation scenarios (multi-device topologies with rules).list_templatesList device templates (133 built-in: PLC/sensor/CNC/camera/meter/IED...). Filter by protocol, e.g. modbus_tcp.| Parameter | Type | Description |
|---|---|---|
| limit | integer | |
| protocol | string |
quick_testRun the built-in auto-generated assertion suite (scope: all/device/scenario).| Parameter | Type | Description |
|---|---|---|
| scope | string |
read_pointsRead current values of all (or up to limit) points on a device.| Parameter | Type | Description |
|---|---|---|
| device_id * | string | |
| limit | integer |
search_templatesSearch device templates by keyword, e.g. 'siemens', '水表', 'camera'.| Parameter | Type | Description |
|---|---|---|
| limit | integer | |
| query * | string |
server_infoGet connected ProtoForge instance info: URL, version, uptime, device count. Call first to verify connectivity.start_deviceStart a simulated device (protocol endpoints become reachable).| Parameter | Type | Description |
|---|---|---|
| device_id * | string |
start_protocolStart a protocol service (e.g. modbus_tcp / s7 / opcua / mqtt).| Parameter | Type | Description |
|---|---|---|
| name * | string |
start_scenarioStart a whole scenario (all its devices).| Parameter | Type | Description |
|---|---|---|
| scenario_id * | string |
stop_deviceStop a simulated device.| Parameter | Type | Description |
|---|---|---|
| device_id * | string |
stop_protocolStop a running protocol service.| Parameter | Type | Description |
|---|---|---|
| name * | string |
stop_scenarioStop a running scenario.| Parameter | Type | Description |
|---|---|---|
| scenario_id * | string |
write_pointWrite a value to one point (like writing to a real PLC register).| Parameter | Type | Description |
|---|---|---|
| device_id * | string | |
| point_name * | string | |
| value * | any |
Security checks
- ✓README presentThe repository's README runs to about 8.9K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by web/package-lock.json.
- ✓No dynamic code executionScanned 210 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
What the source scan found
- Transport
- stdio and Streamable HTTPprotoforge/cli.py:180, protoforge/cli.py:180
- Starts other programs
- 19 callsprotoforge/cli.py:340, protoforge/cli.py:397, protoforge/cli.py:415
- Outbound network calls
- 76 callsprotoforge/ai_extract.py:99, protoforge/ai_extract.py:106, protoforge/cli.py:705
- Writes or deletes files
- 53 callsprotoforge/api/v1/benchmark_routes.py:98, protoforge/api/v1/marketplace_routes.py:57, protoforge/api/v1/marketplace_routes.py:109
- Lockfile
- web/package-lock.json
Pattern matches on the source text of 210 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 8.9K words, fetched yesterday. The original in the repository is authoritative.
Read full README