modelscope·@kcsoukup/asus-merlin-mcp
暂无描述。
Model Context Protocol (MCP) server for managing ASUS routers running Asuswrt-Merlin firmware via SSH/SCP.
Docker containers now run as rootless (non-root user mcpuser) for enhanced security.
If upgrading from v1.0.0 to v3.x, you MUST update your MCP configuration with TWO changes:
| Component | v1.0.0 (Deprecated) | v3.x (Current) |
|---|---|---|
| Container User | root | mcpuser (UID 1000) |
| Volume Mount | ~/.ssh:/root/.ssh:ro | ~/.ssh:/home/mcpuser/.ssh:ro |
| SSH Key Path | /root/.ssh/id_rsa | /home/mcpuser/.ssh/id_rsa |
Required Changes:
Update Volume Mount in Docker args:
"-v", "~/.ssh:/home/mcpuser/.ssh:ro" // Changed from /root/.ssh
Update Environment Variable:
"ROUTER_KEY_FILE": "/home/mcpuser/.ssh/id_rsa" // Changed from /root/.ssh/id_rsa
Complete MCP Configuration Example:
{
"mcpServers": {
"asus-router": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-v", "/home/yourusername/.ssh:/home/mcpuser/.ssh:ro",
"-e", "ROUTER_HOST=192.168.1.1",
"-e", "ROUTER_USER=admin",
"-e", "ROUTER_KEY_FILE=/home/mcpuser/.ssh/id_rsa",
"kcsoukup/asus-merlin-mcp:latest"
]
}
}
}
Security Benefits:
This MCP server provides 47 tools across 8 categories for comprehensive router management:
For detailed example prompts for each tool, see TOOLS_PROMPTS.md
Enable SSH on your router:
(Recommended) Set up SSH key authentication:
# On your Debian workstation
ssh-keygen -t rsa -b 4096
# Copy your public key to router
ssh-copy-id admin@192.168.1.1
# Or manually via web interface:
# Administration > System > SSH Authentication Key
# Install Python 3.11+ if not already installed
sudo apt update
sudo apt install python3 python3-pip python3-venv
# Optional: Install Docker for containerized deployment
sudo apt install docker.io docker-compose
Clone or create project directory:
mkdir asus-merlin-mcp
cd asus-merlin-mcp
Save the MCP server code as asus_merlin_mcp.py
Create virtual environment and install dependencies:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Configure router connection:
cp .env.example .env
nano .env # Edit with your router details
Test the connection:
# Export environment variables
export $(cat .env | xargs)
# Run the server (it will connect via stdio)
python asus_merlin_mcp.py
# Pull the pre-built image (use :latest for current version or specific version tag)
docker pull kcsoukup/asus-merlin-mcp:latest
Available versions: v1.0.0, v3.0, latest
Build the Docker image:
docker build -t asus-merlin-mcp .
Edit docker-compose.yml with your router credentials
# Optional -- The credentials are passed to the container via the MCP configurations in Claude or other chatbots.
Run with Docker Compose:
docker-compose up -d
The configuration location depends on which Claude installation you're using:
MCP servers are automatically configured in ~/.claude.json under your project path:
Config file: ~/.claude.json
{
"installMethod": "native",
"projects": {
"/path/to/asus-merlin-mcp": {
"mcpServers": {
"asus-router": {
"command": "/path/to/asus-merlin-mcp/venv/bin/python",
"args": ["/path/to/asus-merlin-mcp/asus_merlin_mcp.py"],
"env": {
"ROUTER_HOST": "192.168.1.1",
"ROUTER_PORT": "22",
"ROUTER_USER": "admin",
"ROUTER_KEY_FILE": "/home/yourusername/.ssh/id_rsa"
}
}
}
}
}
}
{
"installMethod": "native",
"projects": {
"/path/to/asus-merlin-mcp": {
"mcpServers": {
"asus-router": {
"com…
一座通过串行通信将物理硬件设备与人工智能大语言模型连接起来的桥梁,允许用户使用自然语言命令控制硬件。
用于运行代码片段并显示结果的MCP服务器。
一个通过ADB实现对Android设备程序化控制的服务器,提供截图捕获、UI布局分析和包管理等功能,这些功能可以被像Claude Desktop这样的MCP客户端使用。
Claude Code作为模型上下文协议(MCP)服务器的一种实现,通过标准的MCP接口启用Claude的软件工程能力(代码生成、编辑、评审和文件操作)。
用于Cursor IDE的模型上下文协议(MCP)服务器,可简化其他MCP服务器的安装和配置。
一个MCP服务器,允许通过自然语言管理Docker容器,使用户能够在不自行运行命令的情况下组合、检查和调试容器。