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 分