openwrt-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OPENWRT_MCP_KEY | No | Private key path | ~/.ssh/openwrt-agent-mcp |
| OPENWRT_MCP_HOST | No | Router address | 192.168.1.1 |
| OPENWRT_MCP_USER | No | SSH user | root |
| OPENWRT_MCP_AUDIT | No | 0 disables the JSONL audit log | 1 |
| PASSWALL2_ALLOW_WRITE | No | 1 enables passwall2_switch_node | 0 |
| OPENWRT_MCP_COMMAND_TIMEOUT | No | Per-command timeout (s) | 20 |
| OPENWRT_MCP_CONNECT_TIMEOUT | No | SSH connect timeout (s) | 8 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| system_infoB | Read-only: board, OpenWrt release, kernel, uptime, load, memory, overlay. |
| network_statusA | Read-only: interfaces, WAN status (ubus), and the routing table. |
| wifi_statusB | Read-only: radios, channels, tx power and associated stations. |
| clientsB | Read-only: DHCP leases and ARP neighbours. Identifiers masked by default. |
| logsA | Read-only: last N lines of logread (1..200). |
| ubus_listA | Read-only: list ubus objects, or methods of one allowlisted object. |
| ubus_callB | Read-only: call a read method on an allowlisted ubus object. State-changing methods are refused before any SSH connection. |
| uci_getA | Read-only: uci get for an allowlisted config key. Secrets are redacted. |
| service_statusC | Read-only: init scripts and key daemon processes. |
| passwall2_statusB | Read-only: PassWall 2 service instance and running proxy process. |
| passwall2_nodesA | Read-only: configured PassWall 2 nodes. Only remarks/type are returned; servers, ports, keys and UUIDs never leave the router. |
| passwall2_activeB | Read-only: the tcp_node and udp_node currently selected. |
| passwall2_switch_nodeA | WRITE (gated): switch PassWall 2 to a node index. Requires PASSWALL2_ALLOW_WRITE=1 and confirm=true. Snapshots the previous node, reloads the service, probes DNS, and restores on failure. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 13 tools
Most tools cover clearly distinct resources: system, network, wifi, clients, logs, ubus, uci, services, and PassWall. The PassWall trio (status, nodes, active) and generic service_status could be momentarily confused, but their descriptions make the boundaries clear.
All names use snake_case, with a readable resource_status or namespace_action pattern such as network_status, ubus_list, uci_get, and passwall2_switch_node. Bare names like clients and logs are minor deviations but still clear.
13 tools is a well-scoped count for router diagnostics plus focused PassWall management. Each tool covers a distinct observability area or a clearly gated write operation.
The read-only surface is broad and covers the main diagnostic areas of an OpenWrt router, including system, network, wifi, clients, logs, ubus, uci, services, and PassWall. It intentionally lacks broader write operations such as uci_set, service restart, firewall inspection, or package management, which are minor gaps given the safe read-only design.