MCP server for Siemens TIA Portal
Connect Claude, Cursor or VS Code to TIA Portal.
TIATool gives your AI client 75 tools for Siemens TIA Portal V19 and V21: offline questions on a scanned project cache, and live tools that drive TIA Portal Openness, with a backup before every write and a verify gate against your baseline.
3 days free, then €99.99 / month or €999.99 / year per seat. Cancel before it ends and pay nothing.
Not affiliated with Siemens AG.
What you get
Your AI client, inside the project.
Ask in plain words. The assistant picks the tools, runs them on your engineering PC and answers from your project.
- A local MCP server
- TIATool’s server, tiax-agent, runs over stdio as a child process of your AI client, as your Windows user, with no listening port.
- TIA Portal V19 and V21
- Your own licensed TIA Portal with the Openness option, on Windows 10 or 11 (64-bit).
- Your MCP client
- Claude Desktop, Claude Code, Cursor and VS Code, or any other MCP client. Setup registers TIATool in the ones you tick.
- 75 tools
- 53 only read, 7 depend on the action and 15 change a project. When no tool fits, the assistant scripts Openness itself.
- Offline project cache
- Export once, scan once. Who writes a tag, what calls what, search and diff answer from a local cache with TIA Portal closed.
- Backup, verify, journal
- Every write takes a new timestamped backup first. With a workspace, the verify gate checks the change against your baseline and records a journal entry.
Install on the engineering PC from PowerShell; the script checks the installer against its published SHA-256 first:
irm https://tiatool.dev/install.ps1 | iexPricing
Two prices. Every tool.
Every plan starts with a 3-day free trial. One licence per engineer: all 75 tools, all updates. Pay monthly or save with a year.
Monthly
€99.99/ month
3 days free, then per engineer. Cancel anytime.
- Every tool, including writes
- One PC per seat
- All updates included
Yearly
save €199.89€999.99/ year
3 days free, then €83.33 a month: two months free.
- Everything in Monthly
- Air-gapped licence file included
- 30-day offline grace on the engineering PC
How the 3-day free trial works
- Pick a planStripe takes a card and charges nothing today. Your 3-day trial starts at once.
- Activate your keyThe key arrives by email and in your account. Every tool works on your engineering PC.
- Decide before it endsKeep going and the plan starts automatically. Cancel under Billing before the trial ends and you pay nothing.
Prices in euro. Up to 50 seats are self-serve at list price; for more, a PO or your own terms, write to info@truesmarttech.com. One free trial per company and per PC. Payments are non-refundable; cancel anytime to stop renewals (terms). Requires Windows and your own licensed Siemens TIA Portal V19 or V21 with Openness. Checkout by Stripe.
What each tool does to a project53 only read · 7 depend on the action · 15 change a project. All need a licence. Generated from the catalog the server enforces.
Reads 53 tools
Never changes a TIA Portal project.
| Tool | What it does |
|---|---|
| project_statsInventory of the TIA project: PLCs, block counts by type and language, and the fidelity roll-up saying how much of the project is actually readable. | Inventory of the TIA project: PLCs, block counts by type and language, and the fidelity roll-up saying how much of the project is actually readable. |
| list_blocksList blocks in the project. | List blocks in the project. |
| get_blockThe full record for one block: interface tree, per-network logic as SCL, calls, and read/write edges. | The full record for one block: interface tree, per-network logic as SCL, calls, and read/write edges. |
| who_writes_tagEvery place a tag or variable is WRITTEN, with the block, network, and the logic that writes it. | Every place a tag or variable is WRITTEN, with the block, network, and the logic that writes it. |
| who_reads_tagEvery place a tag or variable is READ, with block, network and the reading logic. | Every place a tag or variable is READ, with block, network and the reading logic. |
| who_callsWhich blocks call the given block, with the instance name used. | Which blocks call the given block, with the instance name used. |
| what_block_callsWhich blocks the given block calls (callees, from CallInfo), including the instance DB used — the downward half of the call graph; who_calls is the upward half. | Which blocks the given block calls (callees, from CallInfo), including the instance DB used — the downward half of the call graph; who_calls is the upward half. |
| unreachable_blocksCode blocks never reached from any OB — dead code candidates. | Code blocks never reached from any OB — dead code candidates. |
| search_projectRanked free-text search across block names, titles, comments and logic — and HMI content (screen texts, tag bindings, events). | Ranked free-text search across block names, titles, comments and logic — and HMI content (screen texts, tag bindings, events). |
| list_screensHMI screens, templates and popups in the scanned project — name, device, object count and fidelity. | HMI screens, templates and popups in the scanned project — name, device, object count and fidelity. |
| get_screenThe full record for one HMI screen: every object with its texts, tag bindings, animations and events, plus the tags_used and navigation rollups. | The full record for one HMI screen: every object with its texts, tag bindings, animations and events, plus the tags_used and navigation rollups. |
| hmi_tag_mapEvery HMI tag with its table, connection and the screens using it (joined by name over each screen's tags_used). | Every HMI tag with its table, connection and the screens using it (joined by name over each screen's tags_used). |
| where_is_tag_used_on_hmiWhere a PLC-side symbol shows up on the HMI: screens whose tags_used match and HMI tag tables whose tag names match. | Where a PLC-side symbol shows up on the HMI: screens whose tags_used match and HMI tag tables whose tag names match. |
| tia_statusLive environment check: installed TIA Portal Openness versions, whether a TIA Portal process is running (with PIDs), the cache being served and whether it is stale, and the scanner version. | Live environment check: installed TIA Portal Openness versions, whether a TIA Portal process is running (with PIDs), the cache being served and whether it is stale, and the scanner version. |
| refresh_scanRe-scan the exports folder into the cache this server is serving, then reload the index in place, so the cache tools answer from fresh data. | Re-scan the exports folder into the cache this server is serving, then reload the index in place, so the cache tools answer from fresh data. |
| backup_projectZip the whole project folder to a restore point beside it — the same backup every write tool takes automatically, on demand. | Zip the whole project folder to a restore point beside it — the same backup every write tool takes automatically, on demand. |
| list_devicesThe REAL project's hardware tree: devices, plugged modules, article numbers, firmware and I/O address ranges. | The REAL project's hardware tree: devices, plugged modules, article numbers, firmware and I/O address ranges. |
| generate_equipmentGenerate PLC code for pumps, valves and motors from proven templates, named per the SCL naming convention: FB FB_Pump/FB_Valve/FB_Motor (feedback supervision, thermal trip, latched faults with reset), one instance DB per equipment (IDB_Pump_P101), command struct in DB_Equipment, PLC tags I_P101_Running/Q_P101_Run in a tag table, and an FC 'Equipment' calling every instance. | Generate PLC code for pumps, valves and motors from proven templates, named per the SCL naming convention: FB FB_Pump/FB_Valve/FB_Motor (feedback supervision, thermal trip, latched faults with reset), one instance DB per equipment (IDB_Pump_P101), command struct in DB_Equipment, PLC tags I_P101_Running/Q_P101_Run in a tag table, and an FC 'Equipment' calling every instance. |
| io_list_importTurn an electrical I/O list (CSV or XLSX; columns Name/Tag, Address, optional Type, Comment, Table, Station, Module, OrderNumber, Firmware, Slot — English/German/Dutch headers recognised) into PLC tag tables (TagTables/*.xml for build_from_source), a hardware.json module plan, and an AutomationML file for hardware_import. | Turn an electrical I/O list (CSV or XLSX; columns Name/Tag, Address, optional Type, Comment, Table, Station, Module, OrderNumber, Firmware, Slot — English/German/Dutch headers recognised) into PLC tag tables (TagTables/*.xml for build_from_source), a hardware.json module plan, and an AutomationML file for hardware_import. |
| generate_alarmsGenerate a bit-coded alarm system: DB_Alarms (alarm Words), FC 'Alarms' packing each trigger into its bit, a WinCC Comfort/Advanced discrete-alarm CSV, the HMI tag list, and a Unified alarm spec for unified_build. | Generate a bit-coded alarm system: DB_Alarms (alarm Words), FC 'Alarms' packing each trigger into its bit, a WinCC Comfort/Advanced discrete-alarm CSV, the HMI tag list, and a Unified alarm spec for unified_build. |
| project_diffCompare two scans (.tiax caches) — e.g. | Compare two scans (.tiax caches) — e.g. |
| export_docsWrite project documentation from the cache: block catalogue, per-block interface tables, calls / called-by, tag tables with addresses, HMI screen inventory. | Write project documentation from the cache: block catalogue, per-block interface tables, calls / called-by, tag tables with addresses, HMI screen inventory. |
| library_listList the types (blocks, PLC data types, faceplates…) of the project library or a global library, with versions, states and the default version. | List the types (blocks, PLC data types, faceplates…) of the project library or a global library, with versions, states and the default version. |
| plc_onlineOnline state of a PLC (Offline/Connecting/Online/Incompatible…), the PC interfaces TIA can reach it through and the target interfaces behind each — run before plc_download to pick pc_interface (and target_interface when there are several). | Online state of a PLC (Offline/Connecting/Online/Incompatible…), the PC interfaces TIA can reach it through and the target interfaces behind each — run before plc_download to pick pc_interface (and target_interface when there are several). |
| explain_errorLook up an error message (TIA Portal, Openness, compiler, import, tiax) in the field-proven knowledge base and return the matching entries with their rule and fix. | Look up an error message (TIA Portal, Openness, compiler, import, tiax) in the field-proven knowledge base and return the matching entries with their rule and fix. |
| verify_changeThe verify gate between a baseline cache and the cache taken after a change: 1 blast radius vs the declared targets (instance DBs of a target allowed), 2 block attributes (author, family, version, language, safety, memory layout), 3 interface (start value changes = warning), 4 scan shape (counts, failure ledger, readable %, fidelity regressions), 5 remanence and External* per member. | The verify gate between a baseline cache and the cache taken after a change: 1 blast radius vs the declared targets (instance DBs of a target allowed), 2 block attributes (author, family, version, language, safety, memory layout), 3 interface (start value changes = warning), 4 scan shape (counts, failure ledger, readable %, fidelity regressions), 5 remanence and External* per member. |
| audit_projectAudit the scanned project: multiple writers, declared-never-written and written-never-read members, unwired FB inputs at call sites, POKE/PEEK/BLKMOV with literal offsets, retain in volatile DBs and mixed lifetimes, external HMI tags with no PLC match (by name), lossy renderings, and the Modbus register-map self-check on Standard-layout DBs. | Audit the scanned project: multiple writers, declared-never-written and written-never-read members, unwired FB inputs at call sites, POKE/PEEK/BLKMOV with literal offsets, retain in volatile DBs and mixed lifetimes, external HMI tags with no PLC match (by name), lossy renderings, and the Modbus register-map self-check on Standard-layout DBs. |
| finding_verdictRecord a verdict on an audit finding (by fingerprint from audit_project): accepted (real, will fix or live with), false_positive, wont_fix, or open again. | Record a verdict on an audit finding (by fingerprint from audit_project): accepted (real, will fix or live with), false_positive, wont_fix, or open again. |
| workspace_initCreate the project workspace (the per-project work folder: tiatool.workspace.json, journal.jsonl, plan.json, assumptions.md, decisions.md, findings.json — plain text, git-friendly). | Create the project workspace (the per-project work folder: tiatool.workspace.json, journal.jsonl, plan.json, assumptions.md, decisions.md, findings.json — plain text, git-friendly). |
| workspace_statusOne-call situation report: workspace, cache freshness and format, active baseline, licence, plan task counts, last writes with their verify results, open assumptions and findings, and the suggested next step. | One-call situation report: workspace, cache freshness and format, active baseline, licence, plan task counts, last writes with their verify results, open assumptions and findings, and the suggested next step. |
| taskThe change plan (plan.json). | The change plan (plan.json). |
| assumptionThe numbered assumptions register (assumptions.md; knowledge/standards/assumptions-register.md). | The numbered assumptions register (assumptions.md; knowledge/standards/assumptions-register.md). |
| decision_addAppend a decision to decisions.md (what was decided, why, by whom). | Append a decision to decisions.md (what was decided, why, by whom). |
| baseline_setFreeze the current cache as a named baseline (copied to snapshots/<name>) and make it the active baseline that verify_change and project_diff compare against. | Freeze the current cache as a named baseline (copied to snapshots/<name>) and make it the active baseline that verify_change and project_diff compare against. |
| template_listList the equipment templates (built-in, %APPDATA%\TIATool\templates overrides, <workspace>/templates overrides) with version, FB name, signal/alarm counts and where each comes from. | List the equipment templates (built-in, %APPDATA%\TIATool\templates overrides, <workspace>/templates overrides) with version, FB name, signal/alarm counts and where each comes from. |
| template_showShow one template: signals (role, direction, type, required), parameters with defaults and units, HMI commands and statuses, interlock input, ISA-18.2 alarms, compliance notes (to confirm), SimHarness tests, and the SclSelfCheck result. | Show one template: signals (role, direction, type, required), parameters with defaults and units, HMI commands and statuses, interlock input, ISA-18.2 alarms, compliance notes (to confirm), SimHarness tests, and the SclSelfCheck result. |
| model_validateCheck the equipment model (<workspace>/model/equipment.json, schema tiatool.equipment/1) without TIA Portal: templates exist, io roles and addresses (direction, size, clashes across the whole model), params, interlocks and cross-references (TAG.status), alarm overrides, cultures and CPU family. | Check the equipment model (<workspace>/model/equipment.json, schema tiatool.equipment/1) without TIA Portal: templates exist, io roles and addresses (direction, size, clashes across the whole model), params, interlocks and cross-references (TAG.status), alarm overrides, cultures and CPU family. |
| model_generateGenerate a build_from_source folder from the equipment model into <workspace>/build/<batch>/: UDTs, the used template FBs, instance DBs, the DB_HMI command/status interface DB, Equipment/Comms/CyclicControl FCs with interlocks, tag tables per area, alarms in every culture, SimHarness specs, Markdown docs (equipment list, as-built I/O, ISA-18.2 alarm list, HMI interface manual) and generation.json. | Generate a build_from_source folder from the equipment model into <workspace>/build/<batch>/: UDTs, the used template FBs, instance DBs, the DB_HMI command/status interface DB, Equipment/Comms/CyclicControl FCs with interlocks, tag tables per area, alarms in every culture, SimHarness specs, Markdown docs (equipment list, as-built I/O, ISA-18.2 alarm list, HMI interface manual) and generation.json. |
| model_from_io_listDraft model/equipment.json from an I/O list (CSV/XLSX/tab text with name, address, type, comment, table): tags like I_BP1_Running / Q_BP1_Run are grouped by equipment and matched to the template whose signals fit best. | Draft model/equipment.json from an I/O list (CSV/XLSX/tab text with name, address, type, comment, table): tags like I_BP1_Running / Q_BP1_Run are grouped by equipment and matched to the template whose signals fit best. |
| template_extractTurn an FB from the scanned project (cache) into a template skeleton in <workspace>/templates/<id>/ (template.json + fb.scl): interface → parameters and statuses; the body is copied only when the block's fidelity is native SCL. | Turn an FB from the scanned project (cache) into a template skeleton in <workspace>/templates/<id>/ (template.json + fb.scl): interface → parameters and statuses; the body is copied only when the block's fidelity is native SCL. |
| openness_browseExplore the LIVE Openness object model of the project — anything Openness exposes, including what no dedicated tool covers. | Explore the LIVE Openness object model of the project — anything Openness exposes, including what no dedicated tool covers. |
| openness_getRead ONE attribute of a live Openness object, with its access mode and types. | Read ONE attribute of a live Openness object, with its access mode and types. |
| find_toolSearch the FULL tool catalog by name and description — including tools this session does not list (tiax-agent --toolset). | Search the FULL tool catalog by name and description — including tools this session does not list (tiax-agent --toolset). |
| script_checkCompile a C# Openness script and check it against the guard rail — nothing runs and no project is opened. | Compile a C# Openness script and check it against the guard rail — nothing runs and no project is opened. |
| extension_savePromote a script that compiled AND ran successfully in this session (script_run) to a reusable extension: writes <workspace>/extensions/<id>/extension.json + script.cs (or %APPDATA%\TIATool\extensions without a workspace) with provenance (script sha256, run_id) and status unverified. | Promote a script that compiled AND ran successfully in this session (script_run) to a reusable extension: writes <workspace>/extensions/<id>/extension.json + script.cs (or %APPDATA%\TIATool\extensions without a workspace) with provenance (script sha256, run_id) and status unverified. |
| extension_listSearch the extension library: built-in pack (~40 live Openness scripts + offline cache queries: watch/force tables, text lists, technology objects, libraries, network, HMI, UMAC, tags, UDTs, blocks...), then %APPDATA%\TIATool\extensions and <workspace>/extensions overrides. | Search the extension library: built-in pack (~40 live Openness scripts + offline cache queries: watch/force tables, text lists, technology objects, libraries, network, HMI, UMAC, tags, UDTs, blocks...), then %APPDATA%\TIATool\extensions and <workspace>/extensions overrides. |
| extension_showOne extension in full: manifest (description, parameters as JSON Schema, mode, min_tia, status, provenance), where it comes from (builtin / user / workspace override) and its code (script.cs or query.js). | One extension in full: manifest (description, parameters as JSON Schema, mode, min_tia, status, provenance), where it comes from (builtin / user / workspace override) and its code (script.cs or query.js). |
| cache_queryRun JavaScript over the scanned cache — offline, read-only, no TIA Portal — for any question the fixed cache tools do not answer. | Run JavaScript over the scanned cache — offline, read-only, no TIA Portal — for any question the fixed cache tools do not answer. |
| knowledge_addRecord what this session learned so the next one does not hit it again: writes a knowledge-base entry (<workspace>/knowledge/learned/<slug>.md, or %APPDATA%\TIATool\knowledge\learned without a workspace) in the built-in format. | Record what this session learned so the next one does not hit it again: writes a knowledge-base entry (<workspace>/knowledge/learned/<slug>.md, or %APPDATA%\TIATool\knowledge\learned without a workspace) in the built-in format. |
| project_archiveArchive the REAL project to a compressed .zapNN file (Project.Archive). | Archive the REAL project to a compressed .zapNN file (Project.Archive). |
| project_retrieveRetrieve a .zapNN archive into a NEW folder (missing or empty) and report the project file found there. | Retrieve a .zapNN archive into a NEW folder (missing or empty) and report the project file found there. |
| scl_lintCheck SCL source text before it goes anywhere near TIA: every FUNCTION_BLOCK, FUNCTION, DATA_BLOCK, TYPE and ORGANIZATION_BLOCK, with line numbers. | Check SCL source text before it goes anywhere near TIA: every FUNCTION_BLOCK, FUNCTION, DATA_BLOCK, TYPE and ORGANIZATION_BLOCK, with line numbers. |
| plc_compare_onlinecompare the REAL project's PLC software with what runs on the PLC (offline vs online, the CompareToOnline tree) and list what differs. | compare the REAL project's PLC software with what runs on the PLC (offline vs online, the CompareToOnline tree) and list what differs. |
Reads or writes 7 tools
Depends on the action: reads (for example an export without compile) leave the project alone; other actions change it.
| Tool | What it does |
|---|---|
| export_projectExport all PLC blocks, tag tables, types, watch tables and external sources from the REAL project to SIMATIC ML XML in output_folder. | Export all PLC blocks, tag tables, types, watch tables and external sources from the REAL project to SIMATIC ML XML in output_folder. |
| alarm_textsPLC alarm text lists as Excel: action=export writes the XLSX (two sheets, lists + entries); edit it (or let the model fill translations); action=import overrides the lists from it (entries of a list in the file replace that list's entries). | PLC alarm text lists as Excel: action=export writes the XLSX (two sheets, lists + entries); edit it (or let the model fill translations); action=import overrides the lists from it (entries of a list in the file replace that list's entries). |
| plcsimControl S7-PLCSIM Advanced: action list | start (register, power on, RUN) | stop | read (tags) | write (set). | Control S7-PLCSIM Advanced: action list | start (register, power on, RUN) | stop | read (tags) | write (set). |
| restore_backupRestore a project from one of its timestamped restore points. | Restore a project from one of its timestamped restore points. |
| openness_invokeRun one Openness ACTION on a live object (the actions openness_browse lists, with their parameter types). | Run one Openness ACTION on a live object (the actions openness_browse lists, with their parameter types). |
| script_runRun a C# script against the REAL project inside the TIATool engine. | Run a C# script against the REAL project inside the TIATool engine. |
| extension_runRun a saved extension (built-in, %APPDATA%\TIATool\extensions or <workspace>/extensions) against the REAL project. | Run a saved extension (built-in, %APPDATA%\TIATool\extensions or <workspace>/extensions) against the REAL project. |
Writes 15 tools
Changes a TIA Portal project: a backup is taken first. Its dry run or preview only reads.
| Tool | What it does |
|---|---|
| compile_projectCompile every PLC and HMI target in the REAL project (or the plc / hmi named, or only the given blocks of one PLC) and save it. | Compile every PLC and HMI target in the REAL project (or the plc / hmi named, or only the given blocks of one PLC) and save it. |
| clean_sourcesDelete leftover external source files from the REAL project (they break TIA's Search and Cross-references) and remove the stale XRef cache. | Delete leftover external source files from the REAL project (they break TIA's Search and Cross-references) and remove the stale XRef cache. |
| build_from_sourceGenerate the REAL project from a source folder: hardware.json modules, TagTables/*.xml, *.scl block sources, optional HmiTags, then compile. | Generate the REAL project from a source folder: hardware.json modules, TagTables/*.xml, *.scl block sources, optional HmiTags, then compile. |
| import_blockSurgically import ONE edited SIMATIC ML block XML into the REAL project, overriding the block of the same name inside a transaction. | Surgically import ONE edited SIMATIC ML block XML into the REAL project, overriding the block of the same name inside a transaction. |
| hmi_import_screensImport every *.xml in screens_folder as an HMI screen, overwriting by name. | Import every *.xml in screens_folder as an HMI screen, overwriting by name. |
| hmi_import_tagsImport HMI tags ONE PER FILE: tag_files_dir holds one subfolder per (existing) tag table, each containing <TagName>.xml files. | Import HMI tags ONE PER FILE: tag_files_dir holds one subfolder per (existing) tag table, each containing <TagName>.xml files. |
| add_project_languagesAdd cultures to the project's active languages, e.g. | Add cultures to the project's active languages, e.g. |
| hardware_importImport hardware from an AutomationML (.aml) file into the REAL project via the CAx interface — devices, modules by order number + firmware, tag tables. | Import hardware from an AutomationML (.aml) file into the REAL project via the CAx interface — devices, modules by order number + firmware, tag tables. |
| library_useUse a library type in the REAL project: instantiate a released block/PLC-data-type version into a PLC (keeps the link to the type), or with update=true update all instances in the PLC to the latest released version. | Use a library type in the REAL project: instantiate a released block/PLC-data-type version into a PLC (keeps the link to the type), or with update=true update all instances in the PLC to the latest released version. |
| plc_downloadDownload the compiled program (and optionally hardware config) to a real PLC or a PLCSIM Advanced instance. | Download the compiled program (and optionally hardware config) to a real PLC or a PLCSIM Advanced instance. |
| unified_buildGenerate WinCC Unified screens from a JSON spec into the REAL project: screens, items (HmiButton, HmiIOField, HmiText, HmiCircle, HmiRectangle…) with position/size/text, tag bindings (validated against the HMI tag tables), Release-event navigation buttons, and discrete alarms (from generate_alarms). | Generate WinCC Unified screens from a JSON spec into the REAL project: screens, items (HmiButton, HmiIOField, HmiText, HmiCircle, HmiRectangle…) with position/size/text, tag bindings (validated against the HMI tag tables), Release-event navigation buttons, and discrete alarms (from generate_alarms). |
| plcsim_testRun an input→output test spec against a PLCSIM Advanced instance: per case set inputs, wait, assert outputs (Bool/Int exact, Real with tolerance or {min,max}). | Run an input→output test spec against a PLCSIM Advanced instance: per case set inputs, wait, assert outputs (Bool/Int exact, Real with tolerance or {min,max}). |
| openness_setWRITE one attribute of a live Openness object (any writable attribute openness_browse lists). | WRITE one attribute of a live Openness object (any writable attribute openness_browse lists). |
| project_createCreate a new, empty TIA project. | Create a new, empty TIA project. |
| scl_applyApply SCL source text to ONE PLC of the REAL project: scl_lint first (errors refuse; warnings refuse unless confirm=true), backup, generate the blocks through a temporary external source that is deleted again, compile only that PLC, save. | Apply SCL source text to ONE PLC of the REAL project: scl_lint first (errors refuse; warnings refuse unless confirm=true), backup, generate the blocks through a temporary external source that is deleted again, compile only that PLC, save. |