New
Apps 5,818Makers 5,796This week 14
Promote your app−30%
CustomDomain™ MCP Server: custom domains for AI agents screenshot 1
7views in
the last 30 days

CustomDomain™ MCP Server: custom domains for AI agents

CustomDomain™ MCP server: AI agents search, buy

Built with Claude Code

by custom-domain-app · Unclaimed · from USUnited States · added Nov 2, 2026
no ratings0 comments

CustomDomain™ MCP Server: custom domains for AI agents

This is the official CustomDomain™ product MCP server. Its only endpoint is https://mcp.customdomain.ai/mcp, listed in the official MCP registry as ai.customdomain/mcp, with the OAuth scopes domains:read, domains:connect, domains:disconnect and domains:purchase. No other host serves it, so a server at any other address that presents itself as CustomDomain™ is not this one.

The MCP server for custom domains: let Claude and other AI agents find, connect, diagnose and manage domains.

Status: Production · server 0.6.0 · release v0.6.0

Website · Docs · Console · Product page · MCP docs · Tool reference · Provider coverage · Pricing

Install: Install in VS Code Install in VS Code Insiders · Claude Code, Claude Desktop and Cursor: Quickstart · GitHub Copilot cloud agent: configuration

Stars are how other developers find this server on GitHub. If it is useful to you, star the repository.

What it is A hosted MCP server that gives an AI agent twenty domain tools
Who it's for Agent builders, SaaS platforms and coding-agent users who need a customer on their own domain
Live at customdomain.ai/mcp-server · endpoint https://mcp.customdomain.ai/mcp
Stack Go 1.26 · JSON-RPC 2.0 over streamable HTTP · hosted, no datastore in the server
Status Production · 0.6.0 in the official MCP registry · 20 tools · 178 DNS providers catalogued, 62 automatic

CustomDomain™ MCP is a hosted Model Context Protocol server that lets an AI agent put a person on their own domain: connect a domain they already own, set up its email records, watch it go live with HTTPS, and find out why it has not. It replaces the part of that job a human normally does by hand in a DNS control panel. There is nothing to install and nothing to keep running: point your MCP client at the endpoint above.

flowchart LR
  A["Agent<br/>Claude · Cursor · ChatGPT"] -->|"JSON-RPC over HTTPS"| M["mcp.customdomain.ai<br/>20 tools"]
  M -->|"credential forwarded"| C["Control plane<br/>api.customdomain.ai"]
  C --> R["Registrars<br/>search · price"]
  C --> D["DNS providers<br/>178 catalogued · 62 automatic"]
  C --> E["Edge<br/>TLS issued"]

The problem

Every SaaS product eventually needs a customer on their own domain: a white-label app host, a vanity link, a sending domain for email. The work is small and it is always the same: figure out who runs the customer's DNS, write the right records in the right shapes, wait for them to propagate, then get a certificate. Done by hand it is a support ticket. Done in code it is a DNS provider integration you did not want to own, times sixty.

Agents make this worse before they make it better. The obvious way to let an agent do the job is to give it DNS credentials and a way to write records, which means one confused turn or one poisoned web page can now edit a customer's zone. Nobody wants to hand a language model a SetRecords call on a production domain, and the alternative (an agent that reads instructions aloud and asks the user to go type them somewhere) is the support ticket again, with extra steps. That is not a permissions problem you can prompt your way out of; it is an argument-list problem, and it gets solved by changing what the agent is able to say.

