Developer tools / Pi-hole MCP Server

Pi-hole MCP Server

io.github.hexamatic/pihole-mcp · v0.10.0

Manage Pi-hole v6: DNS blocking, domains, clients, query analysis, DHCP, and multi-instance sync.

Description supplied by the publisher in the MCP Registry. We have not tested this server.

Ranks #440 of 610 Developer tools servers on Socketlist by score, with 12 GitHub stars and a last code push 27d ago.

Install

docker run -i --rm ghcr.io/hexamatic/pihole-mcp:0.10.0

Assembled from the package metadata in the official MCP Registry (including any subcommand or flag the publisher lists). Some publishers do not list the subcommand that starts MCP mode, so confirm the command in the README, along with any required configuration and credentials, before connecting it to real data.

Connect Pi-hole MCP Server to Claude Code, Cursor or VS Code

Built from what the publisher declared in the official MCP Registry (the launch command above). We have not run this server. Replace anything in <angle brackets>, and keep keys and tokens in your environment, not in a shared file.

Claude Code

Run in a terminal. Adds the server at local scope; add --scope project or --scope user to share it. Secret variables the publisher declares are included; drop any the README says are optional. Claude Code setup guide.

claude mcp add --env PIHOLE_URL=<pihole_url> --env PIHOLE_PASSWORD=<pihole_password> --transport stdio pi-hole-mcp-server -- docker run -i --rm ghcr.io/hexamatic/pihole-mcp:0.10.0

.mcp.json (Claude Code project scope, VS Code with Copilot)

Put this in a .mcp.json file at the project root. ${NAME} reads the value from your environment, so no secret is written to the file. VS Code and .mcp.json guide.

{
  "mcpServers": {
    "pi-hole-mcp-server": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/hexamatic/pihole-mcp:0.10.0"
      ],
      "env": {
        "PIHOLE_URL": "${PIHOLE_URL}",
        "PIHOLE_PASSWORD": "${PIHOLE_PASSWORD}"
      }
    }
  }
}

Cursor

Put this in .cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project. Cursor mcp.json guide.

{
  "mcpServers": {
    "pi-hole-mcp-server": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/hexamatic/pihole-mcp:0.10.0"
      ],
      "env": {
        "PIHOLE_URL": "${env:PIHOLE_URL}",
        "PIHOLE_PASSWORD": "${env:PIHOLE_PASSWORD}"
      }
    }
  }
}

Configuration the publisher declares

Environment variableRequiredSecretPublisher's note
PIHOLE_URLYesNoBase URL of your Pi-hole web interface. For multiple Pi-holes use PIHOLE_1_URL, PIHOLE_2_URL, ... instead.
PIHOLE_PASSWORDYesYesPi-hole admin password, or an application password (recommended — bypasses TOTP 2FA)
TZNoNoIANA timezone for rendered timestamps, e.g. Australia/Adelaide. Defaults to UTC in the container.
PIHOLE_READ_ONLYNoNoExpose only inspection tools. Every tool that can change Pi-hole is hidden and rejected if called.
PIHOLE_TLS_SKIP_VERIFYNoNoSet to true only for a Pi-hole serving a self-signed HTTPS certificate. A trusted certificate is the better fix.
PIHOLE_REQUEST_TIMEOUTNoNoHTTP request timeout as a Go duration, e.g. 30s or 1m
PIHOLE_MAX_RETRIESNoNoRetries after a transient Pi-hole API failure; 0 disables retrying
PIHOLE_RETRY_MAX_DELAYNoNoUpper bound on a single exponential-backoff wait, as a Go duration

"Required" and "secret" are the publisher's own flags in the registry, and many publishers leave them unset, so check the README too.

Allowlist entry

If your organisation restricts MCP servers, this is the entry an admin adds to allowedMcpServers in Claude Code managed settings or a GitHub Copilot enterprise managed-settings.json. A serverCommand entry must match the configured command and arguments exactly, so change both together.

{
  "allowedMcpServers": [
    {
      "serverCommand": [
        "docker",
        "run",
        "-i",
        "--rm",
        "ghcr.io/hexamatic/pihole-mcp:0.10.0"
      ]
    }
  ]
}

How allowlists work in each client: MCP server allowlists for Claude Code, GitHub Copilot and Cursor. Before you connect it to real data: 10 security checks for MCP servers.

Signals

GitHub stars12
npm weekly downloads-
Last push27d ago
LicenceMIT
Open issues3
SECURITY.mdYes
LanguageGo
Latest version published2026-11-02

Signals captured from GitHub, npm and the official MCP Registry on November 11, 2026. See the scoring method.

Similar servers

Pi-hole MCP Server

Score 77

MCP server for Pi-hole v6 API — manage multiple instances: queries, lists, groups, stats

★ 3MITpushed 23d ago
Developer tools

WHOIS

Score 84

Query WHOIS/RDAP information for domains, IP addresses, CIDR prefixes and ASNs. Self-hostable.

★ 66MITpushed 19d ago
Developer toolsRemote

Komodo MCP Server

Score 84

MCP server for Komodo - manage Docker containers, servers, stacks, and deployments via AI

★ 56↓ 140/wkGPL-3.0pushed 20d ago
Developer tools

Five MCP servers worth your time, every week

The Plug Weekly is a free email picked from these scores. About a 3-minute read. Unsubscribe any time.

Subscribe free