openwrt-mcp
Provides full administrative control of OpenWRT routers over SSH, with typed tools for system info, network interfaces, DHCP leases, Wi-Fi, firewall, package management, services, logs, and UCI configuration, along with a preview-then-confirm safety model for mutating operations.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@openwrt-mcpList all currently connected Wi-Fi clients"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
openwrt-mcp
An MCP server that gives an AI assistant full administrative control of OpenWRT router(s) over SSH, with typed tools and a preview→confirm safety model.
Install
npm install && npm run buildRelated MCP server: SSH Linux Control
Configure
Copy openwrt-mcp.config.example.json to openwrt-mcp.config.json and edit:
{
"routers": {
"home": {
"host": "192.168.1.1",
"port": 22,
"username": "root",
"auth": { "type": "key", "privateKeyPath": "~/.ssh/id_ed25519" },
"readonly": false,
"default": true
}
}
}Password auth:
"auth": { "type": "password", "password": "${RTR_PW}" }(the${RTR_PW}form reads the value from that environment variable).readonly: truehard-blocks all mutating tools on that router.
Config path override: set OPENWRT_MCP_CONFIG=/path/to/config.json.
Run / connect
Add to your MCP client (e.g. Claude Desktop / Claude Code) as a stdio server:
{
"mcpServers": {
"openwrt": {
"command": "node",
"args": ["/absolute/path/to/openwrt-mcp/dist/index.js"],
"env": { "OPENWRT_MCP_CONFIG": "/absolute/path/to/openwrt-mcp.config.json" }
}
}
}Safety model
read tools run immediately.
mutate / risky tools require a two-step call: the first call (without
confirm: true) returns a preview (the exact commands + auci changesdiff where relevant); call again withconfirm: trueto execute.risky tools (firewall, network commit, reboot, raw shell) add a lock-out warning.
Tools
system_info, system_resources, reboot, net_interfaces, net_dhcp_leases, net_wifi_clients, net_routes, net_arp, uci_show, uci_get, uci_changes, uci_set, uci_delete, uci_revert, uci_commit, wifi_radios, wifi_set_enabled, wifi_configure, fw_list, fw_add_rule, fw_remove_rule, opkg_update, opkg_list, opkg_list_installed, opkg_install, opkg_remove, service_list, service_control, service_enabled, log_read, dmesg, run_command.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sina-haseli/openwrt-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server