Skip to content
MCP server

HydraDNS

Manage a self-hosted DNS firewall: block domains, create policies, read query logs and…

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
0.1.0
Listing updated
6 days ago

About HydraDNS

HydraDNS is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Manage a self-hosted DNS firewall: block domains, create policies, read query logs and metrics.

Install

Run in a terminal

claude mcp add hydra-mcp --env HYDRA_API_URL='<HYDRA_API_URL>' --env HYDRA_TOKEN='<HYDRA_TOKEN>' -- docker run -i --rm -e HYDRA_API_URL -e HYDRA_TOKEN ghcr.io/hydradns/hydra-cli:0.1.0

Add to claude_desktop_config.json

{
  "mcpServers": {
    "hydra-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "HYDRA_API_URL",
        "-e",
        "HYDRA_TOKEN",
        "ghcr.io/hydradns/hydra-cli:0.1.0"
      ],
      "env": {
        "HYDRA_API_URL": "<HYDRA_API_URL>",
        "HYDRA_TOKEN": "<HYDRA_TOKEN>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "hydra-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "HYDRA_API_URL",
        "-e",
        "HYDRA_TOKEN",
        "ghcr.io/hydradns/hydra-cli:0.1.0"
      ],
      "env": {
        "HYDRA_API_URL": "<HYDRA_API_URL>",
        "HYDRA_TOKEN": "<HYDRA_TOKEN>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "hydra-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "HYDRA_API_URL",
        "-e",
        "HYDRA_TOKEN",
        "ghcr.io/hydradns/hydra-cli:0.1.0"
      ],
      "env": {
        "HYDRA_API_URL": "<HYDRA_API_URL>",
        "HYDRA_TOKEN": "<HYDRA_TOKEN>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "hydra-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "HYDRA_API_URL",
        "-e",
        "HYDRA_TOKEN",
        "ghcr.io/hydradns/hydra-cli:0.1.0"
      ],
      "env": {
        "HYDRA_API_URL": "<HYDRA_API_URL>",
        "HYDRA_TOKEN": "<HYDRA_TOKEN>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "hydra-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "HYDRA_API_URL",
        "-e",
        "HYDRA_TOKEN",
        "ghcr.io/hydradns/hydra-cli:0.1.0"
      ],
      "env": {
        "HYDRA_API_URL": "<HYDRA_API_URL>",
        "HYDRA_TOKEN": "<HYDRA_TOKEN>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • HYDRA_API_URLBase URL of the HydraDNS controlplane API. Inside a container, 'localhost' means the container itself, not the host running the controlplane. On Docker Desktop (Mac/Windows) the default below resolves automatically. On plain Docker Engine (Linux) either run the container with --add-host=host.docker.internal:host-gateway, or use --network host with http://localhost:8080 instead. Full instructions: docs/mcp.md in the repo, 'Running it -> As the container image'.Required
  • HYDRA_TOKENBearer token for the HydraDNS API, obtained via `hydra login` or the setup wizard. Grants whatever access the token's account has; MCP_ROLE narrows what the MCP tool layer will call, not what the token itself can do against the API directly.Required
  • MCP_ROLEPermission scope for this MCP session: admin (default, every tool), operator (every mutating tool except toggle_engine), or reporter (read-only tools only). Any unrecognized value safe-defaults to reporter.

Pricing

Open source

HydraDNS FAQ

Is HydraDNS free?

Yes. HydraDNS is open source, so you can use and self-host it for free.

How do I add HydraDNS to Claude Code?

Run this command in your terminal: claude mcp add hydra-mcp --env HYDRA_API_URL='<HYDRA_API_URL>' --env HYDRA_TOKEN='<HYDRA_TOKEN>' -- docker run -i --rm -e HYDRA_API_URL -e HYDRA_TOKEN ghcr.io/hydradns/hydra-cli:0.1.0

Where this comes from

  • Description: from the official MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers