[ 01 · AI · 2026 ]

Production configuration: from SQL to an LLM agent with MCP

Configuring production in the MES (product, line, labels, Siemens PLC recipes) was SQL that only development could run. Now each domain has its screen with validation and, on top, an LLM agent that uses those same functions through MCP and proposes changes as drafts, which the user applies.

1 · Line · What gets configured

The recipes set up here are the operations each PLC receives: what to screw, what to flash, what to test, and which label each station prints.

2 · Communications · Through the API, never direct

Screens and the agent talk to the MES API, with its validations: neither goes straight to the database.

3 · MES · One screen per domain

Part name, labels, SIM, branding, screens, serials and recipes, each with its screen; the hub that brings them together; the recipe manager, with a preview; and Changes, with undo.

4 · Agent · MCP and drafts

The MCP server exposes the same functions as the screens, with the asking user’s permissions: 14 for reading and one for drafts. The model proposes; the user applies.

My role
System and screen design, and development
When
2026
Where
Barcelona and Arlington plants
Built with
Angular, Node.js, TypeScript, PostgreSQL, MCP

The situation

Setting up production for a new charger means deciding its keys, which label each station prints and on which printer, which SIM and which brand it carries, which screens the operator sees and which recipe the PLC runs. Until this year all of that was SQL against the production database, with no validation, and only development could run it.

Every request from process or engineering was a ticket waiting its turn. Over 14 months of priority meetings, configuration took 53% of the time, and a product configuration task stayed…

Related

  1. 02 2026 MQTT: before and afterEvery MQTT entry point, reworked one by one: in parallel, indexed, with no wasted queries, and cached. Data 55 s → 0.9 s
  2. 03 2025 Plant: health and restartCapability-based monitoring of the factory’s services, and recovery with nobody touching anything. Plant 3 min, no one involved

Request an invitation

For a hiring process or a specific job, freelance included. Tell me what it is about: I read it myself and, if it fits, you get in from this same browser or receive a personal link.

The job post, the project or who sent you the link.
The role or the job, in a few lines.