Skip to main content

MCP server

The Console contains an MCP server (Model Context Protocol). An AI assistant that speaks MCP can read your plant (live values, history, alarms, OEE, the plant graph) and can propose changes. It can never change anything itself: a person approves and executes every proposal in the Console.

The assistant brings its own AI. The Console only provides plant data and tools.

Settings, AI connections: MCP endpoint, credentials and connection guides
Settings, AI connections: MCP endpoint, credentials and connection guides

How it works​

Safety properties:

  • There is no write tool. Propose tools create a pending proposal.
  • Reads use the credential's own limits: the owner's roles, the access ceiling, toolsets, devices, path prefix and the owner's scoped access.
  • Egress rules (see Governance) withhold values. Withheld objects keep their name and say withheld. If the policy cannot be read, nothing is sent.
  • Names, notes and messages in plant data are returned as untrusted data, clipped, and never used as instructions.
  • Passwords, keys and tokens are redacted.

Endpoint and transport​

Addresshttps://<console>/api/v2/mcp (copy it from Settings → AI connections → MCP endpoint, Copy URL)
TransportStreamable HTTP. POST carries JSON-RPC (initialize, tools/list, tools/call, resources, prompts). GET returns the catalogue. DELETE ends a session.
HeaderAuthorization: Bearer mii_ac_...
MCP versions2024-11-05 up to 2025-11-25, and 2026-07-28

Optional query parameters on the address: ?profile=core|full, ?toolsets=see,monitor, ?output=compact|full. GET /api/v2/mcp?export=cursor|claude returns ready-made client settings.

Use HTTPS. Over plain HTTP the secret travels unencrypted, and the Console UI warns about it.

Create a credential​

Each assistant gets its own credential. A credential is a secret that starts with mii_ac_.

  1. Sign in as a user with the manage_users permission (administrators have it).
  2. Open Settings → AI connections.
  3. In Credentials, enter a Name, for example Claude Desktop.
  4. Choose an Access ceiling:
    • Read-only (see + history): read_config, read_history.
    • Operator (read + propose acknowledge): adds operate_runtime, ack_alarms.
    • Engineer (read + propose changes and tag writes): adds write_tags, configure_devices.
  5. Click Create credential.
  6. Copy the secret with Copy secret and click I have saved it. The secret is shown once and only a hash is stored. If you lose it, revoke the credential and create a new one.
Ceiling and owner

The ceiling is intersected with the roles of the credential's owner, so it can never exceed what the owner may do. Whatever the ceiling, an agent credential is always denied read_audit, manage_users, manage_identity, import_config and approve_dashboards.

The list shows Name, Ceiling, Created, Last used and the state (Active or Revoked). Revoke takes effect on the next message and cannot be undone. Creating credentials needs manage_users; other users see "Managing credentials requires the user-management permission."

You can also manage credentials with the API: POST /api/v2/agent-credentials (name, capabilities, toolsets, optional mcpProfile), GET, PATCH and DELETE /api/v2/agent-credentials/{id}.

Profiles and toolsets​

ProfileTools listedUse
core (default for new credentials)18Compact answers within a token budget. Other tools are found with mii_tool_search and run with mii_tool_run.
fullall 91People and credentials created earlier.

A profile is not a permission. Toolsets are see, history, understand, monitor, act, build and meta. Cursor limits the number of tools over all servers, so keep core there.

Connect an assistant​

The Console page Settings → AI connections shows these guides under "Connect an assistant". The steps follow vendor documentation of November 2026 and, as the page itself says, are not tried out with every product yet; menus may differ.

claude mcp add --transport http makeintelligent https://<console>/api/v2/mcp \
--header "Authorization: Bearer mii_ac_..."
claude mcp list

The Console can stay on the plant network; the client runs on your computer. With a private certificate authority set NODE_EXTRA_CA_CERTS=/path/ca.pem. The prompts appear as slash commands. Check it by asking "which alarms are active?"; the assistant should call mii_monitor_alarms.

Test with curl​

URL=https://<console>/api/v2/mcp
H="Authorization: Bearer $MII_MCP_TOKEN"
curl -s -H "$H" -H 'Content-Type: application/json' "$URL" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
curl -s -H "$H" -H 'Content-Type: application/json' "$URL" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"mii_find","arguments":{"query":"Filler speed"}}}'

The Console also has a Test this credential button. It runs initialize and tools/list and reports the MCP version and tool count.

Stdio bridge​

For clients that only speak stdio, the mi-mcp bridge forwards JSON-RPC lines to the HTTPS endpoint. It reads MI_MCP_URL (the endpoint), MI_MCP_TOKEN or MI_MCP_TOKEN_FILE (required: a Console token or a mii_ac_ secret) and MI_MCP_INSECURE (lab only).

OAuth and ChatGPT

The Console accepts a Bearer secret in the Authorization header. Other sign-in methods (OAuth) are not offered in the Console UI, and the Console says "ChatGPT cannot connect directly", because ChatGPT connectors need OAuth or no sign-in. The server code contains OAuth routes, but they are parked (there is no consent page yet) and are not a supported way to connect. Do not put a no-sign-in proxy in front of the Console: anyone who finds it could read plant data.

Tools​

Every tool needs at least read_config; the capability a tool needs is listed where it differs. Names and descriptions are the real tool names. Common arguments: name (a spoken name resolved like mii_find does, used instead of an id), lang (en or tr for summary lines), durations such as 30m, 1h, 7d, and times in RFC 3339. A result with truncation is incomplete: narrow the query or use nextCursor.

Kind: Read returns data; Propose creates a pending proposal and changes nothing; Decide exists only where the plant allows it, and never for agent credentials.

Core tools (listed in the core profile)​

mii_find, mii_see_read, mii_history_series, mii_kg_equipment_state, mii_analyze_what_changed, mii_analyze_explain_alarm, mii_analyze_explain_stop, mii_analyze_shift_summary, mii_analyze_root_cause, mii_process_current, mii_sor_oee, mii_monitor_alarms, mii_act_proposal_get, mii_act_propose_write_tag, mii_act_outcome, mii_build_propose_dashboard_create, mii_tool_search, mii_tool_run.

See​

ToolWhat it doesKey parametersKind
mii_findTurns spoken names ("pump 2 pressure") into tag and equipment ids. Returns resolved, needs_clarification (ranked candidates and a question to ask the person) or not_found.query (required, max 300 characters), kind (any, tag, equipment), maxItems (1 to 50, default 12)Read
mii_see_readCurrent value of up to 32 tags with unit, quality and time.tagIds (1 to 32) or nameRead
mii_see_valuesLive values, optionally limited.deviceId, pathPrefix, quality (good, uncertain, bad, unknown), query, maxItems, cursor, nameRead
mii_see_find (old name mii_find_values)Live values whose name, path or device contains all words.query (required)Read
mii_see_describeUnit, type, device, last value and source of one tag.tagId, path or nameRead

History (needs read_history)​

ToolWhat it doesKey parametersKind
mii_history_seriesOne tag over a range, at most 7 days per call. Bad points carry no value.from (required), to (default now), tagId/path/name, maxPoints (default 2000), cursorRead
mii_history_lastLast recorded point or points of a tag.tag selectorRead
mii_history_tableSeveral tags over one range, as rows.tags, rangeRead
mii_history_exploreLists tags that have history.Read

Understand​

ToolWhat it doesKey parametersKind
mii_understand_graphCompact plant graph.Read
mii_understand_impact (old name mii_impact)What is affected if a node stops, from free text.Read
mii_understand_locateFinds an equipment and its devices by name.Read
mii_understand_trace_valueWhere a value comes from: tag, device, driver, Site Runtime.Read
mii_understand_list_edgesLinks between equipment (feeds, controls, depends_on).Read
mii_understand_modelThe ISA-95 model: site, area, line, equipment and tag counts.Read
mii_kg_graphNodes and links around a node.Read
mii_kg_impactDownstream hops of an equipment or device.id or nameRead
mii_kg_equipment_stateCurrent state of one equipment with its important tags.equipment (id) or nameRead
mii_kg_libraryBuilt-in equipment class templates.Read
mii_kg_library_classOne class template with its properties.Read
mii_kg_edgesStored graph links.Read
mii_kg_vocabularyRelations, kinds, quantities and roles.Read
mii_kg_suggest_semanticsSuggested quantity and role for an equipment's tags. Nothing is applied.Read
mii_kg_migration_reportReport of the old-link migration.Read
mii_config_changes (read_history)Configuration and setpoint change log.from, toRead
mii_unit_historyA series' unit over time. Never aggregate across unit segments.Read

Analyze (needs read_history; the tools compute, the assistant explains)​

