MCP.so
ログイン

PiHole MCP Server

@JafarKhQ

基本情報

カテゴリ

その他

トランスポート

stdio

作者

JafarKhQ

投稿者

Jafar Qaddoumi

PiHole MCP Server について

Manage Pi-hole with the power of AI

PiHole MCP Server の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "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"
      }
    }
  }
}

PiHole MCP Server のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is PiHole MCP Server?

PiHole MCP Server is a Java-based MCP (Model Context Protocol) server that enables AI applications to manage a Pi-hole instance through standard commands. It is designed for users who want to control Pi-hole DNS blocking, domain lists, and retrieve statistics from an AI assistant.

How to use PiHole MCP Server?

Ensure Java 21 is installed, download the JAR from the releases page, and configure your AI client with the server command (java -jar /path/to/pihole-mcp.jar) and environment variables (PIHOLE_HOST, PIHOLE_APP_PASSWORD, and optionally PIHOLE_PORT). Then, restart the client to make the tools available.

Key features of PiHole MCP Server

  • Restart the Pi-hole FTL DNS service.
  • Get or set DNS blocking status with optional disable timer.
  • Add domains to allowlist or denylist (exact or regex).
  • Retrieve Pi-hole statistics (total queries, blocked, top domains).
  • Fetch system information (CPU, memory, blocking percentage, uptime).

Use cases of PiHole MCP Server

  • Enable or disable Pi-hole ad blocking from an AI chat interface.
  • Automatically add suspicious domains to the denylist via AI workflow.
  • Monitor Pi-hole performance and query statistics in real time.
  • Quickly restart the FTL service when troubleshooting network issues.

よくある質問

1

What does PiHole MCP Server do?

It acts as a bridge between AI applications and a Pi-hole instance, exposing tools to manage DNS blocking, domain lists, and retrieve statistics.

2

What are the system requirements?

Java 21 must be installed on the machine running the server. The Pi-hole instance must be reachable over the network.

3

How do I connect it to my Pi-hole?

Set the environment variables `PIHOLE_HOST` (IP or hostname), `PIHOLE_APP_PASSWORD` (your Pi-hole application password), and optionally `PIHOLE_PORT` (default 80).

4

Does it support authentication?

Yes, it uses the Pi-hole application password provided via the `PIHOLE_APP_PASSWORD` environment variable.

5

What commands can the AI send?

The server exposes six tools: restart FTL, get/set blocking status, add a domain, retrieve statistics, and retrieve system information.

コメント

「その他」の他のコンテンツ