Skip to main content

MCP Integration Guide

Connect your plan’s tools from the 108-tool catalog to a compatible AI client via Streamable HTTP at mcp.edgedns.dev/mcp

Overview

EdgeDNS provides a dedicated MCP server following the industry standard pattern used by Notion, Sentry, Stripe, and GitHub Copilot. The server has a catalog of 108 eligible tools covering DNS, email auth, TLS posture, SEO analysis, tech stack detection, performance, threat intelligence, network diagnostics, compliance, and reporting. MCP access is included on all plans; discovery returns only the tools available to your plan. Management categories and REST-only operations are excluded.

Any client that supports the Model Context Protocol can connect directly — no SDK wrappers or format conversions needed.

Quick Start

1. Add EdgeDNS to Claude (Connectors)

The fastest way to get started — no API key, no terminal. In Claude (claude.ai or Desktop), open Settings → Connectors → Add custom connector, paste the server URL below, and sign in when the EdgeDNS sign-in screen opens, then approve the consent request.

Server URL: https://mcp.edgedns.dev/mcp

EdgeDNS MCP access is included on every EdgeDNS plan. The client’s custom-connector availability depends on its own plan.

2. Start using tools

Ask Claude to analyze a domain. It will automatically discover and call the right tools.

> Check DNS records and SSL certificate for example.com

3. Prefer a developer client?

Claude Code, Cursor, Gemini CLI and other programmatic clients can authenticate with an API key. Sign in to the dashboard to generate one, then connect your client:

# Claude Code
claude mcp add --transport http edgedns https://mcp.edgedns.dev/mcp \
  --header "Authorization: Bearer edns_live_YOUR_KEY"

Full setup snippets for every supported client are in Client Setup Guides below.

Client Setup Guides

Claude Code

claude mcp add --transport http edgedns https://mcp.edgedns.dev/mcp \
  --header "Authorization: Bearer edns_live_YOUR_KEY"

Gemini CLI

Add to ~/.gemini/settings.json

{
  "mcpServers": {
    "edgedns": {
      "httpUrl": "https://mcp.edgedns.dev/mcp",
      "headers": {
        "Authorization": "Bearer edns_live_YOUR_KEY"
      }
    }
  }
}

OpenAI Responses API

The Responses API can call a remote MCP server. These examples use an OpenAI API key for the SDK and an EdgeDNS key for the MCP server.

Python

from openai import OpenAI

client = OpenAI()

response = client.responses.create(
    model="gpt-5.2",
    tools=[{
        "type": "mcp",
        "server_url": "https://mcp.edgedns.dev/mcp",
        "server_label": "edgedns",
        "headers": {"Authorization": "Bearer edns_live_YOUR_KEY"},
        "require_approval": "never",
    }],
    input="Check DNS records and security headers for example.com",
)
print(response.output_text)

TypeScript

import OpenAI from 'openai';

const openai = new OpenAI();

const response = await openai.responses.create({
  model: 'gpt-5.2',
  tools: [{
    type: 'mcp',
    server_url: 'https://mcp.edgedns.dev/mcp',
    server_label: 'edgedns',
    headers: { Authorization: 'Bearer edns_live_YOUR_KEY' },
    require_approval: 'never',
  }],
  input: 'Check DNS records and security headers for example.com',
});
console.log(response.output_text);

See the OpenAI remote MCP documentation for supported models and tool approval options.

Cursor / Windsurf / Cline

These editors support MCP natively. Add the server in settings.

Server URL: https://mcp.edgedns.dev/mcp
Header: Authorization: Bearer edns_live_YOUR_KEY

.mcp.json (Shared project config)

Add to your project root to share the MCP server configuration with your team. Keep the key in an environment variable; do not commit secrets.

{
  "mcpServers": {
    "edgedns": {
      "type": "http",
      "url": "https://mcp.edgedns.dev/mcp",
      "headers": {
        "Authorization": "Bearer ${EDGEDNS_API_KEY}"
      }
    }
  }
}

OAuth clients and endpoints

In an OAuth-capable client such as Claude Desktop or ChatGPT, add https://mcp.edgedns.dev/mcp as the remote server URL and complete the EdgeDNS sign-in and consent flow. Client features and plan availability vary; use the client’s remote MCP connection settings. OAuth access tokens last one hour; refresh tokens last up to 30 days and rotate on use. Reconnect after revocation.