ToolWhat it doesKey parametersKind
mii_analyze_what_changedWhat differs in a part of the plant compared to a reference period.scope (required), window (default 1h), reference (default 24h), at, langRead
mii_analyze_explain_alarmWhy an alarm may have come, ordered by evidence.alarmId (from mii_monitor_alarms) or tagId/path/name, window (default 30m), at, langRead
mii_analyze_explain_stopThe newest stop of an equipment and what preceded it.equipment (required), window (default 30m), at, langRead
mii_analyze_shift_summaryOne shift of a plant part: run time, stops, alarms, unusual tags, configuration changes.scope (required), shift (current or previous), from, to, langRead
mii_analyze_root_causeRanked candidates with evidence. Candidates, not causes.scope or tagId/path/name, window (default 1h), at, langRead
mii_analyze_tagUsual level, steps, trend with time to limit, gaps and stuck signal.tagId/path/name, from, toRead
mii_analyze_compareCompares two periods and says whether the difference exceeds chance.fromA, toA, fromB, toB (required), tag or scopeRead
mii_analyze_correlateWhich tags move with one tag, and with what delay.tag or scope, with (max 24 tag ids), maxLag (default 10m), from, toRead
mii_analyze_healthEquipment against its class limits.equipment (required), window (default 24h)Read
mii_analyze_data_qualityGaps and failed reads for a tag (default last 24 h).tag selectorRead

Monitor, process and production​

ToolWhat it doesKey parametersKind
mii_process_currentCurrent shift, site time zone, running production orders and open stops.siteRead
mii_sor_oee (read_history)OEE: availability, performance, quality (ratios 0 to 1) and counts.equipment, from (default 7 days before to), to, group (total, shift, day, order), orderRead
mii_sor_oee_currentOEE of the running shift.Read
mii_sor_oee_lossesDowntime by reason (Pareto).Read
mii_monitor_alarmsAlarms active now.query, limit, cursorRead
mii_monitor_inventory (old name mii_inventory)Plant inventory.Read
mii_monitor_devicesDevices and their state.Read
mii_monitor_runtimesSite Runtimes with last heartbeats.Read
mii_monitor_runtime_detailOne Site Runtime in detail.Read
mii_monitor_systemSystem state.Read
mii_monitor_qualityTags with bad, uncertain or old values.Read
mii_monitor_uplinks, mii_monitor_uplink_getUplinks and one uplink.Read
mii_monitor_subscriptionsUplink subscriptions.Read
mii_monitor_alarm_journalAlarm journal.Read
mii_monitor_alarm_definitionsAlarm definitions.Read
mii_monitor_opsConsole version and uptime, disk, database size, backup status, runtime health.Read
mii_monitor_change_log (read_audit)Who changed what, from the audit chain.Read
mii_process_downtimeStops with reasons, a Pareto and totalSeconds (default last 24 h).Read
mii_process_ordersProduction orders: queue, running, done.Read
mii_governance_withheldTags withheld by the egress policy and why. Never values.Read

Act (propose only)​

ToolWhat it doesKey parametersKind
mii_act_propose_write_tag (write_tags)Propose writing a value to a tag. Tags with a safe-write policy must have min and max set.deviceId, tagId, value (required: number, boolean or string), reason (max 2000 characters), analysisIdPropose
mii_act_propose_ack_alarms (ack_alarms)Propose to acknowledge or shelve alarms.alarmIds (1 to 50, required), action (ack or shelve), reason, analysisIdPropose
mii_act_proposal_getState of one proposal.id (required)Read
mii_act_proposalsList proposals.Read
mii_act_outcome (read_history)What an executed proposal changed, with evidence tags before and after.id (required), window, langRead
mii_act_auditWho proposed, decided and executed.Read
mii_act_approve, mii_act_reject, mii_act_executeDecide. Exist only when the plant sets MI_MCP_ALLOW_HITL_EXECUTE=true, only for people, never for agent credentials.Decide

Build (propose only)​

ToolWhat it doesKey parametersKind
mii_build_list_devices, mii_build_get_deviceDevices and one device.Read
mii_build_list_rules, mii_build_list_dashboards, mii_build_list_uplinks, mii_build_list_protocolsRules, dashboards, uplinks, protocols.Read
mii_build_propose_dashboard_createPropose a dashboard. The server builds the layout from an equipment. Approval needs approve_dashboards.equipment (id or code) or dashboard (object with a name; panels only without equipment), reason, analysisIdPropose
mii_build_propose_dashboard_update, mii_build_propose_dashboard_deleteChange or delete a dashboard.Propose
mii_build_propose_device_createPropose a device.name, protocolId, runtimeId, equipmentId, configuration (host, port)Propose
mii_build_propose_device_update, mii_build_propose_device_deleteChange or delete a device (delete is high risk).Propose
mii_build_propose_tags_upsertAdd or change tags, up to 1000 per group. pruneToNames removes the others.Propose
mii_build_propose_rule_create, mii_build_propose_rule_deleteCreate or delete a rule.Propose
mii_build_propose_uplink_create, mii_build_propose_uplink_deleteCreate or delete an uplink.Propose
mii_build_propose_graph_edgeAdd, change or delete a plant graph link.Propose

