
AdGuard Home MCP Server
io.github.Samik081Published by GitHub account Samik081v0.11.0Updated Nov 12, 2026
Manage AdGuard Home through AI assistants
Overview
Lets an assistant manage a self-hosted AdGuard Home instance: DNS filtering, query logs, statistics, clients, DHCP, rewrites and TLS settings.
- What you can do
- Read server status, profile, version and update availability, and toggle global DNS protection or start a software update
- Inspect and change DNS configuration, test upstreams, and clear the resolver cache
- Search and clear the query log, read and reset statistics, and adjust their configuration
- Manage filter lists and custom rules, check whether a hostname would be blocked, and toggle safe browsing, parental filtering and safe search
- List, add, update and delete clients, DHCP settings and static leases, DNS rewrites, blocked services and access control lists
- Validate TLS settings and generate Apple DNS-over-HTTPS or DNS-over-TLS profiles
- When to use it
- Useful when you run AdGuard Home on your own network and want to ask an assistant about blocking activity, adjust filter rules or rewrites, or check DHCP and DNS settings without clicking through the web UI. The read-only tier suits monitoring-only setups.
- Requirements
- Runs locally via npx with Node.js 22 or later, or as a Docker image. Needs ADGUARD_URL pointing at the AdGuard Home instance, plus ADGUARD_USERNAME and ADGUARD_PASSWORD unless authentication is disabled there; the server validates the connection at startup. Optional variables set the access tier, category and tool filters, and HTTP transport.
Installation
In SourceWeft
- Open AdGuard Home MCP Server in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
[npm version] [Docker image] [License: MIT] [Node.js Version]
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 monitoring - Category filtering via
ADGUARD_CATEGORIESto expose only the tools you need - Zero HTTP dependencies -- uses native
fetch(Node.js 22+) - Docker images for
linux/amd64andlinux/arm64on GHCR - Remote MCP via HTTP transport (
MCP_TRANSPORT=http) using the Streamable HTTP protocol - TypeScript/ESM with full type safety
API Compatibility
Tested with AdGuard Home v0.107.76.
Quick Start
Run the server directly with npx:
The 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):
To run as a remote MCP server with HTTP transport:
The MCP endpoint is available at http://localhost:3000 and a health check at http://localhost:3000/health.
Security: the HTTP transport has no authentication -- anyone who can reach the port can call every enabled tool. Keep it on loopback or a trusted network, or put it behind an authenticating reverse proxy. Outside Docker the server binds to
127.0.0.1by default and only accepts requests whoseHost/Originis a loopback name (DNS rebinding protection). The Docker image binds to0.0.0.0, where that check is off unless you setMCP_ALLOWED_HOSTSto the hostnames clients use to reach it.
Configuration
Claude Code CLI (recommended):
JSON config (works with Claude Code .mcp.json, Claude Desktop claude_desktop_config.json, Cursor .cursor/mcp.json):
Docker (stdio):
Remote MCP (connect to a running Docker container or HTTP server):
Access Tiers
Control which tools are available using the ADGUARD_ACCESS_TIER environment variable:
- 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
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).
Global (6 tools)
DNS (4 tools)
Query Log (4 tools)
Statistics (4 tools)
Filtering (8 tools)
Safe Browsing (2 tools)
Parental (2 tools)
Safe Search (2 tools)
Clients (5 tools)
DHCP (9 tools)
Rewrites (6 tools)
TLS (3 tools)
Blocked Services (3 tools)
Access (2 tools)
Install (3 tools)
Mobile Config (2 tools)
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 server - Ensure 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 correct - If AdGuard Home has authentication disabled (no users configured), leave both variables unset
- Check that the user has admin privileges in AdGuard Home
Tools not showing up
- Check your
ADGUARD_ACCESS_TIERsetting --read-onlymode only exposes read tools - Check
ADGUARD_CATEGORIES-- only tools in listed categories are registered - Verify the server started without errors by checking stderr output
403 Forbidden: Host header not allowed
In HTTP mode the server rejects requests whose Host or Origin header is not an allowed hostname. If you reach it through a reverse proxy or under another name, add that hostname to MCP_ALLOWED_HOSTS. To accept connections from other machines without Docker, also set MCP_HOST=0.0.0.0.
Development
License
Source: README.md at commit 749d4dd
Tools
0Version history
4- v0.11.0LatestNov 12, 2026
- v0.10.1Oct 5, 2026
- v0.10.0Sep 29, 2026
- v0.9.2Sep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts