
PiHole MCP Server
@JafarKhQ
关于 PiHole MCP Server
Manage Pi-hole with the power of AI
基本信息
配置
使用下面的配置,将此服务器添加到你的 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"
}
}
}
}工具
未检测到工具
工具是从 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.
FAQ from PiHole MCP Server
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.
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.
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).
Does it support authentication?
Yes, it uses the Pi-hole application password provided via the PIHOLE_APP_PASSWORD environment variable.
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.
其他 分类下的更多 MCP 服务器
MCP Toolbox for Databases
googleapisMCP Toolbox for Databases is an open source MCP server for databases.
Inbox Zero AI MCP
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
MaxKB
1Panel-dev🔥 MaxKB is an open-source platform for building enterprise-grade agents. 强大易用的开源企业级智能体平台。
ghidraMCP
LaurieWiredMCP Server for Ghidra
🪟 Windows-MCP
CursorTouchMCP Server for Computer Use in Windows
评论