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.
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-mcpshow me the network interfaces"
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 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: ASUS Merlin Router 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.
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
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/hady2010/openwrt-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server