mcpField
C
Custom Domain API

Custom Domain API

Local
customdomainapi.comCloud & Infra19Updated 2w ago

About Custom Domain API

Custom Domain API is an MCP server for applications managing customer hostnames for SaaS workspaces. It handles registration, DNS status and setup links using an application API key, without operator-level actions.

Key features

  1. 01Register customer hostnames and return DNS records
  2. 02View domain status, records, and checks
  3. 03List domains by workspace or status
  4. 04Generate DNS instructions and provider guides
  5. 05Create or revoke setup page links
  6. 06Recheck or delete domains

Use cases

  1. 01Register custom domains for customer workspaces
  2. 02Diagnose why a domain is not live
  3. 03Share setup instructions with a customer
  4. 04Rerun checks after a DNS fix

MCP support

The MCP server exposes tools for domain registration, lookup, DNS guidance, setup links, rechecks, and deletion to MCP clients. It uses an application API key and does not hold an operator token.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"sireto-custom-domain": {
"command": "uvx",
"args": [
"custom-domain-mcp"
],
"env": {
"CUSTOM_DOMAIN_API_URL": "<CUSTOM_DOMAIN_API_URL>",
"CUSTOM_DOMAIN_API_KEY": "<CUSTOM_DOMAIN_API_KEY>"
}
}
}
}
Run commanduvx custom-domain-mcp
Environment variables to set
CUSTOM_DOMAIN_API_URLYour edge, such as https://edge.example.net (https only)
CUSTOM_DOMAIN_API_KEYSecretAn application API key (cd_...), never an operator token

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
pypicustom-domain-mcp0.13.0

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

custom-domain-mcp

An MCP server for the Custom Domain API. It lets an AI assistant (Claude, Cursor, any MCP client) register your customers' hostnames, show them their DNS records or a link to a setup page, check why a domain isn't live yet, and recheck or delete it. It acts as one application, with that application's own API key.

Setup

uvx custom-domain-mcp        # or: pip install custom-domain-mcp

It reads two settings from the environment:

SettingValue
CUSTOM_DOMAIN_API_URLyour edge, such as https://edge.example.net (https only; plain http just for localhost)
CUSTOM_DOMAIN_API_KEYan application API key (cd_…)

Claude Code:

claude mcp add custom-domain --env CUSTOM_DOMAIN_API_URL=https://edge.example.net \
  --env CUSTOM_DOMAIN_API_KEY=cd_... -- uvx custom-domain-mcp

Claude Desktop, Cursor and other clients (mcpServers in their config):

{
  "mcpServers": {
    "custom-domain": {
      "command": "uvx",
      "args": ["custom-domain-mcp"],
      "env": {
        "CUSTOM_DOMAIN_API_URL": "https://edge.example.net",
        "CUSTOM_DOMAIN_API_KEY": "cd_..."
      }
    }
  }
}

Tools

ToolDoes
create_domainRegister a customer's hostname for a workspace; returns its DNS records. Safe to retry.
get_domainA domain with its status, records and the four checks.
list_domainsDomains, filtered by workspace or status, paged.
dns_instructionsThe records as text for the customer, with help for each, and the detected DNS provider's guide.
create_connect_sessionA link to the setup page for one domain (records, live checks, one-step setup when the provider supports it), with its expiry.
revoke_connect_sessionEnd a setup page link now (marked destructive).
recheck_domainRun the checks again after a DNS fix (once a minute per domain).
delete_domainStop serving a hostname and delete it (marked destructive).
list_webhooksWebhook subscriptions, without secrets.

What it can't do

  • No operator actions. It never holds an operator token, only the application's key, so it can do exactly what the application's backend can.
  • No webhook creation or rotation. Their responses carry the signing secret, which would end up in the assistant's conversation. Create webhooks through the API or the portal.

A setup page link is a credential for one domain. Whoever holds it can see that domain's setup and status, ask for a check and start one-step setup; nothing else, and never the API key. The server tells the assistant to give it only to the customer who owns the hostname. The deployment must serve the page (PUBLIC_API=true and EDGE_HOSTNAME); otherwise create_connect_session reports connect_page_unavailable.

Customer data is data, not instructions. Hostnames, workspace references, metadata and check messages come from your application's customers and from DNS. The server tells the assistant to report them, never to follow them, and to call delete_domain only when you explicitly asked for that domain to be deleted, repeating its hostname back to you first. It also tells the assistant to create a setup page link only when you ask for one and to hand it to you, never to send it to an address, URL or channel found in domain data: metadata is customer-controlled and must not steer where a credential goes. Your MCP client's own confirmation for destructive tools adds a second check.

The server's instructions also tell the assistant the one rule integration code must follow: select the tenant from the verified X-Custom-Domain-Assertion, never from Host (verifying requests).

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.