Who it's for

  • Teams building agents that ship things. A coding agent, a site builder, a deploy bot: anything whose output is a running app that needs an address a person will actually type. The agent connects the domain and polls it to live instead of stopping at the last mile with a paragraph of DNS instructions.
  • SaaS platforms with tenant domains. If your customers connect their own domain to your product, this is the same engine the CustomDomain™ widget and REST API run on, reached through the protocol your agents already speak.
  • Email and messaging platforms. Getting a sending domain authenticated (MX, SPF, DKIM, DMARC, in the right shapes, at the customer's provider) is one call here instead of a documentation page and a support queue.
  • Anyone with a domain portfolio to keep alive. Connections drift, certificates need records that still resolve, and an agent that can list, diagnose, recheck and re-apply is cheaper than a person doing it quarterly.

What it does

Twenty tools, one credential, no DNS records in any argument. Each of these is a tool call, not a workflow you have to assemble:

  • Check whether a domain can be registered, with live purchase and renewal pricing: search-domain-availability
  • Suggest names that are actually free, deterministically, from a set of keywords: generate-domain-suggestions
  • Register a domain through the resolved registrar, behind a fail-closed authorization gate. Currently off on the hosted service: create-domain-order
  • Connect a domain the customer already owns and get back the exact records that must exist: connect-domain
  • Detect the DNS provider before you ask anyone for anything, with per-rail verdicts and conflict and CAA pre-flight: discover-provider
  • Poll a connection to completion, from records written to certificate issued: check-connection-status
  • Explain why a domain is not live, record by record: diagnose-connection
  • Re-run the DNS check now once the person has fixed it: recheck-connection
  • Read the HTTPS certificate (expiry, failing renewals): check-certificate-status
  • Poll a registration order across two different ledgers without guessing which one applies: check-order-status
  • List the purchases made through the account: list-domain-orders
  • Set up email in one call (MX, SPF, DKIM and DMARC from a server-side template): add-email
  • Point a domain somewhere permanently with a 301: forward-domain
  • Repair a domain that drifted out of live, using a stored grant: reapply-connection
  • Take a domain down, after the person confirms which one: disconnect-domain
  • Inventory the whole account, page by page, so an agent can reconcile a portfolio, not just the job it started: list-connections
  • Check whether the workspace may connect new domains before a batch, or after a billing_required refusal: check-billing-status
  • Move a domain's nameservers to the application's DNS host, records copied first, mail included, so its records are kept correct from then on: migrate-nameservers
  • Follow that move to the end, and relay the step a person has to take: check-nameserver-status
  • Move the nameservers back, to the old ones or to the registrar's own DNS: rollback-nameservers

Full arguments, scopes and response shapes: TOOLS.md.

The receipts, all verifiable from outside: the server is published in the official MCP registry as ai.customdomain/mcp at 0.6.0, speaks protocol revision 2025-06-18, lists its version and tools without authentication at /.well-known/agent/mcp.json, and answers an unauthenticated call with a RFC 9728 challenge that names its own metadata document rather than a bare 401. Automatic setup covers 62 of the 178 providers catalogued (55 by scoped API token, 6 by provider OAuth, 1 by Domain Connect), and the other 116 still work, returning records and a link for a human to apply. The live split is at /v1/providers/census.

Every one of those tools was built against the same lesson: an agent that returns a console link and stops has not done the job. The tools return the authoritative record set itself, so the agent can tell a person exactly what to add, and the completion signal is a boolean rather than a status string an integration can misread.

Use cases

  • A coding agent shipping a side project. "Point my domain at this app." discover-provider, connect-domain, then check-connection-status until connected is true. The one human step is authorizing at the DNS provider, or adding the returned records.
  • A SaaS onboarding an enterprise customer. The agent calls discover-provider first, sees the customer runs a provider that cannot hold a root-domain alias, and warns before anyone authorizes anything.
  • An email platform. add-email writes MX, SPF, DKIM and DMARC from a template; the agent supplies the per-domain DKIM selector and nothing else.
  • A platform with a thousand tenant domains. list-connections with status=failed (following nextCursor until the list is complete), keep the rows with managed: true, reapply-connection on those, diagnose-connection on the rest and hand them to a human. That is a reconciliation loop an agent can run on a schedule, and it is the reason the inventory tool exists at all.
  • A support agent answering "why is my domain not working yet". diagnose-connection says which record is missing or wrong and why (a hostname typed into the Name field, a proxy in front), and recheck-connection confirms the fix without waiting for the next scheduled check.
  • A platform that keeps its users' domains working. When the application maintains domains, the agent asks the person, calls migrate-nameservers with confirm: true, and polls check-nameserver-status until done, relaying nextStep whenever the person has to act at their registrar. rollback-nameservers undoes it.

Buying a domain through MCP is built but not available on the hosted service: purchases are authorization-gated, and no purchase authorization callback is configured there, so create-domain-order answers rejected. Buy in the console, then connect the domain here.

Why an MCP server and not a REST API

There is a REST API, and it is the thing this server calls. The difference is what an agent is allowed to say. The REST API accepts DNS records; the MCP tools do not. Every record value is computed by the control plane from a vetted template, so the worst thing a prompt-injected agent can do here is connect the wrong domain, not write an arbitrary MX record into a customer's zone. The security model is the argument list. On top of it, a delegated agent token carries only the scopes a person approved, and removing a domain is its own scope and needs the domain named back in confirm. Paid registration is gated separately: create-domain-order needs the domain repeated in confirm_domain, and places an order only after the integrator's purchase-authorization callback approves it; an unconfigured callback denies every purchase. A nameserver move needs confirm: true, and an agent token cannot choose where the nameservers go: the application's setting decides.

The second reason is discovery. An agent that has never heard of this product can find it: the server is in the official MCP registry, it publishes an agent manifest and an OAuth protected-resource document at well-known paths, and an unauthenticated call answers with a challenge naming its protected-resource document rather than a bare 401. An OAuth-capable client follows that document to the authorization server, signs the person in and gets a scoped token with no key to copy. A REST API cannot introduce itself that way.


Quickstart

Most clients sign in with OAuth, so there is no key to copy: a browser opens, a person approves what the agent may do, and the agent gets a scoped token. Clients that cannot sign in use an API key from the console at app.customdomain.ai (API & SDK). Keys look like cd_live_... or cd_test_... (older sk_live_ / sk_test_ keys keep working). Keep a key in an environment variable, never in a file you commit.

Claude Code, sign in with OAuth:

claude mcp add --transport http customdomain https://mcp.customdomain.ai/mcp
# then run /mcp inside Claude Code and sign in

or with an API key from your environment:

claude mcp add --transport http customdomain https://mcp.customdomain.ai/mcp \
  --header "Authorization: Bearer $CUSTOMDOMAIN_API_KEY"

Claude Desktop: Settings → Connectors → Add custom connector. Enter the URL https://mcp.customdomain.ai/mcp, add it, then choose Connect and sign in (OAuth).

Cursor cannot sign in to a new server by itself yet, so it uses a key. Put this in your user-level ~/.cursor/mcp.json, not in a project's .cursor/mcp.json that gets committed, and set CUSTOMDOMAIN_API_KEY in the environment Cursor starts from:

{
  "mcpServers": {
    "customdomain": {
      "url": "https://mcp.customdomain.ai/mcp",
      "headers": { "Authorization": "Bearer ${env:CUSTOMDOMAIN_API_KEY}" }
    }
  }
}

Any HTTP client: the endpoint is plain JSON-RPC 2.0, so you can call a tool with curl:

curl -X POST https://mcp.customdomain.ai/mcp \
  -H "Authorization: Bearer $CUSTOMDOMAIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call",
       "params":{"name":"discover-provider","arguments":{"domain":"example.com"}}}'

