HydraDNS MCP Server
by hydradnsio.github.hydradns/hydra-mcpv0.1.0
Manage a self-hosted DNS firewall: block domains, create policies, read query logs and metrics.
context tax
queued
security
queued
cold start
queued
freshness
Active13d ago
Install HydraDNS MCP server
Install in Claude Code
claude mcp add cli-hydradns -e HYDRA_API_URL=http://host.docker.internal:8080 -e HYDRA_TOKEN='<hydra-token>' -- docker run -i --rm -e HYDRA_API_URL -e HYDRA_TOKEN ghcr.io/hydradns/hydra-cli:0.1.0 mcpInstall in Cursor
{
"mcpServers": {
"cli-hydradns": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"HYDRA_API_URL",
"-e",
"HYDRA_TOKEN",
"ghcr.io/hydradns/hydra-cli:0.1.0",
"mcp"
],
"env": {
"HYDRA_API_URL": "http://host.docker.internal:8080",
"HYDRA_TOKEN": "<hydra-token>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"cli-hydradns": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"HYDRA_API_URL",
"-e",
"HYDRA_TOKEN",
"ghcr.io/hydradns/hydra-cli:0.1.0",
"mcp"
],
"env": {
"HYDRA_API_URL": "http://host.docker.internal:8080",
"HYDRA_TOKEN": "<hydra-token>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"cli-hydradns": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"HYDRA_API_URL",
"-e",
"HYDRA_TOKEN",
"ghcr.io/hydradns/hydra-cli:0.1.0",
"mcp"
],
"env": {
"HYDRA_API_URL": "http://host.docker.internal:8080",
"HYDRA_TOKEN": "<hydra-token>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"cli-hydradns": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"HYDRA_API_URL",
"-e",
"HYDRA_TOKEN",
"ghcr.io/hydradns/hydra-cli:0.1.0",
"mcp"
],
"env": {
"HYDRA_API_URL": "http://host.docker.internal:8080",
"HYDRA_TOKEN": "<hydra-token>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| HYDRA_API_URL | yes | — | Base 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'. |
| HYDRA_TOKEN | yes | yes | Bearer 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. |
| MCP_ROLE | — | — | Permission 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. |
Freshness
Active — last maintenance signal 13d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-09-27 · 13d ago · GitHub
Latest release
2026-09-26 · 13d ago · GitHub · v0.1.1
Package published
no data · npm/PyPI
Registry entry updated
2026-09-21 · 19d ago · official registry · v0.1.0
FAQ
›How do I install the HydraDNS MCP server in Claude Code?
Run: claude mcp add cli-hydradns -e HYDRA_API_URL=http://host.docker.internal:8080 -e HYDRA_TOKEN='<hydra-token>' -- docker run -i --rm -e HYDRA_API_URL -e HYDRA_TOKEN ghcr.io/hydradns/hydra-cli:0.1.0 mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does HydraDNS require an API key?
Yes. It expects HYDRA_API_URL, HYDRA_TOKEN, of which 1 is a secret.
›Can I use HydraDNS as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is HydraDNS in the official MCP registry?
Yes, as io.github.hydradns/hydra-mcp.
Alternatives to HydraDNS
Other monitoring & observability MCP servers.