Pi-hole MCP Server

Pi-hole MCP Server

pihole-mcp-server-jafarkhq•byjafarkhq

A Java MCP server that lets AI applications interact with and manage a Pi-hole instance through standard commands.

License: MIT License•Runtime: Awaiting documentation review•Category: cloud devops

WHAT IT DOES

  • •Provides AI tools to restart the Pi-hole FTL DNS service and to get or set DNS blocking status, optionally with a disable duration.
  • •Adds domains to the allowlist or denylist, supporting exact and regex kinds with validation and an optional comment.
  • •Retrieves Pi-hole statistics such as total queries, blocked queries, and top domains.
  • •Retrieves Pi-hole system information including CPU load, memory usage, blocking percentage, and uptime.

BEST FOR

  • •Managing DNS blocking and Pi-hole service state from an AI client.
  • •Adding allowlist or denylist entries through an AI application.
  • •Checking Pi-hole query statistics and system health from an AI client.

ABOUT PIHOLE-MCP-SERVER-JAFARKHQ

Pi-hole MCP Server is cataloged as an MCP server attributed to jafarkhq. A Java MCP server that lets AI applications interact with and manage a Pi-hole instance through standard commands. It is categorized under cloud devops. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Pi-hole MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What environment variables does the server need to connect to Pi-hole?

It uses PIHOLE_HOST and PIHOLE_APP_PASSWORD, with PIHOLE_PORT optional and defaulting to 80.

What is required to run the server?

Java 21 must be installed on the machine running the server.

Upstream README

View this exact version on GitHub

README.md · 7a2344eb5b29 · Fetched 2026-11-13 11:33:42 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Pi-hole MCP Server

Pi-hole MPC Server
Manage Pi-hole with the power of AI

A Pi-hole MCP (Model Control Protocol) server implemented in Java that allows AI applications to interact with and manage a Pi-hole instance through standard commands.

GitHub release GitHub license

Features

  • Core AI tools
    • Restart Pi-hole FTL Service — restart the Pi-hole FTL DNS service to apply changes or recover.
    • Get Pi-hole DNS Blocking Status — retrieve current blocking mode and remaining timer.
    • Set Pi-hole DNS Blocking Status — enable/disable DNS blocking; optionally set a disable duration (seconds).
    • Add New Domain — add domains to allowlist/denylist (supports exact and regex kinds) with validation and optional comment.
    • Retrive Pi-hole Statistics — fetch statistics like total queries, blocked queries, and top domains.
    • Retrive Pi-hole System Information — get system info including CPU load, memory usage, blocking percentage, and uptime.

Running the Server

To run the MCP server, you need to have Java 21 installed on your machine.

  1. Download the Pi-hole MCP server JAR file from the releases page
  2. Add MCP server configuration to your AI application client.

JSON configuration example:

{
  "mcpServers": {
    "pihole-mcp-server-java": {
      "command": "java",
      "args": [
        "-jar",
        "/absolute/path/to/pihole-mcp.jar"
      ],
      "env": {
        "PIHOLE_PORT": "8080",
        "PIHOLE_HOST": "192.168.1.2",
        "PIHOLE_APP_PASSWORD": "your_app_password"
      }
    }
  }
}

YAML configuration example:

name: pihole-mcp-server-java
version: 0.0.1
schema: v1
mcpServers:
  - name: pihole-mcp-server-java
    command: java
    args:
      - -jar
      - /absolute/path/to/pihole-mcp.jar
    env: {
      "PIHOLE_PORT": "8080",
      "PIHOLE_HOST": "192.168.1.2",
      "PIHOLE_APP_PASSWORD": "your_app_password"
    }

Environment Variables

Make sure to set the following environment variables:

  • PIHOLE_PORT: (Optional) The port on which your Pi-hole instance is running (default is 80).
  • PIHOLE_HOST: The IP address or hostname of your Pi-hole instance.
  • PIHOLE_APP_PASSWORD: The application password for your Pi-hole instance.

Building from Source

Pre requisites:

  • Java JDK 21
  • Maven

To build the Pi-hole MCP server from source, follow these steps:

  1. Clone/Download the repository.
  2. Build the project using Maven:
    mvn clean package
    
  3. Run the server using the command mentioned above.

License

This project is licensed under the MIT License. See the LICENSE file for details

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Pi-hole MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/pihole-mcp-server-jafarkhq)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related cloud devops MCP Servers

Alternative and complementary servers in the same category

View all in cloud devops →
Huawei MCP Server
mcp-server-huaweiclouddeveloper•huaweiclouddeveloper

A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

Repository stats unavailable
Cloud & DevOps
Coolify MCP Server
coolify-mcp-server•wrediam

An MCP server that exposes the Coolify v4.3.1 REST API so AI clients can manage applications, databases, services, servers, deployments, and more.

Repository stats unavailable
Cloud & DevOps

A deprecated Model Context Protocol server for interacting with Kong Konnect APIs, enabling AI assistants to query and analyze Kong Gateway configurations, traffic, and analytics.

Repository stats unavailable
Cloud & DevOps