Skip to content
VS Code

OnlyDNS MCP Server for VS Code

io.github.onlydns/onlydns-mcp

Model Context Protocol server for OnlyDNS to manage DNS zones, records, DNSSEC, and TSIG keys.

client:VS Code transport:stdio runtime:npm

Install OnlyDNS MCP Server in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "onlydns-api-token",
      "description": "ONLYDNS_API_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "onlydns-api-base-url",
      "description": "ONLYDNS_API_BASE_URL",
      "password": true
    }
  ],
  "servers": {
    "onlydns-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@onlydns/mcp"
      ],
      "env": {
        "ONLYDNS_API_TOKEN": "${input:onlydns-api-token}",
        "ONLYDNS_API_BASE_URL": "${input:onlydns-api-base-url}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

OnlyDNS MCP Server in other clients