Koskamo

Pi-hole MCP Server

An MCP server that provides AI assistants with full control over Pi-hole v6 DNS ad-blocker instances. It supports multi-instance deployments, allowing users to manage query logs, allow/deny lists, groups, clients, blocking controls, local DNS records, gravity reloads, and statistics. It offers smart regex detection and is available via Docker or stdio transport.

Package and access

Local package with source-attributed installation metadata. Koskamo does not execute packages during review.

Pi-hole MCP Server logo, by ranklancerCommunity listingLocal stdioSource reviewed; not executedPublished by ranklancer
Vendor documentation

Checks and signals

Each line is separate evidence, not a trust score.

  • Popularity 3 GitHub stars

What you can do with it

  • Query DNS logs and statistics across multiple Pi-hole instances
  • Manage allow and deny lists with full CRUD operations
  • Configure group and client management settings
  • Reload gravity and control blocking settings

Source and maintenance

Community listingRegistry 0.2.0MIT
Last repository push
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

@ranklancer/pihole-mcp 0.2.0

npm
@ranklancer/pihole-mcp package definition
{
  "version": "0.2.0",
  "transport": "stdio",
  "identifier": "@ranklancer/pihole-mcp",
  "registryType": "npm",
  "environmentVariables": [
    {
      "name": "PIHOLE_INSTANCES",
      "format": "string",
      "isRequired": true,
      "description": "Comma-separated list of Pi-hole instance names (e.g. 'pihole' or 'primary,secondary')"
    },
    {
      "name": "PIHOLE_BASE_URL",
      "format": "string",
      "isRequired": true,
      "description": "Base URL of your first Pi-hole instance (e.g. 'http://192.168.1.100')"
    },
    {
      "name": "PIHOLE_PASSWORD",
      "format": "string",
      "isRequired": true,
      "description": "API password for your first Pi-hole instance"
    }
  ]
}

Tools

Reported by the attributed source; not independently observed by Koskamo.

No tool definitions available.

Maintenance history

Public check and source-refresh events. Editorial and ownership records remain private.

  • · repository · passed · metadata changed · updated
  • · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "pi-hole-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@ranklancer/pihole-mcp@0.2.0"
      ],
      "env": {
        "PIHOLE_INSTANCES": "<YOUR_PIHOLE_INSTANCES>",
        "PIHOLE_BASE_URL": "<YOUR_PIHOLE_BASE_URL>",
        "PIHOLE_PASSWORD": "<YOUR_PIHOLE_PASSWORD>"
      }
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "pi-hole-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@ranklancer/pihole-mcp@0.2.0"
      ],
      "env": {
        "PIHOLE_INSTANCES": "<YOUR_PIHOLE_INSTANCES>",
        "PIHOLE_BASE_URL": "<YOUR_PIHOLE_BASE_URL>",
        "PIHOLE_PASSWORD": "<YOUR_PIHOLE_PASSWORD>"
      }
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "servers": {
    "pi-hole-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ranklancer/pihole-mcp@0.2.0"
      ],
      "env": {
        "PIHOLE_INSTANCES": "<YOUR_PIHOLE_INSTANCES>",
        "PIHOLE_BASE_URL": "<YOUR_PIHOLE_BASE_URL>",
        "PIHOLE_PASSWORD": "<YOUR_PIHOLE_PASSWORD>"
      }
    }
  }
}

Claude Desktop

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "mcpServers": {
    "pi-hole-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@ranklancer/pihole-mcp@0.2.0"
      ],
      "env": {
        "PIHOLE_INSTANCES": "<YOUR_PIHOLE_INSTANCES>",
        "PIHOLE_BASE_URL": "<YOUR_PIHOLE_BASE_URL>",
        "PIHOLE_PASSWORD": "<YOUR_PIHOLE_PASSWORD>"
      }
    }
  }
}

Let your agent find its tools

Find servers like Pi-hole MCP Server from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.