PI

Pi hole MCP Server

Published by hexamatic

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

Website
CATEGORY
More to explore
DEPLOYMENT
Local package
LATEST SOURCE VERSION
0.10.0
SOURCE CHECKED
Dec 2, 2026

Quick answers

How do I add Pi hole MCP Server to Claude Code, Cursor or Codex?

Claude CodeCommand

Run this in your terminal:

claude mcp add --env 'PIHOLE_URL=<your-pihole-url>' --env 'PIHOLE_PASSWORD=<your-pihole-password>' --transport stdio pi-hole -- docker run -i --rm -e PIHOLE_URL -e PIHOLE_PASSWORD ghcr.io/hexamatic/pihole-mcp:0.10.0

Replace the <your-…> placeholder with your own PIHOLE_URL and PIHOLE_PASSWORD.

Claude Code setup guide
CursorConfig

Add this to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project:

{
  "mcpServers": {
    "pi-hole": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PIHOLE_URL",
        "-e",
        "PIHOLE_PASSWORD",
        "ghcr.io/hexamatic/pihole-mcp:0.10.0"
      ],
      "env": {
        "PIHOLE_URL": "<your-pihole-url>",
        "PIHOLE_PASSWORD": "<your-pihole-password>"
      }
    }
  }
}

Replace the <your-…> placeholder with your own PIHOLE_URL and PIHOLE_PASSWORD.

Cursor setup guide
CodexCommand

Run this in your terminal:

codex mcp add pi-hole --env 'PIHOLE_URL=<your-pihole-url>' --env 'PIHOLE_PASSWORD=<your-pihole-password>' -- docker run -i --rm -e PIHOLE_URL -e PIHOLE_PASSWORD ghcr.io/hexamatic/pihole-mcp:0.10.0

Replace the <your-…> placeholder with your own PIHOLE_URL and PIHOLE_PASSWORD.

Codex setup guide
VS CodeConfig

Add this to .mcp.json at the root of your workspace:

{
  "mcpServers": {
    "pi-hole": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PIHOLE_URL",
        "-e",
        "PIHOLE_PASSWORD",
        "ghcr.io/hexamatic/pihole-mcp:0.10.0"
      ],
      "env": {
        "PIHOLE_URL": "<your-pihole-url>",
        "PIHOLE_PASSWORD": "<your-pihole-password>"
      }
    }
  }
}

Replace the <your-…> placeholder with your own PIHOLE_URL and PIHOLE_PASSWORD.

VS Code setup guide
Claude DesktopConfig

Add this to claude_desktop_config.json, then restart Claude:

{
  "mcpServers": {
    "pi-hole": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PIHOLE_URL",
        "-e",
        "PIHOLE_PASSWORD",
        "ghcr.io/hexamatic/pihole-mcp:0.10.0"
      ],
      "env": {
        "PIHOLE_URL": "<your-pihole-url>",
        "PIHOLE_PASSWORD": "<your-pihole-password>"
      }
    }
  }
}

Replace the <your-…> placeholder with your own PIHOLE_URL and PIHOLE_PASSWORD.

Claude Desktop setup guide
ChatGPTNot available

ChatGPT can't add it from its published details: it connects from the cloud and needs a public address, and this server runs on your computer.

ChatGPT setup guide

Which apps can use Pi hole MCP Server?

Claude Code, Cursor, Codex, VS Code and Claude Desktop can add it from its published details. ChatGPT can't: it connects from the cloud and needs a public address, and this server runs on your computer.

Does Pi hole MCP Server need an API key?

To run it on your computer, set PIHOLE_URL and PIHOLE_PASSWORD first, with values from the publisher.

Is Pi hole MCP Server official?

It's published by hexamatic. The Official MCP Registry accepts names under io.github.hexamatic only from the GitHub account or organisation hexamatic. We last checked its listing on Dec 2, 2026. A listing shows where a server comes from; it isn't a security review.

Published packages

oci · ghcr.io/hexamatic/pihole-mcp:0.10.0
View source repository