Server data from the Official MCP Registry
Custom domains for SaaS and AI agents: search, register, connect DNS, and issue HTTPS over MCP.
About
Custom domains for SaaS and AI agents: search, register, connect DNS, and issue HTTPS over MCP.
Remote endpoints: streamable-http: https://mcp.customdomain.ai/mcp
Security Report
Valid MCP server (1 strong, 1 medium validity signals). No known CVEs in dependencies. Imported from the Official MCP Registry.
Endpoint verified · Requires authentication · 1 issue found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Permissions Found in Source Code
Found by scanning the linked source code. This listing connects to a hosted endpoint, so none of this runs on your machine: it describes what the server software does where it is hosted.
How to Connect
Remote Plugin
No local installation needed. Your AI client connects to the remote endpoint directly.
Add this to your MCP configuration to connect:
{
"mcpServers": {
"ai-customdomain-mcp": {
"url": "https://mcp.customdomain.ai/mcp"
}
}
}Documentation
View on GitHubFrom the project's GitHub README.
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 is | A hosted MCP server that gives an AI agent forty-six tools: domain tools, and workspace tools for the account behind them |
| 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.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["Agent<br/>Claude · Cursor · ChatGPT"] -->|"JSON-RPC over HTTPS"| M["mcp.customdomain.ai<br/>46 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
liveinstead 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_requiredrefusal: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-tokenmakes 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, andlist-webhook-deliveriesto 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 asagent:<grant id>),get-usageandget-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, thencheck-connection-statusuntilconnectedistrue. 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-providerfirst, sees the customer runs a provider that cannot hold a root-domain alias, and warns before anyone authorizes anything. -
An email platform.
add-emailwrites 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-connectionswithstatus=failed(followingnextCursoruntil the list is complete), keep the rows withmanaged: true,reapply-connectionon those,diagnose-connectionon 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-connectionsays which record is missing or wrong and why (a hostname typed into the Name field, a proxy in front), andrecheck-connectionconfirms 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-nameserverswithconfirm: true, and pollscheck-nameserver-statusuntildone, relayingnextStepwhenever the person has to act at their registrar.rollback-nameserversundoes it. -
Buying the name, then connecting it.
generate-domain-suggestionsorsearch-domain-availabilityfor the price, the person confirms the exact domain,create-domain-orderwith that domain inconfirm_domain,check-order-statusuntil it completes, thenconnect-domain. On the hosted service this works for a person's own sign-in withdomains:purchasegranted; 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 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_SECRETfor an application created withPOST /v1/applications, which returns the secret once. The server exchanges the pair for a 15 minute token on every request, the same exchangePOST https://mcp.customdomain.ai/tokendoes with theclient_credentialsgrant, 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 | Custom MCP server in a workspace, or the OpenAI plugin | 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 |
Skills
Agent skills (the open Agent Skills format) teach a coding agent the safe order of calls
and how to build the widget into a product. They live in skills/, the one source, and both plugins
below are generated from it.
| Skill | What it does |
|---|---|
get-started | What CustomDomain™ does and which skill to use |
connect-a-domain | Connect a domain the person owns, with the MCP tools |
find-a-domain | Look up name ideas, availability and price (Claude plugin only; it never buys) |
fix-a-domain | Find out why a connection is not live and repair it |
email-and-redirects | Mail records and permanent redirects |
integrate-widget | Add the widget to Next.js, React, Vue or plain JavaScript, with a server route for the token |
setup-webhooks | Register an endpoint, verify signatures, handle retries |
go-live-checklist | Move an integration from the Sandbox to real customers |
debug-failed-connection | Work out why a customer's connection will not go live |
Install them with the plugins. In Claude Code:
/plugin marketplace add CUSTOM-DOMAIN-APP/customdomain-mcp
/plugin install customdomain@customdomain
In Codex:
codex plugin marketplace add CUSTOM-DOMAIN-APP/customdomain-mcp
To change a skill, edit skills/ and run node scripts/build-plugins.mjs; CI runs it with --check.
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, rollback-nameservers and use-saved-access take confirm: true; set-connect-target,
revoke-api-key, delete-webhook and remove-member repeat the id of what they change in confirm. 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 (S256), a person approves the scopes | One application, only the approved scopes |
curl -X POST https://mcp.customdomain.ai/token \
-u "<APPLICATION_ID>:<CLIENT_SECRET>" \
-d "grant_type=client_credentials"
# -> { "access_token": "eyJ...", "token_type": "Bearer", "expires_in": 900 }
APPLICATION_ID and CLIENT_ID are the same value under two names.
Integrator credentials (an API key, a /token JWT, the CLIENT_ID:CLIENT_SECRET form) are not validated
by the server itself: it forwards them to the control plane, which enforces the same permissions as the REST
API on every call. They carry no scopes. Revoking a key in the console cuts the agent off on its next call;
today that call answers a tool failure with error: "unauthorized" rather than an HTTP 401.
Delegated agent tokens are ES256 tokens issued for the audience https://mcp.customdomain.ai/mcp. The
server verifies them locally against the control plane's JWKS, refuses one issued for another audience with
401 invalid_token, and checks the tool's scope on every call:
| Scope | Tools |
|---|---|
domains:read | search-domain-availability, generate-domain-suggestions, check-connection-status, check-order-status, discover-provider, list-connections, check-certificate-status, diagnose-connection, check-billing-status, list-domain-orders, check-nameserver-status, list-provider-accounts, find-saved-access, get-widget-setup |
domains:connect | connect-domain, reapply-connection, forward-domain, add-email, recheck-connection, migrate-nameservers, rollback-nameservers, use-saved-access |
domains:disconnect | disconnect-domain |
domains:purchase | create-domain-order |
stats:read | get-usage, get-billing-notice |
audit:read | read-audit-log |
app:read | list-applications, get-application, get-connect-target, list-webhooks, list-webhook-deliveries |
app:write | create-application, update-application, set-connect-target, create-webhook, test-webhook, delete-webhook |
tokens:mint | mint-widget-token |
member:read | list-members |
member:manage | invite-member, change-member-role, remove-member |
keys:manage | list-api-keys, create-api-key, revoke-api-key |
The first four scopes act on domains. The other eight are workspace scopes. A workspace scope works only while
the person who approved the agent still holds that permission in the workspace, and an agent never acts as an
owner. tools/list shows a delegated agent token only the tools its grant allows.
A token without the tool's scope gets JSON-RPC error -32003, insufficient_scope, which names the scope it
needed. See Agent access and
Authentication.
Prefer an agent token or an application-scoped JWT for anything an agent touches: a leaked cd_live_ key
carries the whole workspace.
Rate limits
Tool calls are limited to 5 a second with bursts of 20 per caller. The caller is the workspace for a
delegated agent token (all of a workspace's agents share one bucket), the credential itself for an API key or a
/token JWT (a workspace with three keys has three buckets), and the application for the
CLIENT_ID:CLIENT_SECRET form. Over the limit the call answers a tool failure with error: "rate_limited" and
retryAfterSeconds, and never reaches the control plane. The control plane also limits each client address.
Lifecycle, polling and errors
Connections move pending → propagating → live. failed is a diagnosis, not a tombstone.
| Status | Meaning |
|---|---|
pending | Created. Records not yet written, or not yet observed in public DNS. A manual connection never fails on its own: after 72 hours it stays pending with errorCode: "setup_incomplete" and is re-checked every six hours. |
propagating | A rail wrote the records. The poller is checking them against public DNS by value. |
live | Every desired record resolves to its intended value and the edge serves TLS for the host. |
failed | Records a rail wrote never resolved within 24 hours (errorCode: "propagation_timeout"), or a rail rejected the write. It clears if the connection later re-verifies. |
The background poller re-checks about once a minute, so polling faster than every 30 to 60 seconds gains
nothing. failed is recoverable and is not a reason to tell a user to start over: diagnose-connection says
what is wrong, and recheck-connection re-runs the check once it is fixed. The full lifecycle is at
Connections.
Errors come in two shapes. A malformed call fails at the JSON-RPC layer: -32602 for invalid or missing
arguments, -32601 for an unknown tool, -32700 for unparseable JSON, and -32003 for a missing scope. Those
are caller bugs. A call the control plane refused comes back as a tool result flagged isError: true, in one
shape whichever tool made it:
{ "success": false, "error": "billing_required", "message": "A card is needed to connect more domains.", "details": "..." }
error is the control plane's code when it sent one, else the tool's fallback code (connect_failed,
status_failed, list_failed and so on). Branch on error; show message. The full list is in
TOOLS.md.
How it works
This repository is the public face of a hosted service: the registry manifest that lists the server, the tool contract, and this page. The server itself is a small Go process. It terminates JSON-RPC, verifies delegated agent tokens and their scopes, limits each caller's rate, and forwards each tool call to the CustomDomain™ control plane, which owns provider detection, the record templates, the registrar rails, the propagation poller and certificate issuance. That split is why the tool surface can stay this narrow: all the state and all the judgment live one hop away.
Repository layout
.
├── README.md # this file: what the server is, how to point a client at it, how it is built
├── TOOLS.md # the tool contract: every argument, scope, response field, status value and error code
├── CHANGELOG.md # one entry per server version, matching the tags and GitHub releases
├── server.json # MCP registry manifest: name ai.customdomain/mcp, version 0.7.0, remote endpoint, tools and scopes
├── glama.json # Glama directory ownership claim
├── skills/ # the one source of the agent skills
├── scripts/ # build-plugins.mjs generates both plugins' skills from skills/
├── plugins/ # the Claude and Codex plugins (their skills folders are generated)
└── LICENSE # MIT
Service modules
The server source lives in the private CustomDomain™ monorepo under services/mcp, alongside the control
plane it calls. Named here so the boundaries are legible, not linked, because the repository is closed.
| Module | Purpose | Talks to |
|---|---|---|
server.go | Routes initialize, tools/list, tools/call; registers the forty-six tools in a fixed order; checks scope and rate before a tool runs | tools.go, usage.go |
tools.go | Tool definitions, JSON schemas, annotations, handlers and the one failure shape | client.go |
nameservers.go | The three nameserver tools' handlers: confirm: true, and no target or nameservers from an agent token | client.go |
scopes.go | The tool to scope map, and the construction check that every tool declares exactly one scope | server.go |
ratelimit.go | The token bucket per caller (5 a second, bursts of 20 by default) | server.go |
jsonrpc.go | JSON-RPC 2.0 framing and error codes | transport.go |
transport.go | The stdio and streamable-HTTP transports | server.go |
client.go | The ControlPlane port: the interface every tool handler calls | implemented by httpclient.go |
httpclient.go | HTTP adapter onto the control-plane REST API | api.customdomain.ai |
clientinfo.go | Passes the caller's address on, so the control plane's per-address limit sees each user | control plane |
origin.go | The Origin check on /mcp (a browser origin must be the server's own or one the operator lists, else 403) and the CORS preflight answer | none |
auth.go | Bearer extraction, POST /token, and the RFC 9728 WWW-Authenticate challenge | control plane |
agenttoken.go | Local ES256 verification of delegated agent tokens (signature, expiry, audience) | control-plane JWKS |
purchaseauth.go | The fail-closed purchase-authorization callback, checked before any paid order | integrator callback |
registrar.go | Registrar resolution and preferred-registrar ordering | control plane |
untrusted.go | Bounds third-party text (DNS values, provider errors) before it reaches an agent | none |
wellknown.go | Serves the protected-resource and authorization-server metadata and /.well-known/agent/mcp.json | none |
usage.go | Batched, drop-on-full usage recorder; never blocks a tool call | control-plane ingest |
cmd/mcp/main.go | Process entry point: flags, environment, Sentry, OpenTelemetry | all of the above |
Entry point: services/mcp/cmd/mcp/main.go.
The flow that matters
Connecting a domain someone already owns is the flow everything else is shaped around.
sequenceDiagram
participant A as Agent
participant M as mcp.customdomain.ai
participant C as Control plane
participant D as Customer's DNS
participant E as Edge
A->>M: tools/call connect-domain {domain}
M->>C: POST /v1/connections (credential forwarded)
C->>C: detect provider, choose rail, compute records
C-->>M: connectionId, records[], link, managed
M-->>A: same payload as structuredContent
Note over A,D: automatic rail: user authorizes once<br/>manual rail: user adds the returned records
C->>D: poll public DNS by value (~60s)
C->>E: request certificate once records resolve
A->>M: tools/call check-connection-status {connectionId}
M-->>A: status live, connected true
Invariants
- No tool accepts a DNS record as input. Record values are computed server-side from vetted templates. This is the security model, not a gap.
- The server has no database. Its
go.modpulls Sentry and OpenTelemetry and nothing else; every fact a tool returns was fetched from the control plane during that request. The rate limiter's buckets live in memory. - Every tool declares exactly one scope. The server refuses to start if one does not.
- There is no ownership-challenge step. No tool asks for or checks a TXT verification record.
- Nothing in this repository is deployed. No build, no CI, no server source: the files here are read by the MCP registry and by people, and the endpoint ships from elsewhere.
POST /v1/connectionsis idempotent per application and domain, so a repeatedconnect-domainresumes the existing connection and returnsalready_connected: truerather than creating a second one.
Configuration
What you set, as a client. There are no environment variables to set in this repository.
| Setting | Required | Default | Purpose |
|---|---|---|---|
| Endpoint URL | yes | none | https://mcp.customdomain.ai/mcp |
Authorization header | unless the client signs in | none | Bearer cd_live_..., a JWT from /token, or CLIENT_ID:CLIENT_SECRET. A client that signs in gets an agent token and sends it itself. |
| Token URL | only for /token JWTs | none | https://mcp.customdomain.ai/token |
Keep the key out of the config file where your client supports it. If it lives in a secrets manager, inject it
at launch; never paste a literal key into a repository, a .cursor/mcp.json you commit, or an issue.
How the hosted service is configured. Listed because several of these change what the tools do, and integrators ask why a purchase was denied. Secret values are injected at deploy time and appear in no repository.
Documentation truncated — see the full README on GitHub.
Reviews
No reviews yet
Be the first to review this server!
More Developer Tools MCP Servers
Rea
Freeby Morluto · Developer Tools
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
Paperclip
Freeby Paperclipai · Developer Tools
Trending hip-hop artist momentum scores across four cultural dimensions.
Scrapling
Freeby D4Vinci · Developer Tools
Web scraping with stealth HTTP, real browsers, and Cloudflare bypass. CSS selectors supported.
Server Time
Freeby Modelcontextprotocol · Developer Tools
Current time lookup and conversion between IANA timezones
Toleno
Freeby Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
MCP Marketplace
Freeby mcp-marketplace · Developer Tools
Search and install MCP servers from inside your AI client.
