PolarHub
  • Agents
  • MCP Servers
  • Skills
  • PolarBear
PolarHub © 2026
MCP Serversos-automationasus-merlin-mcp
返回「os-automation」

asus-merlin-mcp

modelscope·@kcsoukup/asus-merlin-mcp

os-automation0下载LocalModelScope

简介

暂无描述。

MCP Server 详情

来自 ModelScope 索引

ASUS Merlin Router MCP Server

Model Context Protocol (MCP) server for managing ASUS routers running Asuswrt-Merlin firmware via SSH/SCP.

Docker Pulls Docker Image Version Docker Image Size


BREAKING CHANGE - v3.x Security Update

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:

Componentv1.0.0 (Deprecated)v3.x (Current)
Container Userrootmcpuser (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:

  1. Update Volume Mount in Docker args:

    "-v", "~/.ssh:/home/mcpuser/.ssh:ro"  // Changed from /root/.ssh
    
  2. 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:

  • Follows Docker security best practices (rootless containers)
  • Reduces attack surface by running as non-privileged user
  • Prevents privilege escalation vulnerabilities

Features

This MCP server provides 47 tools across 8 categories for comprehensive router management:

  • System Information (14 tools): Router info, device lists, WiFi status, services, NVRAM, file operations, processes
  • Firewall Management (2 tools): Configure firewall settings and VPN passthrough
  • URL/Keyword Filtering (9 tools): Global URL/keyword content filtering
  • Network Service Filtering (6 tools): Block/allow services by IP/port/protocol with scheduling (NEW in v3.0)
  • MAC Filtering (3 tools): Add/remove/list WiFi access control rules
  • DHCP Management (3 tools): Add/remove/list static IP reservations
  • Internet Access Control (2 tools): Block/unblock devices (parental controls)
  • VPN Routing Policy (3 tools): Route devices through VPN clients (Asuswrt-Merlin only)
  • VPN Server Monitoring (2 tools): Monitor VPN server status and users

For detailed example prompts for each tool, see TOOLS_PROMPTS.md

Prerequisites

Router Setup

  1. Enable SSH on your router:

    • Login to router web interface
    • Go to Administration > System
    • Set Enable SSH to LAN only (or LAN & WAN if needed)
    • Click Apply
  2. (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
    

Debian Workstation Setup

# 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

Installation

Option 1: Local Installation (Recommended for Development)

  1. Clone or create project directory:

    mkdir asus-merlin-mcp
    cd asus-merlin-mcp
    
  2. Save the MCP server code as asus_merlin_mcp.py

  3. Create virtual environment and install dependencies:

    python3 -m venv venv
    source venv/bin/activate
    pip install -r requirements.txt
    
  4. Configure router connection:

    cp .env.example .env
    nano .env  # Edit with your router details
    
  5. Test the connection:

    # Export environment variables
    export $(cat .env | xargs)
    
    # Run the server (it will connect via stdio)
    python asus_merlin_mcp.py
    

Option 2: Docker Installation

Quick Start - Pull from Docker Hub:

# 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 from Source (Alternative):

  1. Build the Docker image:

    docker build -t asus-merlin-mcp .
    
  2. 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.
    
  3. Run with Docker Compose:

    docker-compose up -d
    

Claude Configuration

The configuration location depends on which Claude installation you're using:

Claude Code (Native Installation)

MCP servers are automatically configured in ~/.claude.json under your project path:

Config file: ~/.claude.json

For Local Installation:

{
  "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"
          }
        }
      }
    }
  }
}

For Docker Installation:

{
  "installMethod": "native",
  "projects": {
    "/path/to/asus-merlin-mcp": {
      "mcpServers": {
        "asus-router": {
          "com…

相关 MCP Servers(来自「os-automation」)

串口智控

一座通过串行通信将物理硬件设备与人工智能大语言模型连接起来的桥梁,允许用户使用自然语言命令控制硬件。

@mcp2everything/mcp2serial

代码运行器

用于运行代码片段并显示结果的MCP服务器。

@formulahendry/mcp-server-code-runner

Android MCP 控制服务器

一个通过ADB实现对Android设备程序化控制的服务器,提供截图捕获、UI布局分析和包管理等功能,这些功能可以被像Claude Desktop这样的MCP客户端使用。

@minhalvp/android-mcp-server

Claude代码工具

Claude Code作为模型上下文协议(MCP)服务器的一种实现,通过标准的MCP接口启用Claude的软件工程能力(代码生成、编辑、评审和文件操作)。

@auchenberg/claude-code-mcp

Cursor MCP 安装器

用于Cursor IDE的模型上下文协议(MCP)服务器,可简化其他MCP服务器的安装和配置。

@matthewdcage/cursor-mcp-installer

Docker容器管理平台

一个MCP服务器,允许通过自然语言管理Docker容器,使用户能够在不自行运行命令的情况下组合、检查和调试容器。

@ckreiling/mcp-server-docker

自动安装

点击按钮会唤起 PolarBear 客户端,并把当前 MCP Server 的 Markdown 详情文档地址传给客户端。

/api/mcps/kcsoukup-asus-merlin-mcp/markdown
打开 PolarBear 安装查看 Markdown 文档

手动安装

在 PolarBear 或其他支持 MCP 的客户端中,新建 MCP Server,并参考下方来源或安装提示配置。

2. **Update Environment Variable**: ```json "ROUTER_KEY_FILE": "/home/mcpuser/.ssh/id_rsa" // Changed from /root/.ssh/id_rsa

基本信息

分类
os-automation / home-automation-and-iot / shell-access
运行方式
No
许可证
MIT License
详情文件
kcsoukup-asus-merlin-mcp.md