How should a local agent get access to your site’s historian?
Published studies, vendor documents and security guidance, January 2023 to November 2026 · no experiment on this page · the first of five on a local agent and a site’s own data
We read what has been published on language-model agents reading plant historians, what the historian vendors offer and what security guidance says, then compared five ways to give an agent running on site access to the data.
What we found
- The tag is the weak stepA prototype on an ABB historian turned the question’s time into a query right in 30 of 30 questions, but chose the right tags in only 18 of 30.
- A query that runs can be wrongA 2-billion-parameter model on a factory’s live time-series database wrote eight queries for time-dependent totals; all eight ran, none gave the exact answer.
- Not yet shown at a mineOf nine studies we coded, one had a local model, real records, read-only access and scored answers together: one wind turbine’s archived file. None at a mine or concentrator.
- Read-only is not enoughThree risks remain with read-only access: a shared account showing data a user should not see, a long query loading the historian, and text in a tag description steering the agent.
- Method
- 01What has been published
- 02Five ways in
- 03What read-only leaves
- 04Our approach
- 05At your site
- Sources
Method
Four questions, searched and read, then coded
- SearchedFour research questionsPublished agents reading historian or time-series data; what historian vendors offer agents; guidance on safe access to operational data; how large tag lists are made findable. Each run by Codex (gpt-6.2-astra, highest reasoning, web search), primary sources preferred, dates checked.
- CodedNine studies, four marks eachEach study marked on what it reports: a local model (run on the user’s own hardware, not a cloud service), real records, read-only access, answers scored against a reference. “Not reported” is not “no”.
- ComparedFive ways inEach judged on four questions: can it change plant data, do readings leave the site, can it overload the historian, does it find the right tag.
- Not testedHere, nothing ranThe recommended layout is built in No. 18 and tested with a local 27B model in Nos. 19 to 21. No. 18 builds the tools, the catalogue and the limits; rights per user and the user in the log are not built there.
Limits: what we found is what the searches turned up by 23 November 2026; vendor documents describe capability, not use; the marks are our reading of each publication. The four research answers with every source, the codings and the comparison: the article’s public repository.
01 · What has been published
Agents that read plant data, and what was checked
Nine selected studies and reports since 2023 in which an agent read plant or equipment records. Most leave out where the model ran or what the agent was allowed to do, and few score whether it read the right tag.
Each study’s main number is its own, on its own questions; they do not compare with each other. Vendor demonstrations and open-source connectors (several for the PI System, InfluxDB, Ignition and WinCC OA) are listed in the repository; none reports a scored run at a mine.
02 · Five ways in
From a file export to a searchable catalogue
Five ways a site can let an agent read its historian, each judged on four questions. Pick one to see why.
Green is the safe answer, sand depends on the set-up, red is the risk. With the model, tools and logs on site and the server’s routes out closed, no option but the vendor cloud sends readings off site.
Only the last row is green on all four: read-only tools, limits on every call, and a catalogue the agent searches before it reads. No. 18 builds it.
03 · What read-only leaves
Three risks, and a record
A read-only account stops the agent changing anything through it. It does not stop these, so they are handled outside the model, in the service the agent calls.
| Risk | What happens | What limits it |
|---|---|---|
| One account for everyone | The agent answers each user with the service’s rights, so a user can see tags they otherwise could not. | Check each user’s rights in the service, searches included. |
| A heavy query | Years of raw values across many tags load the historian the control room also uses. | Limits per call on tags, values and window, and on calls per minute; summaries first; a one-way copy to read from. |
| Text that steers | A tag description or operator note written like an instruction can change the agent’s next step. | Tools that can only read; tool output treated as data; every call logged. |
| No record | Nobody can say later who asked for which data. | Log the user, tags, window, allowed or refused, rows returned and time taken; never the credentials. |
04 · Our approach
Read-only tools and a catalogue, on a copy, on site
The agent reads a copy of the historian fed one way out of the plant network, as the UK’s national cyber security centre describes for business access. A read-only connector, a nightly catalogue, an MCP server with limits and a log, and the model all run on one site server.
Where a site has no copy in a DMZ, the same parts read the historian itself through a read-only account, with the limits doing more of the work: more exposure, and a decision for the site’s control-system team.
05 · At your site
Before an agent reads your historian
- Keep the model, tools and logs on siteAnd close the server’s routes out: then no reading can leave, whatever the agent asks for. Check where every tool sends its results.
- Give it tools, not a loginA few fixed read tools over a read-only account, with limits per call, rather than a database account it writes queries against.
- Give it a way to find tagsA searchable catalogue of the tag list, crawled on a schedule, with units and health: choosing the tag is the step that fails.
- Read from a copy where you canA historian copy fed one way keeps the agent’s queries off the plant network.
- Score it on your own questionsRight tag, right value for the time and unit, and nothing it could change: three separate checks, before anyone relies on it.
Sources
- Korpela, O. (2025). Master’s thesis on a plain-language interface to an ABB historian, Tampere University. trepo.tuni.fi.
- Dranca, L. et al. (2026). LLMs for industrial databases: an agro-food production plant use case. Frontiers in Artificial Intelligence. doi.org/10.3389/frai.2026.1764367.
- Rayfield, J. T. et al. (2025). ReAct meets industrial IoT: language agents for data access. EMNLP 2025 Industry Track. aclanthology.org/2025.emnlp-industry.24.
- Mulayim, O. B. et al. (2025). Extraction and analysis of time series data from building automation systems using large language models. Lawrence Berkeley National Laboratory. eta.lbl.gov.
- Siregar, F. (2026). Integrating AI language model with WinCC OA using MCP. Master’s thesis, Novia University of Applied Sciences. theseus.fi.
- Hasan, A., Widyotriatmo, A. and Nguyen, D. T. (2026). An open-weight large language model agent for condition monitoring and predictive maintenance in wind energy systems. Energy and AI. doi.org/10.1016/j.egyai.2026.100828.
- Sun, Y., Han, Y. and Liu, X. (2025). Intelligent gas risk assessment and report generation for coal mines. Electronics 14(2), 379. mdpi.com/2079-9292/14/2/379.
- Alvarez Garcia, N., Puyt, A. and Thoma, D. (2026). Proving the value of context in AI-driven industrial operations. Intel Foundry and Formant. intel.com.
- Nexa Resources Perú (2025). Memoria Anual 2024, p. 107. smv.gob.pe.
- UK National Cyber Security Centre and partners (2026). Secure connectivity principles for operational technology, principle 4. ncsc.gov.uk.
- CISA, ASD’s ACSC and partners (2025). Principles for the secure integration of artificial intelligence in operational technology. cyber.gov.au.
- Model Context Protocol specification, tools: security considerations. modelcontextprotocol.io.
- OWASP GenAI Security Project, Top 10 for LLM applications: excessive agency. github.com/GenAI-Security-Project.
- AVEVA PI Web API reference. docs.aveva.com.