industriagents-ethernetip-mcp

v0.3.0
industriagents-ethernetip-mcp Checked 17 hours ago Published 1 month ago

MCP server for Allen-Bradley EtherNet/IP controllers with tag tooling.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

read_tags

Select one target mode and provide only its parameters. tag: Read one tag from the controller. Returns data {tag, value, data_type}. With `count`, reads that many array elements and returns them as a list (same as read_array). Fails with success=false if the controller rejects the tag. batch: Read several tags in one call. data.results has one {tag, value, data_type, error} entry per tag, in order. success is true only if every read succeeded. alias: Read the tag behind a tag-map alias, converted to engineering units if the alias d…

ParameterTypeDescription
target *Select the target mode described above.
aliasstringAlias defined in the TAG_MAP_FILE tag map.
countNumber of consecutive array elements, starting at the tag's index.
tag_namestringController tag, e.g. 'MotorSpeed' or 'Program:MainProgram.MotorSpeed'. Array elements and members use Logix syntax: 'Tank_Levels[2]', 'Conveyor_Status.Running'.
tagsarraytags for the selected operation; see its mode description.

write_tags

Select one target mode and provide only its parameters. tag: Write one tag on the controller. Refused unless ENIP_WRITES_ENABLED=true. Sent at most once: if the reply is lost, the result is success=false with meta.outcome='unknown' (the write may have been applied; read the tag back before writing again). `value` is a number, boolean, string, list (written to consecutive array elements) or object (structure members). On a real controller pycomm3 encodes the value with the controller's own type for the tag, so `data_type` is only checke…

ParameterTypeDescription
target *Select the target mode described above.
aliasstringAlias defined in the TAG_MAP_FILE tag map.
data_typeExpected Logix data type, e.g. REAL, DINT, BOOL, STRING.
payloadsarrayEntries of the form {'tag_name': ..., 'value': ..., 'data_type': optional}.
tag_namestringController tag, e.g. 'MotorSpeed' or 'Program:MainProgram.MotorSpeed'. Array elements and members use Logix syntax: 'Tank_Levels[2]', 'Conveyor_Status.Running'.
valuevalue for the selected operation; see its mode description.

get_tag_list

List tag definitions (name and data type) uploaded from the controller. Scope follows pycomm3: no `program` lists controller-scoped tags, '*' lists all tags, and a program name lists that program's tags (named 'Program:<name>.<tag>').

ParameterTypeDescription
programOmit for controller-scoped tags, '*' for every tag including program tags, or a program name such as 'MainProgram'.

list_tags

List the aliases defined in the TAG_MAP_FILE tag map, with their tags and scaling.

get_connection_status

Report the configured target and the outcome of the last exchange, without contacting the device. Use ping to test the device now.

get_plc_info

Read the controller identity: name, vendor, product, revision (firmware), serial and keyswitch.

get_plc_time

Read the controller's wall clock. data.plc_time is ISO 8601 without a time zone, as the controller reports it; data.microseconds is the raw value (µs since 1970-01-01).

set_plc_time

Set the controller's wall clock to this host's current time. Refused unless both ENIP_WRITES_ENABLED=true and ENIP_SYSTEM_CMDS_ENABLED=true. Not retried once sent: if the reply is lost, the error says the clock may have been set.