Ignition MCP

io.github.jsgorana由 GitHub 账号 jsgorana 发布v0.1.3更新于 Oct 25, 2026

MCP server for Inductive Automation Ignition: tags, alarms, history, and Perspective

概览

AI 生成的概览

面向 Inductive Automation Ignition 网关的 MCP 服务器,让助手浏览和写入标签、查询历史与报警、管理项目并部署 Perspective 视图。

可以做什么
诊断网关并查看其信息、试用状态、模块、日志、备份和性能,列出配置资源,并通过网关执行命名或临时数据库查询。浏览、读取、写入、创建、导出和导入标签,查询标签历史及其提供程序。查看报警状态与日志,并确认报警。列出、获取、创建、删除、导出、导入和扫描项目。初始化项目,并列出、获取、创建、更新、删除、校验 Perspective 视图,配置页面、样式和会话。安装并检查启用实时标签、报警、历史和 Perspective 工具的 bridge WebDev 项目。
适用场景
适用于助手需要操作 Ignition 8.3 网关的场景:检查标签、报警和历史,管理项目,或基于模板编写并部署 Perspective 视图。默认只读;启用写入适用于希望助手在网关上做改动的运维人员。
运行要求
以 Python 包形式本地运行(pipx、uvx 或 pip)。需要 IGNITION_URL(网关基础地址)和 IGNITION_API_TOKEN(name:secret 形式的 API 密钥),并在网关上授予读写权限。实时标签、报警、历史和 Perspective 工具需要在网关上安装 mcp-bridge WebDev 项目并设置 IGNITION_BRIDGE_SECRET。可选设置包括 TLS 校验、超时和标签写入白名单。
安装前请注意
写入默认关闭;变更类工具需要 IGNITION_ALLOW_WRITES=true 且调用带 confirm=true,破坏性操作还需重新发送准确名称。API 密钥和 bridge HMAC 密钥属于凭据,不要放进共享配置。可用 IGNITION_TAG_WRITE_ALLOWLIST 限制可写标签。启用写入的工具请先在非生产网关上测试,因为改动会影响实际工业系统。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Ignition MCP,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

ignition-mcp

An MCP (Model Context Protocol) server for Inductive Automation Ignition. It gives an AI assistant, Claude Desktop, Claude Code, or any MCP client, structured access to an Ignition gateway: browse and write tags, query history and alarms, manage projects, and deploy full Perspective views.

Tested against Ignition 8.3. 43 tools spanning tags, history, alarms, projects, gateway administration, and Perspective. The server is read-only by default; every write is gated behind an explicit opt-in.

You:    "Deploy a Perspective dashboard to a new project called LineOverview with a         gauge bound to [default]Line1/Speed."Claude: (bootstraps the project, writes the view, wires the tag binding, triggers a scan)        -> https://gateway:8088/data/perspective/client/LineOverview

Why two planes

Ignition 8.3 ships a native REST API, but it doesn't expose live tag values, tag history, alarm queries, or Perspective view resources. ignition-mcp covers the gap with two transport planes:

  • REST plane. The gateway's native /data/api/v1 API, authenticated with an API key, used for projects, gateway configuration, modules, logs, backups, and Perspective session diagnostics.
  • Bridge plane. A small WebDev project (mcp-bridge) you install once on the gateway. It exposes the gateway scripting surface (system.tag.*, system.alarm.*, system.db.*, and project file I/O) over HMAC-signed HTTP requests.

Tools that need the bridge degrade with a clear message if it isn't installed. Run ignition_diagnose any time to see what's configured and what's missing.

Quickstart

1. Create an API key on the gateway

Gateway web UI -> Config -> Security -> API Keys -> Create. Give it a name, for example claude. Copy the full token; it looks like claude:AbCd....

The key's auto-created security level (Authenticated/<key-name>) needs to be granted gateway read/write access under Config -> Security -> General -> Gateway Read/Write Permissions. Skip this step and calls return HTTP 403; ignition_diagnose will tell you and give the exact fix.

2. Install ignition-mcp

bash
pipx install ignition-mcp# or: uvx ignition-mcp# or: pip install ignition-mcp

3. Configure your MCP client

Claude Desktop (claude_desktop_config.json) or Claude Code (.mcp.json):

json
{  "mcpServers": {    "ignition": {      "command": "ignition-mcp",      "env": {        "IGNITION_URL": "http://localhost:8088",        "IGNITION_API_TOKEN": "claude:YOUR_SECRET_HERE"      }    }  }}

Restart the client and ask it to run ignition_diagnose. You should get an all-green checklist, aside from a warning about the bridge, which is the next step.

