# Claude

## Claude Code

Run this once in a terminal with your key in the environment.

```sh
claude mcp add --transport http dnssuper https://mcp.dnssuper.com/mcp --header "Authorization: Bearer $DNSSUPER_API_KEY"
```

Replace `YOUR_API_KEY` with your key. Then run `claude mcp list` to see that `dnssuper` is connected, and
ask Claude to check a domain: "Look up the MX records for example.com".

## The Claude desktop app

Claude Desktop starts local servers from its config file, so it reaches the remote server through a small
stdio bridge that runs with Node.js:

claude_desktop_config.json: Settings, Developer, Edit config; restart Claude Desktop after saving. The bridge runs on your machine.

```json
{
  "mcpServers": {
    "dnssuper": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.dnssuper.com/mcp",
        "--header",
        "Authorization: Bearer YOUR_API_KEY"
      ]
    }
  }
}
```

Put your key in `DNSSUPER_API_KEY`, save the file and restart Claude Desktop. The DNS Super tools then
appear in the tools menu.

## Check that it works

Ask for something cheap first, such as a DNS lookup, which costs 1 credit. The answer
ends with the credits used and what is left. If the call fails with `unauthorized`, the key is missing or
wrong; see [authentication](/docs/authentication).
