AgentHubAgentHub

Pi-hole MCP Server

MCP ServerMCP Registry官方收录

io.github.ranklancer/pihole-mcp · v0.2.0

MCP server for Pi-hole v6 API — manage multiple instances: queries, lists, groups, stats

概览

Pi-hole MCP Server 是一个MCP Server,收录自 官方 MCP Registry。支持 stdio 传输。本页提供 Cursor、Claude Code 等客户端的安装配置片段。

安装

选择你的平台查看安装方式

{
  "mcpServers": {
    "pihole-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ranklancer/pihole-mcp"
      ],
      "env": {
        "PIHOLE_INSTANCES": "<PIHOLE_INSTANCES>",
        "PIHOLE_BASE_URL": "<PIHOLE_BASE_URL>",
        "PIHOLE_PASSWORD": "<PIHOLE_PASSWORD>"
      }
    }
  }
}

环境变量

PIHOLE_INSTANCES必填

Comma-separated list of Pi-hole instance names (e.g. 'pihole' or 'primary,secondary')

PIHOLE_BASE_URL必填

Base URL of your first Pi-hole instance (e.g. 'http://192.168.1.100')

PIHOLE_PASSWORD必填secret

API password for your first Pi-hole instance

相关资源

统一 Manifest

{
  "id": "io.github.ranklancer/pihole-mcp",
  "type": "mcp-server",
  "version": "0.2.0",
  "displayName": "Pi-hole MCP Server",
  "description": "MCP server for Pi-hole v6 API — manage multiple instances: queries, lists, groups, stats",
  "repository": {
    "url": "https://github.com/ranklancer/pihole-mcp",
    "source": "github"
  },
  "distribution": {
    "packages": [
      {
        "registryType": "npm",
        "identifier": "@ranklancer/pihole-mcp",
        "version": "0.2.0",
        "transport": "stdio",
        "environmentVariables": [
          {
            "name": "PIHOLE_INSTANCES",
            "description": "Comma-separated list of Pi-hole instance names (e.g. 'pihole' or 'primary,secondary')",
            "isRequired": true
          },
          {
            "name": "PIHOLE_BASE_URL",
            "description": "Base URL of your first Pi-hole instance (e.g. 'http://192.168.1.100')",
            "isRequired": true
          },
          {
            "name": "PIHOLE_PASSWORD",
            "description": "API password for your first Pi-hole instance",
            "isRequired": true,
            "isSecret": true
          }
        ]
      }
    ],
    "remotes": []
  },
  "dependencies": [],
  "installTargets": [
    "claude-code",
    "claude-desktop",
    "cursor",
    "vscode"
  ],
  "keywords": [],
  "provenance": {
    "origin": "official-mcp-registry",
    "originalId": "io.github.ranklancer/pihole-mcp",
    "originalUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.ranklancer%2Fpihole-mcp/versions/latest",
    "isOfficial": true,
    "status": "active"
  }
}
Pi-hole MCP Server — MCP Server 安装与配置 · AgentHub