MCP AdGuard Home
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., "@MCP AdGuard Homeshow me the top blocked domains"
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.
MCP AdGuard Home
MCP server for AdGuard Home. Manage DNS filtering, clients, DHCP, rewrites, and more through natural language in Cursor, Claude Code, and Claude Desktop.
Features
65 tools across 16 categories covering the complete AdGuard Home API
Read-only mode via
ADGUARD_ACCESS_TIER=read-onlyfor safe monitoringCategory filtering via
ADGUARD_CATEGORIESto expose only the tools you needZero HTTP dependencies -- uses native
fetch(Node.js 18+)Docker images for
linux/amd64andlinux/arm64on GHCRRemote MCP via HTTP transport (
MCP_TRANSPORT=http) using the Streamable HTTP protocolTypeScript/ESM with full type safety
Related MCP server: HA Vibecode Agent
API Compatibility
Tested with AdGuard Home v0.107.76.
Quick Start
Run the server directly with npx:
ADGUARD_URL="http://your-adguard-ip:3000" \
ADGUARD_USERNAME="your-username" \
ADGUARD_PASSWORD="your-password" \
npx -y @samik081/mcp-adguard-homeThe server validates your AdGuard Home connection on startup and fails immediately with a clear error if credentials are missing or invalid.
Docker
Run with Docker (stdio transport, same as npx):
docker run --rm -i \
-e ADGUARD_URL=http://your-adguard-ip:3000 \
-e ADGUARD_USERNAME=your-username \
-e ADGUARD_PASSWORD=your-password \
ghcr.io/samik081/mcp-adguard-homeTo run as a remote MCP server with HTTP transport:
docker run -d -p 3000:3000 \
-e MCP_TRANSPORT=http \
-e ADGUARD_URL=http://your-adguard-ip:3000 \
-e ADGUARD_USERNAME=your-username \
-e ADGUARD_PASSWORD=your-password \
ghcr.io/samik081/mcp-adguard-homeThe MCP endpoint is available at http://localhost:3000 and a health check at http://localhost:3000/health.
Configuration
Claude Code CLI (recommended):
# Using npx
claude mcp add --transport stdio adguard-home \
--env ADGUARD_URL=http://your-adguard-ip:3000 \
--env ADGUARD_USERNAME=your-username \
--env ADGUARD_PASSWORD=your-password \
-- npx -y @samik081/mcp-adguard-home
# Using Docker
claude mcp add --transport stdio adguard-home \
--env ADGUARD_URL=http://your-adguard-ip:3000 \
--env ADGUARD_USERNAME=your-username \
--env ADGUARD_PASSWORD=your-password \
-- docker run --rm -i ghcr.io/samik081/mcp-adguard-home
# Using remote HTTP (connect to a running Docker container or HTTP server)
claude mcp add --transport http adguard-home http://localhost:3000JSON config (works with Claude Code .mcp.json, Claude Desktop claude_desktop_config.json, Cursor .cursor/mcp.json):
{
"mcpServers": {
"adguard-home": {
"command": "npx",
"args": ["-y", "@samik081/mcp-adguard-home"],
"env": {
"ADGUARD_URL": "http://your-adguard-ip:3000",
"ADGUARD_USERNAME": "your-username",
"ADGUARD_PASSWORD": "your-password"
}
}
}
}Docker (stdio):
{
"mcpServers": {
"adguard-home": {
"command": "docker",
"args": ["run", "--rm", "-i",
"-e", "ADGUARD_URL=http://your-adguard-ip:3000",
"-e", "ADGUARD_USERNAME=your-username",
"-e", "ADGUARD_PASSWORD=your-password",
"ghcr.io/samik081/mcp-adguard-home"
]
}
}
}Remote MCP (connect to a running Docker container or HTTP server):
{
"mcpServers": {
"adguard-home": {
"type": "streamable-http",
"url": "http://localhost:3000"
}
}
}Access Tiers
Control which tools are available using the ADGUARD_ACCESS_TIER environment variable:
Tier | Tools | Description |
| 65 | Read and write -- full control |
| 29 | Read only -- safe for monitoring, no state changes |
full: All 65 tools. Includes configuration changes, adding/removing filters, clearing logs, and all destructive operations.
read-only: 29 tools. Status, configuration viewing, and query log reading only. No state changes.
Tools that are not available in your tier are not registered with the MCP server. They will not appear in your AI tool's tool list, keeping the context clean.
Environment Variables
Variable | Required | Default | Description |
| Yes | -- | AdGuard Home base URL (e.g., |
| Yes | -- | Admin username |
| Yes | -- | Admin password |
| No |
|
|
| No | (all) | Comma-separated category allowlist (e.g., |
| No | (none) | Comma-separated list of tool names to exclude (e.g., |
| No | (none) | Comma-separated list of tool names to force-include, bypassing access tier and category filters |
| No |
| Enable debug logging to stderr |
| No |
| Transport mode: |
| No |
| HTTP server port (only used when |
| No |
| HTTP server bind address (only used when |
| No |
| Set |
Available Categories
global, dns, querylog, stats, filtering, safebrowsing, parental, safesearch, clients, dhcp, rewrites, tls, blocked_services, access, install, mobile_config
Tools
mcp-adguard-home provides 65 tools organized by category. Each tool's Access column shows the minimum tier required: read-only (available in both tiers) or full (requires full tier). The Hints column shows tool behavior: read-only (no state changes), destructive (modifies existing state), idempotent (same result if called twice).
Tool | Description | Access | Hints |
| Retrieve server status including version, DNS addresses, protection state, and ports | read-only | read-only, idempotent |
| Retrieve user profile (name, language, theme) | read-only | read-only, idempotent |
| Check for AdGuard Home updates and compare with current version | read-only | read-only, idempotent |
| Enable or disable DNS protection globally, with optional duration for temporary disable | full | destructive, idempotent |
| Update user profile settings (name, language, theme) | full | destructive, idempotent |
| Initiate an AdGuard Home software update | full | destructive |
Tool | Description | Access | Hints |
| Retrieve full DNS configuration including upstreams, cache settings, blocking mode, and DNSSEC | read-only | read-only, idempotent |
| Test upstream DNS server configuration to verify servers are reachable | read-only | read-only, idempotent |
| Update DNS server configuration (19 optional fields for partial update) | full | destructive, idempotent |
| Clear the DNS resolver cache | full | destructive, idempotent |
Tool | Description | Access | Hints |
| Search DNS query log with optional filtering by reason or response status, search term, and pagination | read-only | read-only, idempotent |
| Retrieve query log configuration settings | read-only | read-only, idempotent |
| Update query log configuration (enabled, interval, anonymization) | full | destructive, idempotent |
| Clear the entire DNS query log | full | destructive, idempotent |
Tool | Description | Access | Hints |
| Retrieve DNS statistics including top domains, blocked counts, and client activity | read-only | read-only, idempotent |
| Retrieve statistics configuration settings | read-only | read-only, idempotent |
| Reset all DNS statistics | full | destructive, idempotent |
| Update statistics configuration (enabled, interval, ignored domains) | full | destructive, idempotent |
Tool | Description | Access | Hints |
| Retrieve filtering configuration including blocklists, allowlists, and user rules | read-only | read-only, idempotent |
| Test whether a hostname would be blocked by current filtering rules | read-only | read-only, idempotent |
| Update global filtering configuration (enabled state and update interval) | full | destructive, idempotent |
| Add a new filter URL (blocklist or allowlist) | full | — |
| Remove a filter URL from blocklist or allowlist | full | destructive |
| Update an existing filter URL (rename, change URL, or enable/disable) | full | destructive, idempotent |
| Force refresh of filter lists to fetch latest updates | full | destructive, idempotent |
| Set custom filtering rules (replaces all existing custom rules) | full | destructive, idempotent |
Tool | Description | Access | Hints |
| Retrieve safe browsing (malware/phishing protection) status | read-only | read-only, idempotent |
| Enable or disable safe browsing protection | full | destructive, idempotent |
Tool | Description | Access | Hints |
| Retrieve parental filtering status | read-only | read-only, idempotent |
| Enable or disable parental filtering (content restrictions) | full | destructive, idempotent |
Tool | Description | Access | Hints |
| Retrieve safe search settings showing per-engine enforcement status | read-only | read-only, idempotent |
| Update safe search settings with per-engine configuration (Bing, DuckDuckGo, Google, Pixabay, Yandex, YouTube) | full | destructive, idempotent |
Tool | Description | Access | Hints |
| Retrieve all configured and auto-detected clients with their settings | read-only | read-only, idempotent |
| Search for specific clients by their IDs (IP, MAC, CIDR, or client ID) | read-only | read-only, idempotent |
| Add a new persistent client with per-client settings | full | — |
| Update an existing persistent client by name | full | destructive, idempotent |
| Delete a persistent client by name | full | destructive |
Tool | Description | Access | Hints |
| Retrieve DHCP server configuration, static leases, and active leases | read-only | read-only, idempotent |
| Retrieve available network interfaces for DHCP server binding | read-only | read-only, idempotent |
| Scan for competing DHCP servers on a network interface | read-only | read-only, idempotent |
| Update DHCP server configuration (enabled state, interface, IPv4/IPv6 settings) | full | destructive, idempotent |
| Add a static DHCP lease mapping a MAC address to an IP | full | — |
| Remove a static DHCP lease | full | destructive |
| Update a static DHCP lease (remove + add pattern) | full | destructive, idempotent |
| Reset DHCP configuration to defaults | full | destructive, idempotent |
| Clear all DHCP leases | full | destructive, idempotent |
Tool | Description | Access | Hints |
| Retrieve all configured DNS rewrite rules | read-only | read-only, idempotent |
| Retrieve DNS rewrite module enabled/disabled state | read-only | read-only, idempotent |
| Add a new DNS rewrite rule | full | — |
| Update a DNS rewrite rule (remove + add pattern) | full | destructive, idempotent |
| Delete a DNS rewrite rule | full | destructive |
| Enable or disable the DNS rewrite module | full | destructive, idempotent |
Tool | Description | Access | Hints |
| Retrieve TLS configuration and certificate validation status | read-only | read-only, idempotent |
| Validate TLS configuration without applying changes | read-only | read-only, idempotent |
| Update TLS configuration including certificates and HTTPS/DoH/DoT settings | full | destructive, idempotent |
Tool | Description | Access | Hints |
| List all available services that can be blocked, organized by group | read-only | read-only, idempotent |
| Retrieve currently blocked services list and schedule | read-only | read-only, idempotent |
| Update the list of blocked services and optional schedule | full | destructive, idempotent |
Tool | Description | Access | Hints |
| Retrieve access control lists: allowed clients, disallowed clients, and blocked hosts | read-only | read-only, idempotent |
| Set access control lists for allowed clients, disallowed clients, and blocked hosts | full | destructive, idempotent |
Tool | Description | Access | Hints |
| Retrieve network interface details and ports for initial setup | read-only | read-only, idempotent |
| Validate install configuration without applying (checks web/DNS binding, credentials) | full | read-only, idempotent |
| Apply initial setup configuration (web/DNS binding and admin credentials) | full | destructive |
Tool | Description | Access | Hints |
| Generate Apple .mobileconfig profile for DNS-over-HTTPS | read-only | read-only, idempotent |
| Generate Apple .mobileconfig profile for DNS-over-TLS | read-only | read-only, idempotent |
Verify It Works
After configuring your MCP client, ask your AI assistant:
"What's my AdGuard Home server status?"
If the connection is working, the assistant will call global_get_status and return your server version, DNS addresses, protection state, and port configuration.
Usage Examples
"What's the current DNS protection status?" -- calls
global_get_statusto show version, addresses, and protection state."Show me all DNS rewrite rules" -- calls
rewrites_listto display all configured DNS rewrites."Add a DNS rewrite for local.example.com pointing to 192.168.1.100" -- calls
rewrites_addto create a new rewrite rule.
Troubleshooting
Connection errors
Verify
ADGUARD_URLis reachable from the machine running the MCP serverEnsure the URL includes the port if non-standard (e.g.,
http://192.168.1.1:3000)Check that AdGuard Home is running and accessible
Authentication failures
Verify
ADGUARD_USERNAMEandADGUARD_PASSWORDare correctCheck that the user has admin privileges in AdGuard Home
Tools not showing up
Check your
ADGUARD_ACCESS_TIERsetting --read-onlymode only exposes read toolsCheck
ADGUARD_CATEGORIES-- only tools in listed categories are registeredVerify the server started without errors by checking stderr output
Development
# Install dependencies
npm install
# Build the project
npm run build
# Run in development mode (auto-reload)
npm run dev
# Open the MCP Inspector for interactive testing
npm run inspectLicense
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.
Related MCP Servers
- FlicenseBquality-maintenanceEnables control and monitoring of Home Assistant smart home devices through MCP, allowing users to list entities, check device states, and call services to control lights, switches, sensors, and other connected devices.4
- Alicense-qualityBmaintenanceAn MCP server and Home Assistant add-on that enables AI assistants to manage smart homes by creating automations, designing dashboards, and interacting with entities. It features native access to Home Assistant APIs, built-in Git versioning for safe rollbacks, and full management of HACS integrations.610MIT
- Alicense-qualityFmaintenanceEnables interaction with Grocy's API through MCP, allowing management of grocery inventory, shopping lists, and household tasks via natural language.19529MIT
- AlicenseAqualityCmaintenanceMCP server for Pi-hole v6 that enables management of blocklists, DNS blocking, domain allow/deny lists, and query diagnostics through natural language.19MIT
Related MCP Connectors
Official Microsoft MCP Server to query Microsoft Entra data using natural language
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
Tailscale device, route, DNS, key, user, and ACL management over MCP and CLI.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/Samik081/mcp-adguard-home'
If you have feedback or need assistance with the MCP directory API, please join our Discord server