termal.in

← Blog

Manage an IoT device fleet from Claude, ChatGPT or Cursor over MCP

· Termalin Team iotfleetmcpai-agentsconnector

A fleet of small devices — kiosks, signage players, payment and vending terminals, LTE gateways, industrial boxes — is a lot of tedious, repetitive SSH. Check a service on all the lobby screens. See which gateways have a pending CVE. Restart the ones that are wedged. This is exactly the kind of work an AI agent is good at, if you can give it reach across the fleet without handing out keys, without letting it run anything it likes, and without losing track of what it did. That’s what Termalin’s MCP server is for.

Enroll the fleet, tag it

Each device gets a Connector — a small static binary that dials out to Termalin and holds the link open, so devices behind NAT, CGNAT or a locked-down firewall are reachable with no inbound port. One install link works for 24 hours and can enrol up to 20 devices, so you flash a batch and run the same line on each:

curl -fsSL https://termal.in/i/<token> | sudo sh

Give each device tags in the cabinet — site:lobby, role:signage, fw:2.3 — or lean on the groups Termalin adds by itself from what it knows (os:linux, distro:ubuntu, country:fr). Tags are how you and the agent select “exactly these devices, nothing else.” Devices on kiosk images or thin gateways that only give you a shell can run the same installer without root; a cron watchdog keeps the Connector alive.

What a session looks like

Connect Termalin as a connector in claude.ai or ChatGPT (or use an API key in Cursor, Codex or Gemini CLI), then talk to your fleet:

You: which of the lobby signage players are on firmware older than 2.3?

Agent: Of the 14 devices tagged role:signage site:lobby, 11 report 2.3 and 3 are on 2.1 — sign-07, sign-09, sign-12. Want me to look at what’s different on those three?

You: restart the player service on just those three.

Agent: Done — ran systemctl restart signage on sign-07, sign-09, sign-12. All three came back and the service is active on each. The restart is in your audit log.

The agent picked the devices by tag, touched only those three, and the whole thing is recorded. It never saw an SSH key.

The tools it has

The hosted MCP server gives the agent a small, blunt toolset — enough to be useful, not a free shell on everything:

ToolWhat it does
hosts_listList the devices the agent may reach — filter by tag.
ssh_execRun one command on one device.
ssh_exec_manyRun the same command on several devices at once, selected by tag.
job_start / status / stopKick off a long job (a firmware pull, a big update) in the background and come back for its log and exit code.
sftp read / writeRead or drop a config file on a device (text; read in 512 KB parts, writes up to 5 MB).
server_metricsCPU, memory, disk, load for every device, from Termalin’s monitoring — nothing runs on the device.
updates_listPending updates and known CVEs per device or per tag, with severity, the fixing version, and whether CISA lists it as exploited.
alertsWhat’s firing right now across the fleet.

The honest limit worth planning around: ssh_exec_many runs on up to 10 devices per call. For a fleet larger than that the agent works in batches — it’ll run the command on the first ten, then the next ten, and so on. That’s fine for an agent (it just loops), but it means “all 200 terminals” is a sequence of calls, not one instant broadcast.

Guardrails that make it safe to leave running

Reach is only half of it. The other half is bounding what the agent can do and seeing what it did:

  • Per-device command policy. Each Connector carries a policy — full, an allowlist of commands, or read-only — enforced before a command runs, not suggested. A payment terminal might allow only systemctl status and a log tail; a scratch device can be full. The thinking behind a good allowlist, including the commands that are secretly shells, is in per-host command allowlists for AI agents.
  • No keys, ever. Devices are reached keylessly through their Connectors — a short-lived certificate minted per run, bound to your account. There’s no key in the model’s context to leak, and nothing long-lived on the device to steal.
  • Everything audited. Every command the agent issues — allowed or refused — lands in the audit log with the device, who, what and when. See audit what an AI agent does on your servers.
  • A per-device off switch. Each Connector has its own toggle to keep AI apps and API keys off that device entirely, whatever the policy says.

A sensible starting posture

  • Payment, vending and anything regulated → read-only or a tight allowlist. Let the agent observe and report; keep writes to a named short list.
  • Signage, kiosks, gateways → allowlist scoped to the service commands your runbook actually uses.
  • One scratch device → full, so the agent has somewhere to experiment where a mistake costs nothing.
  • Tag everything by site and role, so “the lobby screens” and “the warehouse gateways” are one filter, not a hand-maintained list.

Then hand it a real chore — “find the signage players that are behind on firmware and tell me what’s different about them” — and watch the audit log fill in. The custody model behind all of this is on the SSH for AI agents page, and the same connector that works in claude.ai and ChatGPT also speaks to Claude Code, Cursor and Codex.


Termalin is a free, cross-platform SSH client with a built-in MCP server, per-device command policy and a full audit trail — download it, or read the security model. Reaching the fleet needs Pro or the 14-day trial.

Try it on one host.

Termalin is a fast SSH client for you — and your agents.

Free tier · 14-day Pro trial · pricing

Add Termalin as a preferred source on Google