# Custom Domain API

This MCP server manages SaaS customer hostnames, exposes DNS checks, and creates setup-page links when a domain needs configuration.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 19
- Author: sireto
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/sireto/custom-domain/tree/HEAD/mcp-server
- Updated: 2026-10-13
- HTML: https://affpapa.org/en/nevibecode/mcp/custom-domain-api

## What it does

Custom Domain API gives an AI client tools to register a customer hostname for a workspace, inspect its status and DNS records, filter domain lists, rerun checks, and remove a hostname. Other tools turn DNS data into customer-facing instructions, create or revoke a setup-page link, and list webhook subscriptions without secrets.

Run it with `uvx custom-domain-mcp` and provide `CUSTOM_DOMAIN_API_URL` plus `CUSTOM_DOMAIN_API_KEY`. The API endpoint must use HTTPS, except for local `localhost`. A deployment without `PUBLIC_API=true` and `EDGE_HOSTNAME` makes link creation return `connect_page_unavailable`. Integration code must select the tenant from verified `X-Custom-Domain-Assertion`, never from `Host`.

## Requirements
- Needs: Python and uv (commands run via uvx)
- Environment variables: `CUSTOM_DOMAIN_API_URL`, `CUSTOM_DOMAIN_API_KEY` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add custom-domain -e CUSTOM_DOMAIN_API_URL=<CUSTOM_DOMAIN_API_URL> -e CUSTOM_DOMAIN_API_KEY=<CUSTOM_DOMAIN_API_KEY> -- uvx custom-domain-mcp
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from custom-domain-mcp <command>

### Codex

**Platform CLI**
```bash
codex mcp add mcp-server --env CUSTOM_DOMAIN_API_URL=<CUSTOM_DOMAIN_API_URL> --env CUSTOM_DOMAIN_API_KEY=<CUSTOM_DOMAIN_API_KEY> -- uvx custom-domain-mcp
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from custom-domain-mcp <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp-server": {
            "command": "uvx",
            "args": [
                "custom-domain-mcp"
            ],
            "env": {
                "CUSTOM_DOMAIN_API_URL": "<CUSTOM_DOMAIN_API_URL>",
                "CUSTOM_DOMAIN_API_KEY": "<CUSTOM_DOMAIN_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from custom-domain-mcp <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp-server": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "custom-domain-mcp"
            ],
            "env": {
                "CUSTOM_DOMAIN_API_URL": "<CUSTOM_DOMAIN_API_URL>",
                "CUSTOM_DOMAIN_API_KEY": "<CUSTOM_DOMAIN_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from custom-domain-mcp <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e CUSTOM_DOMAIN_API_URL=<CUSTOM_DOMAIN_API_URL> -e CUSTOM_DOMAIN_API_KEY=<CUSTOM_DOMAIN_API_KEY> mcp-server uvx custom-domain-mcp
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from custom-domain-mcp <command>

## When to use it
- register a customer hostname for a workspace
- inspect DNS records and domain status
- rerun checks after a DNS change
- revoke a setup link or remove a hostname

## Example prompts
- Register `app.example.com` for the workspace and show its DNS records.
- Check this domain, then rerun its DNS checks after the records are fixed.
- Create a setup-page link for this domain and return it to me.

## Similar
- [MCP Toolbox for Databases](https://affpapa.org/en/nevibecode/mcp/googleapis-mcp-toolbox-for-databases.md) — MCP server · ★ 16717
- [PostHog MCP Server](https://affpapa.org/en/nevibecode/mcp/posthog-mcp-server.md) — MCP server · ★ 40409
- [OpenWork MCP Gateway](https://affpapa.org/en/nevibecode/mcp/openwork-mcp-gateway.md) — MCP server · ★ 24242
- [Keploy](https://affpapa.org/en/nevibecode/mcp/keploy.md) — MCP server · ★ 18727
- [Nhost](https://affpapa.org/en/nevibecode/mcp/nhost.md) — MCP server · ★ 9366
- [basebalance.cloud — x402 RPC & MCP gateway](https://affpapa.org/en/nevibecode/mcp/basebalancecloud-x402-rpc-mcp-gateway.md) — MCP server · ★ 7506

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