OAuth-capable clients discover /.well-known/oauth-protected-resource and /.well-known/oauth-authorization-server on the MCP host. The authorization server supports POST /oauth/register, GET /oauth/authorize, POST /oauth/token, and POST /oauth/revoke. The authorization flow uses PKCE S256 and resource https://mcp.edgedns.dev; the default scope is mcp:tools. Token exchange and revocation accept form-encoded or JSON requests. These OAuth tokens authenticate the MCP server; use EdgeDNS API keys for REST.

Successful tool results contain the analysis data as JSON text, without the REST data/meta envelope. API failures appear in a tool result with isError: true. Management operations such as creating watches and changing billing use REST or the dashboard.

Tool Categories

Compatible clients automatically discover all available tools via the standard tools/list method. Discovery is filtered by your account’s plan. Catalog totals by category:

DNS Records15 tools
Email Security12 tools
Website Security11 tools
SEO & Content17 tools
Tech Stack12 tools
Site Performance10 tools
Threat Intelligence10 tools
Network & IP10 tools
Compliance4 tools
Domain Reports7 tools

Rate Limits

Tool calls are rate limited per API key, matching your plan's configured rate limits. The defaults below can be overridden; see the REST rate-limit headers for the effective window.

PlanRate Limit
Free10 req/min
Developer60 req/min
Pro300 req/min
Enterprise1,000 req/min

Most analysis calls use one request unit per call. Uncached ping and traceroute probes use one unit per requested zone; cached results and status polls use one unit. Scheduled checks share your monthly request allowance. MCP and scheduled checks share the account allowance.

Authentication

All tool calls require a valid EdgeDNS API key or OAuth access token passed as a Bearer token in the Authorization header. OAuth-capable clients use the sign-in and consent flow; API-key clients supply their EdgeDNS key. The MCP server resolves either credential to the account’s API context before making tool calls.

Direct API-key authentication

PrefixEnvironmentUsage
edns_live_ProductionLive API calls, counts toward usage

Validation Flow

  1. The client sends either an EdgeDNS API key or an OAuth access token as a Bearer credential.
  2. The MCP worker resolves the credential through the internal authentication service. Invalid, expired, or revoked credentials are rejected.
  3. The resolved account tier determines which eligible tools are registered. Management categories and REST-only endpoints are excluded.
  4. Tool requests execute against the API with the resolved API-key context and its applicable authorization and quota checks.

Example Prompts

Once connected, ask your AI assistant to analyze domains. It will automatically discover and call the right tools.

> Check DNS records and email auth for example.com
> Run a full audit on example.com including SSL, HTTP headers, and vulnerabilities
> Compare the tech stacks of github.com and gitlab.com
> Check if example.com has any known threats or malware reports
> Analyze SEO performance and structured data for example.com

How It Works

The server is a dedicated Cloudflare Worker built on the official MCP SDK with Streamable HTTP transport. Each tool call dispatches to the main EdgeDNS API via a direct Service Binding, reusing all existing validation, caching, and error handling.

MCP Client (Claude Code, Gemini CLI, etc.)
    |
    | Streamable HTTP (POST/GET to /mcp)
    v
mcp.edgedns.dev  ← Dedicated MCP Worker
    |
    | Service Binding (direct worker routing)
    v
api.edgedns.dev  ← Main API Worker
    |
    v
Route handlers, middleware, D1, KV, R2

Troubleshooting

401Unauthorized

Your bearer credential is missing, invalid, expired, or revoked. Supply a valid EdgeDNS API key, or reconnect the client through OAuth.

403Forbidden / Tier Restricted

Check the endpoint’s plan requirement. Higher-tier tools are omitted from discovery; after upgrading, refresh the client’s tool list. API calls can still reject a stale tool request for insufficient access.

429Rate Limited

A tool call exceeded its API rate window or monthly request allowance. Use bounded backoff for rate windows; quota exhaustion requires reset or an allowance change.

500Server Error

An unexpected error occurred. Retry transient failures with bounded backoff; contact support if it persists.

MCP integration — Claude, ChatGPT, Gemini, Cursor | EdgeDNS