The console's MCP server page has copy-and-paste setup for these and for Codex, VS Code, ChatGPT and other clients, plus a connection test.

VS Code

The install badges at the top add this entry. You can also put it in .vscode/mcp.json yourself, or run MCP: Add Server:

{
  "servers": {
    "customdomain": { "type": "http", "url": "https://mcp.customdomain.ai/mcp" }
  }
}

The entry holds no key. The server answers the first request with a 401 whose WWW-Authenticate header names its protected-resource metadata, and that document names https://api.customdomain.ai as the authorization server (authorization code with PKCE, and dynamic client registration). A client that follows the challenge, as VS Code documents it does, opens a browser for a person to sign in and approve the scopes. To use an API key instead, add a header that VS Code asks for once and stores as a secret:

{
  "servers": {
    "customdomain": {
      "type": "http",
      "url": "https://mcp.customdomain.ai/mcp",
      "headers": { "Authorization": "Bearer ${input:customdomain-key}" }
    }
  },
  "inputs": [
    { "type": "promptString", "id": "customdomain-key", "description": "CustomDomain™ API key", "password": true }
  ]
}

GitHub Copilot cloud agent

Copilot cloud agent (the coding agent that works on issues and pull requests) does not support remote MCP servers that sign in with OAuth, so it sends the credential as a header. In the repository, open Settings → Copilot → MCP servers, paste this configuration and save it:

