Skip to main content

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).

Metadata

Release files for custom-domain-mcp 0.11.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for custom-domain-mcp 0.11.1
File Size Uploaded
custom_domain_mcp-0.11.1.tar.gz 9.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for custom-domain-mcp 0.11.1
File Interpreter ABI Platform
custom_domain_mcp-0.11.1-py3-none-any.whl Python 3 none any Details

Total release size: 20.5 kB

Release files / custom_domain_mcp-0.11.1.tar.gz

Download URL custom_domain_mcp-0.11.1.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c05077accf127693467a99f88cc1bfc7e8982dcc03b0d1bf33f9c99843a35c4d
BLAKE2b-256 checksum
How to use checksums
3c5c689ec8bfa86018ab0c949c7a4719ad44eb0cac1f330c2a8cdac38134d4c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release files / custom_domain_mcp-0.11.1-py3-none-any.whl

Download URL custom_domain_mcp-0.11.1-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3e5db7b661b6d500e0a341aeffcb94a9bafcb07142f0bd65dc0ee71011d9ff64
BLAKE2b-256 checksum
How to use checksums
4a0679d962944273875be58c9e38b505398f915389a822483714cb7031158de7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.11.1 This release

2 release files

0.11.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page