M

MCP Adguard Home

by Samik081 · io.github.Samik081/mcp-adguard-home

Enables natural language management of AdGuard Home DNS filtering, clients, DHCP, rewrites, and more via MCP.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-samik081-mcp-adguard-home": {
      "command": "npx",
      "args": [
        "-y",
        "@samik081/mcp-adguard-home"
      ],
      "env": {
        "ADGUARD_URL": "",
        "ADGUARD_USERNAME": "<YOUR_VALUE>",
        "ADGUARD_PASSWORD": "<YOUR_VALUE>",
        "DEBUG": "false",
        "MCP_HOST": "0.0.0.0",
        "MCP_PORT": "3000",
        "MCP_TRANSPORT": "stdio",
        "ADGUARD_CATEGORIES": "all",
        "ADGUARD_ACCESS_TIER": "full",
        "ADGUARD_TOOL_BLACKLIST": "",
        "ADGUARD_TOOL_WHITELIST": "",
        "MCP_EXCLUDE_TOOL_TITLES": "false",
        "MCP_SESSION_IDLE_TIMEOUT": "1800"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-samik081-mcp-adguard-home": {
      "command": "npx",
      "args": [
        "-y",
        "@samik081/mcp-adguard-home"
      ],
      "env": {
        "ADGUARD_URL": "",
        "ADGUARD_USERNAME": "<YOUR_VALUE>",
        "ADGUARD_PASSWORD": "<YOUR_VALUE>",
        "DEBUG": "false",
        "MCP_HOST": "0.0.0.0",
        "MCP_PORT": "3000",
        "MCP_TRANSPORT": "stdio",
        "ADGUARD_CATEGORIES": "all",
        "ADGUARD_ACCESS_TIER": "full",
        "ADGUARD_TOOL_BLACKLIST": "",
        "ADGUARD_TOOL_WHITELIST": "",
        "MCP_EXCLUDE_TOOL_TITLES": "false",
        "MCP_SESSION_IDLE_TIMEOUT": "1800"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-samik081-mcp-adguard-home": {
      "command": "npx",
      "args": [
        "-y",
        "@samik081/mcp-adguard-home"
      ],
      "env": {
        "ADGUARD_URL": "",
        "ADGUARD_USERNAME": "<YOUR_VALUE>",
        "ADGUARD_PASSWORD": "<YOUR_VALUE>",
        "DEBUG": "false",
        "MCP_HOST": "0.0.0.0",
        "MCP_PORT": "3000",
        "MCP_TRANSPORT": "stdio",
        "ADGUARD_CATEGORIES": "all",
        "ADGUARD_ACCESS_TIER": "full",
        "ADGUARD_TOOL_BLACKLIST": "",
        "ADGUARD_TOOL_WHITELIST": "",
        "MCP_EXCLUDE_TOOL_TITLES": "false",
        "MCP_SESSION_IDLE_TIMEOUT": "1800"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-samik081-mcp-adguard-home": {
      "command": "npx",
      "args": [
        "-y",
        "@samik081/mcp-adguard-home"
      ],
      "env": {
        "ADGUARD_URL": "",
        "ADGUARD_USERNAME": "<YOUR_VALUE>",
        "ADGUARD_PASSWORD": "<YOUR_VALUE>",
        "DEBUG": "false",
        "MCP_HOST": "0.0.0.0",
        "MCP_PORT": "3000",
        "MCP_TRANSPORT": "stdio",
        "ADGUARD_CATEGORIES": "all",
        "ADGUARD_ACCESS_TIER": "full",
        "ADGUARD_TOOL_BLACKLIST": "",
        "ADGUARD_TOOL_WHITELIST": "",
        "MCP_EXCLUDE_TOOL_TITLES": "false",
        "MCP_SESSION_IDLE_TIMEOUT": "1800"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-samik081-mcp-adguard-home": {
      "command": "npx",
      "args": [
        "-y",
        "@samik081/mcp-adguard-home"
      ],
      "env": {
        "ADGUARD_URL": "",
        "ADGUARD_USERNAME": "<YOUR_VALUE>",
        "ADGUARD_PASSWORD": "<YOUR_VALUE>",
        "DEBUG": "false",
        "MCP_HOST": "0.0.0.0",
        "MCP_PORT": "3000",
        "MCP_TRANSPORT": "stdio",
        "ADGUARD_CATEGORIES": "all",
        "ADGUARD_ACCESS_TIER": "full",
        "ADGUARD_TOOL_BLACKLIST": "",
        "ADGUARD_TOOL_WHITELIST": "",
        "MCP_EXCLUDE_TOOL_TITLES": "false",
        "MCP_SESSION_IDLE_TIMEOUT": "1800"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-samik081-mcp-adguard-home": {
      "command": "npx",
      "args": [
        "-y",
        "@samik081/mcp-adguard-home"
      ],
      "env": {
        "ADGUARD_URL": "",
        "ADGUARD_USERNAME": "<YOUR_VALUE>",
        "ADGUARD_PASSWORD": "<YOUR_VALUE>",
        "DEBUG": "false",
        "MCP_HOST": "0.0.0.0",
        "MCP_PORT": "3000",
        "MCP_TRANSPORT": "stdio",
        "ADGUARD_CATEGORIES": "all",
        "ADGUARD_ACCESS_TIER": "full",
        "ADGUARD_TOOL_BLACKLIST": "",
        "ADGUARD_TOOL_WHITELIST": "",
        "MCP_EXCLUDE_TOOL_TITLES": "false",
        "MCP_SESSION_IDLE_TIMEOUT": "1800"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
ADGUARD_URL Yes AdGuard Home base URL (e.g., http://192.168.1.1:3000)
ADGUARD_USERNAME secret Yes Admin username
ADGUARD_PASSWORD secret Yes Admin password
DEBUG No Enable debug logging to stderr Default: false
MCP_HOST No HTTP server bind address (only used when MCP_TRANSPORT=http) Default: 0.0.0.0
MCP_PORT No HTTP server port (only used when MCP_TRANSPORT=http) Default: 3000
MCP_TRANSPORT No Transport mode: stdio (default) or http Default: stdio
ADGUARD_CATEGORIES No Comma-separated category allowlist (e.g., dns,filtering,stats) Default: all
ADGUARD_ACCESS_TIER No read-only for read-only tools only, full for all tools Default: full
ADGUARD_TOOL_BLACKLIST No Comma-separated list of tool names to exclude (e.g., dns_clear_cache,stats_reset)
ADGUARD_TOOL_WHITELIST No Comma-separated list of tool names to force-include, bypassing access tier and category filters
MCP_EXCLUDE_TOOL_TITLES No Set true to omit tool titles from registration (saves tokens) Default: false
MCP_SESSION_IDLE_TIMEOUT No Seconds of inactivity after which an HTTP session is closed and its memory released. 0 disables. Only used when MCP_TRANSPORT=http Default: 1800

Similar servers