4. Install the bridge (recommended, needed for live data and Perspective deploys)

Generate a random secret, enable writes, and let the server install the bridge for you:

json
"env": {  "IGNITION_URL": "http://localhost:8088",  "IGNITION_API_TOKEN": "claude:YOUR_SECRET_HERE",  "IGNITION_BRIDGE_SECRET": "a-long-random-string",  "IGNITION_ALLOW_WRITES": "true"}

Ask your assistant to install the bridge (this runs the bridge_install tool), then run ignition_diagnose again to confirm the bridge check is green. See docs/bridge.md for the manual install path and troubleshooting.

Configuration

VariableRequiredDefaultMeaning
IGNITION_URLyesnoneGateway base URL, e.g. http://localhost:8088
IGNITION_API_TOKENyesnoneAPI key, name:secret
IGNITION_BRIDGE_SECRETnounsetHMAC secret for the bridge; bridge tools are disabled without it
IGNITION_ALLOW_WRITESnofalseMaster switch for every mutating tool
IGNITION_TLS_VERIFYnotrueSet to false for self-signed dev gateways
IGNITION_TIMEOUT_Sno30Per-request timeout, in seconds
IGNITION_TAG_WRITE_ALLOWLISTnounsetComma-separated glob patterns; tag writes outside them are refused

Safety model

  • Read-only by default. Mutating tools refuse to run unless IGNITION_ALLOW_WRITES=true and the call passes confirm=true. Your assistant sets confirm after you approve the action.
  • Destructive operations echo the name back. Deleting a project or view requires re-sending its exact name.
  • A tag-write allowlist lets you restrict writable tags to specific path globs.
  • REST mutations carry the API key's identity into Ignition's own audit log; bridge mutations log to the mcp-bridge logger. Secrets are never logged or echoed back.
  • The bridge's file endpoints are confined to data/projects/; nothing outside that tree is reachable.

Tool catalog

AreaTools
Diagnosticsignition_diagnose, gateway_info, gateway_trial_status, gateway_trial_reset
Tagstag_browse, tag_read, tag_write, tag_create, tag_config_export, tag_config_import
Historyhistory_query, history_providers
Alarmsalarm_status, alarm_journal, alarm_acknowledge
Projectsproject_list, project_get, project_create, project_delete, project_export, project_import, project_scan
Perspectiveperspective_bootstrap_project, perspective_list_views, perspective_get_view, perspective_upsert_view, perspective_delete_view, perspective_validate_view, perspective_page_config_get/set, perspective_session_props_get, perspective_style_upsert, perspective_list_sessions
Gateway admingateway_modules, gateway_logs_query, gateway_logger_set_level, gateway_backup, gateway_performance, config_resource_list
Databasedb_run_named_query, db_query
Bridgebridge_install, bridge_status

The server also exposes MCP resources the assistant can read to author valid Perspective views: ignition://docs/view-schema and ignition://templates/view/{flex-basic,coordinate-basic,tag-bound-dashboard}.

Building Perspective views

See docs/perspective-authoring.md for the full writeup. In short: the assistant reads the view-schema resource, starts from a template, validates offline with perspective_validate_view, then deploys with perspective_upsert_view, which validates again, writes the view, and triggers a project scan. A full round-trip example is in examples/deploy-dashboard.md.

Development

bash
git clone https://github.com/jsgorana/ignition-mcpcd ignition-mcppython -m venv .venv && source .venv/bin/activatepip install -e ".[dev]"
ruff check src tests          # lintruff format --check src tests # format checkmypy src                      # type checkpytest tests/unit             # unit tests, no gateway neededpython bridge/build_zip.py    # rebuild the bridge project archive
# Live integration suite (needs a real 8.3 gateway with the bridge installed):IGNITION_URL=... IGNITION_API_TOKEN=... IGNITION_BRIDGE_SECRET=... \IGNITION_ALLOW_WRITES=true python tests/live/live_check.py

Acknowledgments

Built on the Model Context Protocol and its Python SDK, using httpx for HTTP. The ignition-sdk-examples repository was a useful reference while working out how Ignition's module and scripting APIs fit together.

License

MIT. See LICENSE.

Disclaimer

This project is independent and community-built. It is not affiliated with, endorsed by, or sponsored by Inductive Automation. "Ignition" and "Perspective" are trademarks of Inductive Automation, LLC, used here only to describe compatibility. Test any write-enabled tool against a non-production gateway before pointing it at something that matters.

来源:README.md,提交 fb55db3

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.3最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分