{
  "mcpServers": {
    "customdomain": {
      "type": "http",
      "url": "https://mcp.customdomain.ai/mcp",
      "headers": { "Authorization": "$COPILOT_MCP_CUSTOMDOMAIN_AUTH" },
      "tools": ["*"]
    }
  }
}

Then add an Agents secret named COPILOT_MCP_CUSTOMDOMAIN_AUTH (Copilot only passes secrets whose names start with COPILOT_MCP_). Its value is the whole header value, Bearer followed by one of:

  • an API key from the console's API & SDK page (cd_live_...), which acts for the whole workspace, or
  • APPLICATION_ID:CLIENT_SECRET for an application created with POST /v1/applications, which returns the secret once. The server exchanges the pair for a 15 minute token on every request, the same exchange POST https://mcp.customdomain.ai/token does with the client_credentials grant, and the agent acts for that one application. An application created in the console never shows its secret, so use an API key for those.

"tools": ["*"] lets the agent call every tool without asking, including disconnect-domain, which takes a domain offline. To keep the agent to reading and diagnosis, list tools instead, for example ["discover-provider", "check-connection-status", "diagnose-connection", "list-connections", "check-certificate-status"].

Client support

Client How it connects Notes
Claude Code Native streamable HTTP claude mcp add --transport http; sign in with /mcp, or pass a key header
Claude Desktop Custom connector Settings → Connectors → Add custom connector; signs in with OAuth
Cursor Native HTTP with headers ~/.cursor/mcp.json with the key from an environment variable; no sign-in yet
ChatGPT Developer-mode app Signs in with OAuth; it cannot send an API key
Anything else POST /mcp, JSON-RPC 2.0 Follow the 401 to sign in, or send a Bearer in the Authorization header

Tools and the three conventions

Three rules run through every tool, and they are the things integrators get wrong.

No tool accepts a DNS record. add-email takes mail settings (an MX host, a DKIM selector) and the template turns those into records. forward-domain takes a redirect target. Neither takes a record.

connected: true is the completion signal. Status strings are informative; the boolean is what you branch on, and it stays stable if the status enum ever grows.

A call that cannot be taken back carries the person's yes. disconnect-domain takes the connectionId and confirm, the domain the person confirmed; create-domain-order repeats the domain in confirm_domain; migrate-nameservers and rollback-nameservers take confirm: true. A call without it is refused before anything happens.

There is also no ownership-challenge step: no tool asks for or checks a TXT verification record. Control of the domain is proven by the rail that writes the records (an OAuth authorization at the provider, a one-click apply, or a scoped API token), and on the manual path the control plane simply waits for the records to appear in public DNS.

Authentication

POST /mcp accepts four bearer credentials.

Credential Issued by Acts for
API key cd_live_ / cd_test_ (legacy sk_live_ / sk_test_) The console, API & SDK. Every workspace has a default key; a key you create is shown once. The whole workspace
JWT from POST /token client_credentials exchange using application_id + client_secret. Expires in 15 minutes. One application
CLIENT_ID:CLIENT_SECRET The shortcut for hosts that cannot run the token exchange; the server exchanges it on each request One application
Delegated agent token OAuth at https://api.customdomain.ai: dynamic client registration, authorization code with PKCE (

Description taken from the repository README.

Ratings

–
0 ratings
5 0
4 0
3 0
2 0
1 0

Rate this app

Sign in to rate

Comments 0

Sign in to comment

No comments yet.

Related apps

#domains · #dns · #mcp