Custom Domain API
io.github.sireto/custom-domain · 19 stars · Python · Apache-2.0
MCP server Register a SaaS app's customer hostnames, show their DNS records and checks, recheck or delete them.
Install
The repo has no one-line install. Follow its README.
Published as
- PyPI
custom-domain-mcpstdio
From the server's entry in the official MCP Registry.
Configuration
| Name | Set as | What it is |
|---|---|---|
CUSTOM_DOMAIN_API_URLRequired | Env var | Your edge, such as https://edge.example.net (https only) |
CUSTOM_DOMAIN_API_KEYRequired · Secret | Env var | An application API key (cd_...), never an operator token |
Files
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, 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:
| Setting | Value |
|---|---|
CUSTOM_DOMAIN_API_URL |
your edge, such as https://edge.example.net (https only; plain http just for localhost) |
CUSTOM_DOMAIN_API_KEY |
an 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
| Tool | Does |
|---|---|
create_domain |
Register a customer's hostname for a workspace; returns its DNS records. Safe to retry. |
get_domain |
A domain with its status, records and the four checks. |
list_domains |
Domains, filtered by workspace or status, paged. |
dns_instructions |
The records as text for the customer, with help for each. |
recheck_domain |
Run the checks again after a DNS fix (once a minute per domain). |
delete_domain |
Stop serving a hostname and delete it (marked destructive). |
list_webhooks |
Webhook 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.
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. 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).
Facts
- Kind
- MCP server
- Group
- Uncategorized
- Stars
- 19
- License
- Apache-2.0
- Language
- Python
- Last push
- 2026-10-10
- Forks
- 4
- MCP Registry
- io.github.sireto/custom-domain
- Homepage
- customdomainapi.com
- Topics
- custom-domain, saas, acme, caddy, cname, custom-domains, dns, docker, fastapi, https, letsencrypt, multi-tenancy, multi-tenant, on-demand-tls, python, reverse-proxy, self-hosted, tls, webhooks, white-label
- 1REAio.github.morluto/reaReverse engineer anything from your terminal or agent with one CLI and MCP server.125.3k
- 2com.browser-use/browser-usecom.browser-use/browser-useControl a real Chrome browser to complete any task: fill forms, extract data, book flights.117.7k
- 3World Monitorapp.worldmonitor/mcpLive markets, conflicts, country risk, chokepoints, energy, and China decision signals. 93 tools.88.3k
- 4Scrapling MCP Serverd4vinci/scrapling🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scraplingdev86.9k
- 5Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
- 6Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k