Meta​

ToolWhat it doesKey parametersKind
mii_tool_searchFinds tools that are not listed, by task, in English or Turkish.query (required), toolset, limit (default 6, max 20)Read
mii_tool_runRuns a found read-only tool. Refuses propose tools.name (required), argumentsRead
mii_meta_whoami, mii_meta_plant, mii_meta_capabilities, mii_meta_toolsets, mii_meta_licenceWho you are, plant info, your capabilities, toolsets, licence.Read

Resources and prompts​

Resources: mii://plant, mii://inventory, mii://graph, mii://alarms/active, mii://uplinks, mii://protocols, mii://kg/vocabulary, mii://docs/safety, mii://device/{deviceId}, mii://tag/{tagId}, mii://equipment/{equipmentId}/state.

Prompts (English and Turkish): shift_handover, why_did_it_stop, explain_alarm, what_changed, compare_periods, oee_review, propose_setpoint, diagnose_stale_or_bad, impact_of_outage, explain_value, onboard_device, uplink_health, pick_protocol.

Example conversation​

A shift lead connects Claude Code with an operator credential. The values below are illustrative.

You: Why did the Filler stop on Line 1?

Assistant: (calls mii_find with "Filler", then mii_analyze_explain_stop for the Filler.) The newest stop began at 10:42. Before it, Pressure on the Compressor fell from 6.8 to 5.1 bar (quality good). These are candidates, not proven causes.

You: Propose to set the Filler speed setpoint to 90.

Assistant: (reads the tag with mii_see_read, then calls mii_act_propose_write_tag.) I created proposal prop_... for DEMOFOODS/IZMIR/BOTTLING/LINE1/FILLER/SpeedSetpoint = 90. Current value is 120. Nothing is written yet; a person must approve it in Approvals.

The assistant must not say something was changed until mii_act_proposal_get reports the proposal as executed.

Permissions and audit​

  • Authentication failures: 401 means the secret is missing, wrong, disabled, or its owner is disabled. 403 means no read_config, or a browser Origin that is not allowed (MI_MCP_ALLOWED_ORIGINS). 404 with a session id means the session ended and the client must initialize again. 429 means a limit was reached (see Retry-After). 503 means MCP is switched off.
  • Limits per credential and minute: 600 messages, 120 calls and 10 proposals.
  • Kill switch: PUT /api/v2/mcp/settings with {"enabled": false, "reason": "..."} (needs manage_users). While it is off every request gets 503, on every Console within about two seconds.
  • End sessions: POST /api/v2/mcp/sessions/revoke with {"credentialId": "..."}, {"userId": "..."} or {"all": true}. Sessions are not logins; to lock a client out, revoke its credential.
  • Audit: every call is recorded: who, client, tool, result, time, size and a digest of the arguments, never the arguments or values. A call that cannot be audited is not answered. Read it with GET /api/v2/mcp/usage and GET /api/v2/mcp/usage/calls (needs read_audit). Retention: MI_MCP_AUDIT_RETENTION_DAYS (default 365, 7 to 3650).
  • Metrics: mi_console_mcp_calls_total, mi_console_mcp_call_seconds, mi_console_mcp_response_bytes, mi_console_mcp_withheld_total.

MCP error codes​

Returned in the error text and in _meta["com.makeitintelligent/error"].

CodeMeaningWhat to do
MI-MCP-400An argument is missing, unknown or has the wrong type.Correct it and call again.
MI-MCP-403The credential may not use the tool or see the object.Do not repeat; ask for access.
MI-MCP-404Unknown id or name, or out of scope.Look it up with mii_find.
MI-MCP-409The object is not in a state that allows this.Read its state, then decide again.
MI-MCP-413The result is too large.Narrow the query or time range.
MI-MCP-429Too many calls.Wait for Retry-After.
MI-MCP-500The call failed.Try once more, then tell the person.
MI-MCP-502Console, historian or Site Runtime answered with an error.Try once more, then tell the person.
MI-MCP-503A needed part is unavailable, or MCP is off.Do not retry in a loop.
MI-MCP-504The plant did not answer in time.Try a smaller range once.

Limits and good practice​

  • One credential per assistant, with the lowest ceiling that does the job.
  • OAuth is not offered; ChatGPT cannot connect directly.
  • Cloud assistants (Claude web, Copilot Studio) must reach the Console from the internet. A plant-network address does not work for them; ask your IT department before exposing it.
  • A person can still approve a bad proposal, and a model can draw a wrong conclusion from right data. Read the reason and the current value in Approvals.
  • Programs and reports should use API keys, not agent credentials.