
Asuswrt Mcp
io.github.teefloo由 GitHub 账号 teefloo 发布v0.1.1更新于 Oct 24, 2026
Secure AsusWRT router administration via SSH — 42+ tools, guarded mutations
概览
让助手通过 SSH 监控 AsusWRT 或 AsusWRT-Merlin 路由器,并在明确启用后修改其设置。
- 可以做什么
- 提供 42 个只读工具,涵盖路由器型号与运行状况、LAN/WAN 与 DNS 配置、已连接客户端与 DHCP 租约、无线射频与访客网络、运行进程与开放端口、存储、安全功能、VPN 状态以及 SSH 诊断。可选的变更工具能重启白名单服务,开关 DHCP、UPnP、Wi-Fi 射频与访客网络,管理端口转发、OpenVPN 服务器、家长控制和 DHCP 静态保留。变更操作需要显式 confirm 参数,并支持 dry-run 预览。
- 适用场景
- 适合让助手在不登录路由器网页界面的情况下查看家庭或小型办公室 Asus 路由器的状态、客户端、无线、VPN 或安全设置。若还希望进行受保护的变更,例如重启服务或调整访客 Wi-Fi、端口转发、家长控制,也可添加。
- 运行要求
- 以 Python 包形式在本地通过 stdio 运行,需要 Python 3.11+。需要本机可访问路由器网络,且路由器已启用 SSH。必需的环境变量:ASUSWRT_HOST、ASUSWRT_SSH_USERNAME,以及 ASUSWRT_SSH_PASSWORD 或 ASUSWRT_SSH_KEY_FILE 之一。执行变更还需将 ASUSWRT_ALLOW_MUTATIONS 设为 true。
安装
在 SourceWeft 中
- 打开 控制台中的 Asuswrt Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
AsusWRT MCP Server
[Python 3.11+] [MIT License] [Project Status: Active]
mcp-name: io.github.teefloo/asuswrt-mcp
Model Context Protocol (MCP) server for secure, controlled administration of AsusWRT and AsusWRT-Merlin routers via SSH.
Overview
This MCP server provides AI assistants (like Claude, Cursor, etc.) with a safe interface to monitor and manage AsusWRT routers. It operates exclusively over SSH using allowlisted operations—no arbitrary command execution, no firmware modifications, and no factory resets.
Features
Read-Only Monitoring (42 tools)
Mutation Tools (with safety guards)
All mutation tools require:
confirm: trueparameterASUSWRT_ALLOW_MUTATIONS=trueenvironment variable- Support for
dry_run: trueto preview changes
Safety Model
- No arbitrary SSH: Only allowlisted commands are executed via NVRAM and service calls
- No firmware operations: No flash, reset, or bootloader access
- Secret redaction: Passwords and sensitive data are never exposed in tool responses
- Dry-run support: Every mutation can be previewed before applying
- Confirmation required: Mutations require explicit
confirm=True - SSH-only transport: No exposure of the router's web API
Prerequisites
- Python 3.11+
- An AsusWRT or AsusWRT-Merlin router with SSH access enabled
- Network connectivity from the MCP client to the router
Installation
1. Clone and setup
2. Configure environment
3. Configure .env
Usage
Run the MCP server
Configure in Claude Desktop / Cursor
Add to your claude_desktop_config.json:
Using with npx Inspector (development)
Development
Run tests
Run with live router integration tests
Project Structure
License
MIT License - see LICENSE for details.
Acknowledgments
- asusrouter for the underlying Python library
- MCP for the protocol specification
- AsusWRT-Merlin for the firmware
来源:README.md,提交 4651689
工具
0版本历史
1- v0.1.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分