Search DevTools

Jump to any tool or page

CustomDomain™

Unexplored

Custom domains for SaaS and AI agents: search, register, connect DNS, and issue HTTPS over MCP.

CUSTOM-DOMAIN-APP1 stars0 forksBrowser & Web
View source

Install

mcp_config.json

{
  "mcpServers": {
    "ai-customdomain-mcp": {
      "url": "https://mcp.customdomain.ai/mcp",
      "type": "streamable-http"
    }
  }
}

Documentation

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, domains:purchase, stats:read, audit:read, app:read, app:write, tokens:mint, member:read, member:manage and keys:manage. 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.7.0 · release v0.7.0

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

Install:

· 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 isA hosted MCP server that gives an AI agent forty-six tools: domain tools, and workspace tools for the account behind them
Who it's forAgent builders, SaaS platforms and coding-agent users who need a customer on their own domain
Live atcustomdomain.ai/mcp-server · endpoint https://mcp.customdomain.ai/mcp
StackGo 1.26 · JSON-RPC 2.0 over streamable HTTP · hosted, no datastore in the server
StatusProduction · 0.7.0 in the official MCP registry · 46 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["AgentClaude · Cursor · ChatGPT"] -->|"JSON-RPC over HTTPS"| M["mcp.customdomain.ai46 tools"]
  M -->|"credential forwarded"| C["Control planeapi.customdomain.ai"]
  C --> R["Registrarssearch · price"]
  C --> D["DNS providers178 catalogued · 62 automatic"]
  C --> E["EdgeTLS 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

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

Domain tools

  • 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, only after the person confirms the exact domain, and within the spend cap they set when granting purchase: 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
  • See which saved provider keys the workspace holds, and which may act for a given domain, without ever returning a key: list-provider-accounts, find-saved-access
  • Write a connected domain's records with a saved key, after the person agrees: use-saved-access
  • Get the steps to embed the widget in a product, so its users connect their own domains: get-widget-setup

Workspace tools. These mirror what a signed in person does in the console, under eight more scopes (see Scopes). Anything that cannot be undone repeats the id of what it changes in confirm.

  • Applications: list-applications, get-application, create-application, update-application, and the place an application's domains point (the CustomDomain™ edge or your own servers): get-connect-target, set-connect-target. mint-widget-token makes a short lived widget token to test an embed.
  • API keys: list-api-keys, create-api-key, revoke-api-key. A secret is shown once, when it is made.
  • Webhooks: list-webhooks, create-webhook, test-webhook, delete-webhook, and list-webhook-deliveries to see why an endpoint is not receiving events.
  • Members: list-members, invite-member, change-member-role, remove-member. An agent never makes an owner.
  • Audit and usage: read-audit-log (an agent's actions show as agent:<grant id>), get-usage and get-billing-notice. Plan and payment changes stay in the console.

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.7.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 the name, then connecting it. generate-domain-suggestions or search-domain-availability for the price, the person confirms the exact domain, create-domain-order with that domain in confirm_domain, check-order-status until it completes, then connect-domain. On the hosted service this works for a person's own sign-in with domains:purchase granted; the grant's monthly spend cap bounds every purchase.

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. A person's own sign-in may buy only after they granted domains:purchase with a saved card and a monthly spend cap, which bounds every order; any other caller places an order only after the integrator's purchase-authorization callback approves it, and an unconfigured callback denies those purchases. 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.

To give a project its key without copying one, run this in the project. It opens a page where you approve the sign-in, then creates a key and writes CUSTOMDOMAIN_API_KEY and CUSTOMDOMAIN_APPLICATION_ID to .env.local:

npx @customdomain/cli init

The CLI is also on Homebrew: brew install custom-domain-app/tap/customdomain.

Claude Code plugin, the server plus skills that teach Claude the safe order of calls (connect a domain, find a name, fix a stuck connection, email and redirects, build the widget into a product). See plugins/customdomain:

/plugin marketplace add CUSTOM-DOMAIN-APP/customdomain-mcp
/plugin install customdomain@customdomain

Codex and ChatGPT plugin, the same connection skills packaged for OpenAI. Add the marketplace in Codex:

codex plugin marketplace add CUSTOM-DOMAIN-APP/customdomain-mcp

The package is plugins/customdomain-openai. It is the connection and repair subset (connect a domain, fix one that is not live, email records and redirects); it leaves out buying a domain and workspace administration. To use the full server in ChatGPT yourself, open chatgpt.com/plugins, choose Add custom MCP server, enter https://mcp.customdomain.ai/mcp, pick OAuth and sign in.

Claude Code, the server only, 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 t

Sourced from the repository README.

More in Browser & Web