Listed from the MCP registry; nobody on Odel publishes it.
Plan, apply, verify and roll back SPF, DKIM, DMARC and MX for cold email domains on Cloudflare
Runs on your machine from its package; the steps are below.
At most: creates or changes data: records, files, settings.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
uvx domain-setup-mcp
MCP client config
{
"mcpServers": {
"domain-setup-for-cold-email": {
"command": "uvx",
"args": [
"domain-setup-mcp"
]
}
}
}Distributed as an MCP bundle (`https://github.com/anasmughal239-alt/domain-setup-mcp/releases/download/v0.3.0/domain-setup-mcp.mcpb`) — download it and import the bundle in your MCP client.
An MCP server for Claude and other MCP clients that sets up cold email domains in bulk on Cloudflare: verification TXT, SPF, DKIM, DMARC, MX, custom tracking domains and website forwarding. Works with Google Workspace, Microsoft 365 and Amazon SES, and with Smartlead and Instantly tracking.
Use it to audit email deliverability DNS, fix SPF records, add DMARC, and roll out sending domains for outbound campaigns without hand-editing DNS.
Agencies set up dozens of domains per client by hand. One wrong SPF edit (a second record, an overwrite, an 11th lookup) or one DKIM key pasted onto the wrong domain silently breaks deliverability. This server plans every change as a reviewable diff, refuses unsafe plans, applies each domain atomically, and can undo any run.
| Tool | Writes? | What it does |
|---|---|---|
domain_audit | No | Checks SPF, DKIM, DMARC and MX on public DNS. No token needed. |
domain_plan | No | Builds a per-domain diff against current Cloudflare records. Returns a plan_id. |
domain_apply | Yes | Applies a plan, one atomic batch per domain. Dry run unless confirm=true. Returns a run_id. |
domain_verify | No | Confirms every planned record is visible on public DNS and that forwarding answers with its 301. |
domain_rollback | Yes | Undoes one apply run, including redirect rules. Dry run unless confirm=true. |
All tools take lists of domains (max 100 per call). One failing domain never stops the batch.
| Item | Google Workspace | Microsoft 365 | Amazon SES |
|---|---|---|---|
| Verification TXT | google-site-verification=... (per domain) | MS=ms... (per domain) | n/a |
| SPF | merge include:_spf.google.com | merge include:spf.protection.outlook.com | on MAIL FROM subdomain |
| MX | smtp.google.com (1) | value you supply (never guessed) | MAIL FROM: exactly one MX |
| DKIM | TXT you supply (per domain) | 2 CNAMEs you supply (per domain) | 3 CNAMEs from tokens |
| Extra | autodiscover CNAME | ||
| DMARC | p=none default, quarantine optional, RFC 9989 np optional | same | same |
| Tracking | Smartlead emailtracking or Instantly inst | same | same |
| Forwarding | 301 from root and www to your site | same | same |
*.mx.microsoft for new domains in July 2026, and Microsoft says the admin center or Graph API is the only source of truth. Microsoft DKIM targets contain a routing character Microsoft assigns. The tool asks for both.replace_mx=true. Existing DMARC is never changed. Existing website records are never overwritten by forwarding.rua points at another domain, receivers only send reports when that domain publishes client.com._report._dmarc.agency.com = v=DMARC1;. The plan gives the exact record.pct, rf, ri (removed in May 2026) and the rua size suffix.domain-setup-mcp.mcpb from the latest release.Claude Desktop supplies its own uv to run the extension. Keep Python 3.11 or newer installed: running without it hasn't been tested.
Requires Python 3.11 or newer.
git clone https://github.com/anasmughal239-alt/domain-setup-mcp.git && cd domain-setup-mcp
pip install -e ".[dev]"
pytest # 116 tests, all offline
Cloudflare token: My Profile > API Tokens > Create Token. Permissions: Zone: Read, DNS: Edit, and Single Redirect: Edit if you use forward_to (the token summary lists this as Dynamic URL Redirects Write). Under Zone Resources choose Specific zone and add only the domains you're setting up. Avoid "All zones": both setups below save the token in plain text in your client's config file, so keep it as narrow as you can, and delete it in Cloudflare when you're done.
Use a real token value in the commands below, and never commit it. If you read it from a secure PowerShell prompt, each character prints as *; one * after pasting means the paste failed, so right-click to paste instead of Ctrl+V.
claude mcp add domain-setup --env CLOUDFLARE_API_TOKEN=your_token -- domain-setup-mcp
claude_desktop_config.json){
"mcpServers": {
"domain-setup": {
"command": "domain-setup-mcp",
"env": { "CLOUDFLARE_API_TOKEN": "your_token" }
}
}
}
Plans and run logs are stored in ~/.domain-setup-mcp (override with DOMAIN_SETUP_HOME). They contain DKIM public keys and verification codes, which are public DNS data.
{
"provider": "google",
"dmarc_rua": "dmarc@agency.com",
"tracking_tool": "smartlead",
"forward_to": "https://acme.com",
"per_domain": {
"getacme.com": {
"verification_txt": "google-site-verification=...",
"dkim": { "google_txt": "v=DKIM1; k=rsa; p=MIIB..." }
},
"tryacme.com": {
"verification_txt": "google-site-verification=...",
"dkim": { "google_txt": "v=DKIM1; k=rsa; p=MIIB..." }
}
}
}
Typical Google flow: run once with verification only, verify in the Admin console, activate Gmail, wait 24 to 72 hours for DKIM to become available, then run again with the DKIM keys. Re-running is safe; correct records are left alone.
| Field | Notes |
|---|---|
provider | google, microsoft or ses |
per_domain.<domain>.verification_txt | google-site-verification=... or MS=ms... |
per_domain.<domain>.dkim.google_txt | Admin console > Apps > Gmail > Authenticate email (2048-bit). Don't regenerate later: it replaces the key |
per_domain.<domain>.dkim.microsoft_selector1_target / selector2_target | Exact Selector1CNAME / Selector2CNAME from Defender portal or Get-DkimSigningConfig |
per_domain.<domain>.dkim.ses_tokens | The 3 Easy DKIM tokens |
per_domain.<domain>.mx | Required for Microsoft 365: exact MX from Admin center > Domains |
dkim | Shortcut for single-domain plans only |
dmarc_rua | Mailbox for aggregate reports |
dmarc_policy | none (default), quarantine, reject (warns). Only for new DMARC records |
dmarc_np | RFC 9989 policy for non-existent subdomains, e.g. reject |
tracking_tool / tracking_subdomain | smartlead (host emailtracking) or instantly (host must be inst) |
forward_to | Full URL. Adds proxied 192.0.2.1 placeholders for root and www if no web record exists, plus a 301 redirect rule |
replace_mx | Off by default |
microsoft_autodiscover | On by default for Microsoft |
ses_mail_from / ses_region | Custom MAIL FROM so SPF aligns for SES |
domain_verify can only confirm that proxied A placeholders resolve, because they answer with Cloudflare IPs rather than the planned value. It checks forwarding over HTTPS on the root and www only, not over plain HTTP.forward_to.plan + apply + verify.domain_audit across real client domains and count duplicate SPF, lookup overflows, missing DMARC, unauthorized report destinations, deprecated tags.