openwrt-mcp
Allows interaction with an OpenWrt router via SSH, providing tools to execute commands, retrieve system information, read and write files, list network interfaces, and change file permissions and ownership.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
OpenWrt MCP Server
This is a Model Context Protocol (MCP) server that allows you to interact with an OpenWrt router via SSH.
Prerequisites
Node.js (v18 or higher)
SSH access to your OpenWrt router (hostname/IP, username, and password or private key)
Related MCP server: OpenWRT SSH MCP Server
Setup
Configure: Copy
.env.exampleto.envand fill in your router details.cp .env.example .envEdit
.env:ROUTER_HOST=192.168.1.1 ROUTER_USER=root ROUTER_PASSWORD=your_password # Or use SSH_PRIVATE_KEYBuild:
npm run build
Usage with MCP Client (e.g. Claude Desktop)
Add the following to your MCP client configuration (e.g., claude_desktop_config.json):
{
"mcpServers": {
"openwrt": {
"command": "node",
"args": ["/path/to/openwrt-mcp-server/dist/index.js"]
}
}
}Make sure to replace /path/to/openwrt-mcp-server with the actual absolute path to this directory.
Available Tools
execute_command: Execute arbitrary shell commands on the router.get_system_info: Get uptime, memory usage, and CPU info.read_file: Read a text file from the router.write_file: Write content to a file on the router.list_interfaces: List network interfaces.change_file_permissions: Change file permissions (chmod).change_file_owner: Change file owner/group (chown).
Security Note
This server allows arbitrary command execution on your router. Ensure it is only used by trusted clients and stored securely.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Manage servers through SSH.
Work on your own computers from Claude or ChatGPT: run commands, edit and search files.
Run commands and manage files on your own machines. Needs a LetKite account; OAuth sign-in.
Run commands and manage files on your own machines. Needs a LetKite account; OAuth sign-in.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables management of ASUS routers running Asuswrt-Merlin firmware via SSH/SCP. Supports system monitoring, device management, WiFi control, service restarts, NVRAM operations, file transfers, VPN management, and custom command execution.13MIT
- AlicenseAqualityDmaintenanceEnables AI agents to manage OpenWRT routers remotely via SSH, supporting system monitoring, network management, OpenThread Border Router configuration, and package management through natural language commands.1917MIT
- FlicenseAqualityDmaintenanceEnables management and control of OpenWrt devices via a simple API, including reboot, status checks, log reading, and LED control.51-
- AlicenseNot gradedqualityCmaintenanceProvides full administrative control of OpenWRT routers via SSH, with a preview-confirm safety model for mutating operations.17 npmMIT