Ask in plain language
“Which nodes have been quiet recently?” can become a structured sequence of read operations instead of a user stitching together several commands.
understand the bridge
Mesh Agent MCP connects an MCP-capable agent to meshctl and explicitly configured Meshtastic devices. It translates natural-language requests into a small, inspectable set of tools while keeping radio access and operational policy inside each provider boundary.
The short version
Mesh networks produce valuable context, but that context is usually split across commands, dashboards, logs, and radio-specific details. An MCP server gives an agent a standard way to ask for that context and use it responsibly.
“Which nodes have been quiet recently?” can become a structured sequence of read operations instead of a user stitching together several commands.
The bridge reads the same meshctld API and event stream as other clients. It does not create a competing radio connection or invent a second state model.
Agents see named tools, documented inputs, and explicit effects. Operators can understand what was requested before anything consequential is allowed.
Agent interaction
The agent does not receive a shell prompt or unrestricted network access. It receives the MCP tool catalog and chooses a bounded operation.
“Show me the radios and their connection health.”
list_radiosget_radio_status
Uses the selected provider boundary: meshctl API or explicit Meshtastic CLI.
“Radio A is connected; Radio B needs attention.”
Good fits
Incident triage
Summarize radio health, recent packets, and node changes before an operator investigates.
Routine monitoring
Watch events and surface meaningful changes without manually tailing a stream.
Field operations
Answer questions about reachability, routes, and known nodes while keeping the operator in control.
Tool-building
Use a standard MCP surface from compatible desktop clients, agent frameworks, and automation runners.
A concrete conversation
A safe agent workflow gathers evidence before proposing an action.
“Is node !abcd reachable, and when did we last hear from it?”
I’ll inspect the current node record and recent packet history.
list_nodes → node found · list_packets → last packet 4 minutes ago
Yes. It is known to meshctld and was last heard from 4 minutes ago. I found no newer packet.
Agent examples
These examples show the intended progression: discover, inspect, explain, then act only when explicitly authorized.
“Is my radio connected and what is its firmware?”
list_radios → get_radio_statusReturns link state, hardware, firmware, region, and local node identity.“Tell me when a node or packet changes.”
watch_eventsCollects the authenticated meshctld event stream for a bounded duration.“Find the test channel, confirm it, then send this message.”
list_channels → send_textChannel discovery comes first; writes require explicit opt-in and remain audited and rate-limited.“Read the info from the Meshtastic device on my bench.”
meshtastic_info → meshtastic_nodesEnabled only with MESHTASTIC_HOST or MESHTASTIC_PORT, and never intended for a radio already managed by meshctld.Human operator view
meshctl-tui is a read-only companion for operators. It shares the authenticated meshctl client with the MCP server and never opens a second radio connection.
r.Boundaries matter
Not a replacement for meshctl.
meshctld remains the daemon and radio owner. Its HTTP/WebSocket authentication and API validation still apply; this project does not replace meshctl's server-side controls.
Not unrestricted shell access.
The agent gets declared MCP tools, not arbitrary commands or a raw serial port.
Not automatic write access.
Writes are opt-in, validated, allowlisted, rate-limited, and disabled by default.
Start with visibility