namecheap-mcp
Provides DNS management via AWS Route 53, including reading and modifying DNS record sets and hosted zones, with record-set semantics.
Provides domain availability checking, DNS record management, and nameserver control via the GoDaddy v3 API, with non-atomic edit semantics.
Provides high-level domain and DNS management via the Namecheap API, including registration, renewal, transfer, lock, privacy, email forwarding, and DNS record control.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@namecheap-mcp check if example.com is available"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
namecheap-mcp
An MCP server that gives an AI agent safe, high-level control over your domains and DNS across three providers: Namecheap, GoDaddy (v3) and AWS Route 53.
One tool surface. A domain routes to whichever provider actually holds it; you can override with
provider on any tool. The name is historical — it started as Namecheap-only.
It is built for Claude Code, Claude Desktop, and any other MCP client that speaks stdio.
The three providers do not agree
This is the part worth reading before you use it. The tools hide the wire formats, not the semantics.
Namecheap | GoDaddy v3 | Route 53 | |
DNS read / write | yes | yes | yes |
Update one record | merge, then replace all | delete + create | UPSERT |
Atomic edit | yes | no | yes |
TTL range | 60–60000 | 600–86400 | 0–2147483647 |
Record unit | one row | one row | a set: name+type, many values, one TTL |
Availability | yes | yes (higher account threshold) | no |
List domains | yes | no endpoint | hosted zones only |
Register | yes | not implemented here | no |
Renew / transfer / lock / privacy / email forwarding | yes | no | no |
Extra record types |
|
|
|
Two of those bite:
GoDaddy edits are not atomic. v3 has no record-update endpoint. An edit is a
DELETEthen aPOST. If thePOSTfails, the record is absent, not stale. Every write that does this returnsnonAtomicWarningsaying so — read it before assuming the zone is what you asked for.Route 53's unit is a record set. Three A records at
wwware three rows here and one set there. Deleting one of three by emitting aDELETEwould take all three; this server emits anUPSERTcarrying the survivors. The zone's ownSOAand apexNSare never touched, because Route 53 creates both with the hosted zone and rejects deleting either.
A capability a provider lacks is an answer, not an error: the tool returns a sentence naming the provider, why its API has no such thing, and where you can do it instead. Nothing is changed.
Related MCP server: domain-suite-mcp
Why this isn't a 1:1 mirror of any provider's API
Each provider's API is a flat catalogue with its own sharp edges. Handing those to an agent verbatim is a footgun. This server exposes a smaller set of task-shaped tools designed for an LLM to call correctly:
domains.dns.setHostsis REPLACE-ALL. It overwrites every host record on a domain with exactly the set you submit — omit your MX records and your mail silently breaks. A naive "add a TXT record" tool that forwarded straight tosetHostswould wipe the zone. Somodify_dns_recordshere is a read-modify-write engine: it reads the current zone, applies granularadd/update/deleteoperations in memory, and submits the full resulting set. Agents express intent, never hand-assemble the whole zone. A separate, explicitly-namedreplace_all_dns_recordsexists for the rare deliberate full rewrite, and it refuses to blank a non-empty zone unless you passallowEmptyZone: true.Money-spending actions are gated.
register_domain,renew_domain,reactivate_domainandtransfer_domainare annotated destructive and requireconfirm: true. Called without it, they return a dry-run preview of what would be charged instead of spending.Structured output + tool annotations. Every tool returns both a human summary and a typed
structuredContentpayload, and carriesreadOnlyHint/destructiveHint/idempotentHintannotations so the client can reason about safety.Errors become guidance. Namecheap's cryptic error numbers are mapped to actionable hints — the single most common failure ("Invalid request IP") is turned into a step-by-step whitelist fix.
Provenance on every answer. Each result carries
provider,accountandenvironment. A caller that cannot tell which provider answered cannot check the answer.Types and TTLs are checked against the provider that will receive them. The schema accepts the union of all three, so you are never told "invalid enum" for a type that is valid where your domain lives; the refusal names the provider and lists what it does have. A TTL outside the provider's range is clamped and the clamp is reported — asking for 60 on GoDaddy gets you 600, and you are told.
Prior art: johnsorrentino/mcp-namecheap, which covers 3 read/nameserver tools. This project is an independent, from-scratch implementation with a broader, safety-first tool surface; credit to that project for charting the territory.
Tools
Tool | Kind | What it does |
| read | Availability for up to 50 domains. Picks by capability, not ownership — an unregistered domain is owned by nobody. Namecheap answers a batch in one call; GoDaddy v3 takes one domain per request. Route 53 cannot answer. |
| read | List-price lookup per TLD for register / renew / transfer / reactivate. |
| read | Paged, filterable list of domains in the account. |
| read | One coherent view of a domain: dates, registrar lock, privacy, DNS, nameservers. |
| paid · confirm | Register a domain. Dry-runs unless |
| paid · confirm | Renew a domain for N years. |
| paid · confirm | Reactivate a recently-expired domain (redemption). |
| write (idempotent) | Lock / unlock the registrar transfer lock. |
| read | Read the zone at whichever provider holds the domain. |
| write | Safe add/update/delete of host records via read-modify-write. |
| destructive · confirm | Replace the entire zone with an explicit record set. |
| read | Read the nameservers. On Route 53 this is the hosted zone's apex NS set. GoDaddy v3 cannot read them back, only replace them. |
| write | Set custom nameservers. |
| read | Read email-forwarding rules. |
| write | Upsert (merge) or replace forwarding rules. |
| paid · confirm | Start an inbound transfer; explains the EPP/auth-code requirement. |
| read | Poll a transfer, mapping the numeric StatusID to meaning + phase. |
| read | Account balances and funds available for auto-renew. |
| read | WhoisGuard / domain privacy subscription status. |
| write | Enable (with a forwarding email) or disable WhoisGuard privacy. |
"paid" tools spend real money in production and require confirm: true; without it they return a
preview.
Every tool that names a domain also takes an optional provider (namecheap | godaddy |
route53) to override routing. You need it for a domain that does not exist yet, since routing works
by asking who holds it.
Six tools are Namecheap-only in practice — renew_domain, reactivate_domain, set_domain_lock,
set_domain_privacy, get_email_forwarding / set_email_forwarding, and get_domain_info. Called
against a domain at another provider they refuse and say why. A domain that resolves nowhere still
proceeds: that is the registration and transfer-in case.
Install & configure
Requires Node.js 20+.
Claude Code
claude mcp add namecheap \
--env NAMECHEAP_API_USER=your_user \
--env NAMECHEAP_API_KEY=your_key \
--env NAMECHEAP_CLIENT_IP=your_whitelisted_ip \
--env NAMECHEAP_SANDBOX=true \
-- npx -y namecheap-mcpClaude Desktop
Add to claude_desktop_config.json (macOS:
~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"namecheap": {
"command": "npx",
"args": ["-y", "namecheap-mcp"],
"env": {
"NAMECHEAP_API_USER": "your_user",
"NAMECHEAP_API_KEY": "your_key",
"NAMECHEAP_CLIENT_IP": "your_whitelisted_ip",
"NAMECHEAP_SANDBOX": "true"
}
}
}
}Start in sandbox (NAMECHEAP_SANDBOX=true) and switch to production only once you've verified the
behaviour — production register/renew/transfer calls spend real money.
From source
git clone https://github.com/fledgeling-co/namecheap-mcp.git
cd namecheap-mcp
npm install # runs the build via the prepare hook
npm test
node dist/index.js # expects the NAMECHEAP_* env vars to be setConfiguration (environment variables)
Variable | Required | Default | Notes |
| yes | — | API username (Profile → Tools → API Access). |
| yes | — | API key from the same screen. Kept out of all logs. |
| no | = | Account the commands act on; usually identical. |
| no | auto-detect | Public IPv4 the requests come from. Auto-detected via |
| no |
|
|
| no |
| Per-request network timeout (clamped 1000–120000). |
| no | — | One GoDaddy account. A v3 personal access token from |
| no |
| One of |
| no | — | Several accounts, as JSON keyed by label: |
| no | CLI default | Route 53 goes through the |
GoDaddy is off unless one of its variables is set; the startup banner says godaddy=off. Route 53 is
off if the aws binary is absent, and the banner says so rather than letting it look like a routing
miss.
A malformed GODADDY_ACCOUNTS is reported by label, never by contents — the contents are a token,
and the underlying JSON.parse error can quote the input verbatim.
The API key is only ever sent in the request body and is never written to logs or stdout (which is
the MCP protocol channel — all diagnostics go to stderr).
Route 53
Reached by spawning the aws CLI, not the SDK: the CLI already resolves profiles, SSO sessions and
assumed roles, and reimplementing that to save a subprocess is a bad trade. Arguments go through
execFile, never a shell, and the change batch goes in on stdin — a record value is
caller-supplied, and neither a shell string nor a temp file is safe for one.
Reads follow pagination. A zone read short and written back deletes everything past the first page.
scripts/verify-route53.mts reads every hosted zone, diffs each against itself asserting zero
changes, and drops one value from a multi-value set asserting the result is one UPSERT carrying the
rest. Verified across 8 zones, 190 rows, 95 sets.
GoDaddy
v3 only, Authorization: Bearer {PAT}. The sso-key {KEY}:{SECRET} scheme in GoDaddy's own DNS
announcement belongs to v1.
v3 has no list-domains endpoint, so routing probes GET /domain-names/{domain} per configured
account and caches the answer, including the miss. A 404 or 403 means "not this account" and the probe
moves on — GoDaddy's quickstart says a 403 can mean the account is not eligible for the API at all,
and does not say what eligibility is.
Registration is not implemented. v3 has POST /registrations, but using it means modelling
contacts, consent records and agreement acceptance, and every test run spends real money. The
capability is not claimed rather than half-built.
scripts/verify-godaddy.mts <domain> [--write] exercises a real account. Read-only without --write.
Namecheap API prerequisites
Before anything works you must, at Namecheap → Profile → Tools → API Access:
Enable API access on your account.
Whitelist the IP the requests originate from (the machine running this server).
Namecheap also gates production API access behind eligibility — per their API FAQ your account must have at least one of:
20+ domains in your account, or
$50+ in account balance, or
$50+ spent in the last 2 years.
The sandbox (https://www.sandbox.namecheap.com, separate credentials) has none of these
requirements — always develop against it first.
Rate limits
Namecheap's documented ceilings are 50 requests/minute, 700/hour, 8000/day per key. This server
runs a small client-side limiter (~45/min) that delays rather than fails bursty tool calls to keep
you under the per-minute wall. Note that get_domain_pricing issues one API call per TLD.
Error handling
Namecheap returns numeric error codes; this server maps the common ones to actionable guidance, including:
1011150— Invalid request IP → the exact whitelist steps (this is the #1 first-run failure).1011102/ "API key is invalid" → check the key and that the IP is whitelisted / API access is enabled.Order/charge failures (
2528166, insufficient funds) → checkget_account_balance.2020166— renewal not permitted → the domain is likely expired; usereactivate_domain.Extended-attribute, phone-format and DNS-provider errors → what to fix.
Unknown codes are surfaced verbatim so nothing is hidden.
Development
npm run build # tsc -> dist/
npm test # vitest
npm run typecheck # tsc -p tsconfig.test.json (covers src, test and scripts)
npm run typecheck:build # tsc --noEmit (src only, matching the build)153 tests, none needing the network. The pure logic — XML envelope parsing, the DNS read-modify-write
engine, the rrset expand/regroup/diff, error-code mapping, transfer-status mapping, config handling —
runs against fixtures. Providers are driven through injected fetch and an injected aws runner. The
tool layer is driven through the registered handlers against fake providers.
Two scripts need real credentials and sit outside the gate:
npx tsx scripts/verify-route53.mts # every zone, read-only
npx tsx scripts/verify-route53.mts example.com --write # adds and removes one TXT record
npx tsx scripts/verify-godaddy.mts example.com # read-only
npx tsx scripts/verify-godaddy.mts example.com --write # adds and removes one TXT recordSecurity notes
Binds nothing — it's a stdio server, not a network listener.
The Namecheap API key travels only in POST bodies and is never logged. The GoDaddy PAT travels only in an
Authorizationheader, and config errors name the account label, never its contents.Route 53 arguments are passed as an argv array, never a shell string; the change batch goes on stdin.
Money-spending and zone-destroying operations require explicit
confirm/allowEmptyZoneflags.Validates and normalises every value read back from the API before acting on it.
Licence
MIT — see LICENSE.
Credit to johnsorrentino/mcp-namecheap for the original Namecheap MCP server that inspired this one.
Available Tools
20 toolscheck_domain_availabilityCheck domain availabilityARead-only
Check whether one or more domains are available to register. Read-only.
Availability is a question about the registry, not about your account, so this does NOT route by who holds the domain — it asks the first configured provider that can answer, or the one you name in provider. Route 53 cannot answer at all: it hosts DNS and does not sell domains.
Namecheap answers a whole batch in one call and returns four separate premium prices. GoDaddy's v3 check-availability takes one domain per request, so a batch of ten is ten requests against its quota, and its availability endpoint keeps a higher account threshold than the DNS API.
Inputs: domains (required), provider. Returns: results, provider
get_account_balanceGet account balanceARead-only
Get the Namecheap account's funds: available balance (spendable now), account balance, and the funds required for upcoming auto-renewals within 90 days. Check this before register/renew/transfer — an empty balance is the usual cause of 'order creation failed'. Read-only.
Inputs: no named parameters. Returns: account, currency, provider, environment, +5 more
get_dns_recordsGet DNS recordsARead-only
List every DNS record for a domain. The provider is chosen by which one holds the domain — Namecheap, GoDaddy or Route 53 — unless you pass provider. domain is the registrable domain (example.com or example.co.uk); sub-domains appear in each record's name. Read-only.
On Route 53 a record SET with several values comes back as several rows sharing one id; they share a TTL and are written back together.
Inputs: domain (required), provider. Returns: domain, account, records, provider, +1 more
get_domain_infoGet domain detailsARead-only
Get a coherent single view of one domain: registration + expiry dates, registrar-lock status, WhoisGuard/privacy state, and DNS provider / nameservers. Combines domains.getInfo with the registrar-lock lookup so you see everything in one call. Read-only.
Inputs: domain (required). Returns: domain, locked, status, account, +9 more
get_domain_pricingGet domain pricingARead-only
Get Namecheap's list price for one or more TLDs and an action (register / renew / transfer / reactivate). Distils users.getPricing: returns the per-year price tiers for each requested TLD. Note these are standard (non-premium) TLD prices — for premium domains use check_domain_availability, which returns premium pricing. Read-only.
Inputs: tlds (required), action, promotionCode. Returns: action, account, pricing, provider, +1 more
get_domain_privacyList domain privacy (WhoisGuard) subscriptionsARead-only
List the WhoisGuard/domain-privacy subscriptions on the account, including which domain each is allotted to, its status (ENABLED/DISABLED) and expiry. Use set_domain_privacy to toggle a domain's privacy. Read-only.
Inputs: page, listType, pageSize. Returns: account, provider, environment, subscriptions
get_email_forwardingGet email forwardingARead-only
List the email-forwarding rules for a domain (mailbox -> destination). Email forwarding only works while the domain uses Namecheap DNS. Read-only.
Inputs: domain (required). Returns: domain, account, forwards, provider, +1 more
get_nameserversGet domain nameserversARead-only
Show the nameservers for a domain. On Route 53 this is the hosted zone's apex NS set, which is what you give the registrar. GoDaddy's v3 API cannot read nameservers back, only replace them. Read-only.
Inputs: domain (required), provider. Returns: domain, account, provider, environment, +1 more
get_transfer_statusGet domain transfer statusARead-only
Look up the status of an in-progress or completed inbound transfer by its TransferID (returned from transfer_domain). Maps Namecheap's numeric StatusID to a plain-English meaning and a coarse phase (pending / action_required / completed / canceled). Read-only.
Inputs: transferId (required). Returns: phase, account, provider, statusId, +4 more
list_domainsList domains in accountARead-only
List the domains in your Namecheap account with paging and filtering. Each entry summarises expiry, lock, auto-renew, WhoisGuard and whether the domain uses Namecheap DNS. Use get_domain_info for a full single-domain view. Read-only.
Inputs: page, sortBy, listType, pageSize, +1 more. Returns: paging, account, domains, provider, +1 more
modify_dns_recordsAdd / update / delete DNS records (safe)ADestructive
Change DNS records WITHOUT wiping the zone. This is the tool you almost always want. It reads the current records, applies your granular add/update/delete operations in memory, and writes the full merged set back — untouched records are preserved. Operations: add (name+type+address); update (matches name+type, optionally matchAddress to disambiguate; only provided fields change); delete (matches name+type, optionally matchAddress). If an operation would delete the LAST record, pass allowEmptyZone=true. Returns a before/after diff.
Read nonAtomicWarning on the result. On GoDaddy an edit is a delete followed by a create, because its v3 API has no record update: if the create fails the record is ABSENT, not stale. Namecheap and Route 53 apply an edit as one operation.
Inputs: domain (required), operations (required), provider, allowEmptyZone. Returns: domain, failed, account, applied, +7 more
reactivate_domainReactivate an expired domain (PAID)ADestructive
Reactivate a domain that has EXPIRED but is still within Namecheap's redemption/grace window. THIS SPENDS MONEY (reactivation can cost more than a normal renewal) and needs confirm=true. For domains that have not yet expired, use renew_domain.
Inputs: domain (required), confirm, promotionCode. Returns: domain, account, orderId, provider, +3 more
register_domainRegister a new domain (PAID)ADestructive
Register (buy) a new domain. THIS SPENDS MONEY from the Namecheap account balance and is not reversible. You MUST pass confirm=true to proceed; without it the tool returns a dry-run describing the charge. Requires a full registrant contact (used for all contact roles unless overridden). ccTLDs frequently need extended attributes (e.g. .us needs RegistrantNexus + RegistrantPurpose; .eu, .ca, .co.uk, .de, .asia have their own) — pass them via extendedAttributes as raw Namecheap field names. Check availability/pricing first with check_domain_availability and confirm funds with get_account_balance.
Inputs: domain (required), contact (required), years, confirm, +5 more. Returns: domain, account, orderId, provider, +4 more
renew_domainRenew a domain (PAID)ADestructive
Renew an existing, non-expired domain, extending its expiry. THIS SPENDS MONEY and needs confirm=true. If the domain has already EXPIRED, use reactivate_domain instead.
Inputs: domain (required), years, confirm, promotionCode. Returns: domain, account, orderId, renewed, +4 more
replace_all_dns_recordsReplace the ENTIRE DNS zone (destructive)ADestructive
DANGER: overwrite the domain's complete record set with exactly the records you provide. Every existing record NOT in your list is permanently deleted, MX mail records included. Prefer modify_dns_records for everyday edits. Requires confirm=true; an empty record set additionally requires allowEmptyZone=true. Consider calling get_dns_records first to capture the current zone for rollback.
On Route 53 the zone's own SOA and apex NS are left alone regardless — Route 53 creates both with the hosted zone and rejects deleting either.
Inputs: domain (required), records (required), confirm, provider, +1 more. Returns: domain, failed, account, applied, +5 more
set_domain_lockLock or unlock a domainAIdempotent
Set the registrar lock on a domain. Locking protects against unauthorised transfers; you must UNLOCK before transferring a domain away. Idempotent — setting the state it is already in is a no-op.
Inputs: domain (required), locked (required). Returns: domain, locked, account, success, +2 more
set_domain_privacyEnable or disable domain privacy (WhoisGuard)AIdempotent
Turn WhoisGuard/domain privacy on or off for a domain. The tool resolves the domain's WhoisGuard subscription ID automatically. Enabling requires a forwardedToEmail (where WHOIS contact mail is relayed). Idempotent.
Inputs: domain (required), enabled (required), forwardedToEmail. Returns: domain, account, enabled, success, +2 more
set_email_forwardingSet email forwarding (safe merge or replace-all)ADestructiveIdempotent
Configure email forwarding. Like DNS setHosts, Namecheap's setEmailForwarding is REPLACE-ALL, so this tool defaults to a safe merge: it reads existing rules, upserts the ones you provide (matched by mailbox), removes any you list in remove, and writes the full set back — untouched rules are preserved. Use mode=replace_all (with confirm=true) to overwrite every rule with exactly forwards.
Inputs: domain (required), mode, remove, confirm, +1 more. Returns: domain, account, success, forwards, +2 more
set_nameserversSet custom nameserversADestructiveIdempotent
Point a domain at nameservers. On Namecheap, mode=default resets it to Namecheap BasicDNS. IMPORTANT: moving nameservers moves DNS authority, so records held at the old provider stop taking effect. Route 53 cannot do this — a Route 53 zone's nameservers are set wherever the domain is registered.
Inputs: mode (required), domain (required), provider, nameservers. Returns: mode, domain, account, success, +2 more
transfer_domainTransfer a domain in to Namecheap (PAID)ADestructive
Initiate an inbound domain transfer to Namecheap. THIS SPENDS MONEY (a transfer usually includes one year of renewal) and needs confirm=true. Before transferring you must, at the losing registrar: unlock the domain and obtain its EPP/auth code (pass it as eppCode; required for most gTLDs like .com/.net/.org). The domain must generally be >60 days old and not within 60 days of a prior transfer. Track progress with get_transfer_status.
Inputs: domain (required), years, confirm, eppCode, +2 more. Returns: domain, account, orderId, provider, +6 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
Most tools target clearly distinct actions, but check_domain_availability and get_domain_pricing both deal with pricing/availability and could be confused without reading descriptions carefully. All other tools have clear boundaries, including the DNS trio (get, modify, replace_all) where descriptions emphasize the safe vs dangerous distinction.
All tool names follow a consistent verb_noun pattern in snake_case (e.g., get_domain_info, set_nameservers, renew_domain). No mixing of styles or vague verbs, making the set predictable and scannable.
At 20 tools, the count is on the heavy side but each tool serves a distinct domain-management function (lifecycle, DNS, nameservers, email forwarding, privacy, billing, transfers). The breadth justifies the count, though it slightly exceeds the typical well-scoped range.
The toolset covers the full domain lifecycle: availability, pricing, registration, renewal, reactivation, transfer, DNS management, nameservers, email forwarding, privacy, and billing. Minor gaps exist (e.g., no direct tool to update domain contact info or toggle auto-renew), but these are edge cases agents can work around.
Maintenance
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Official Porkbun MCP server: domains, DNS, SSL, hosting and Cloudflare via the Porkbun API.
Capability registry for the agentic economy. Semantic search over verified MCP server listings.
MCP server for DNSimple — domains, DNS zone records, availability, pricing and contacts.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA simple MCP server that enables AI assistants to perform domain research including availability checking, WHOIS lookups, DNS record retrieval, and finding expired domains without requiring API keys.68MIT
- AlicenseBqualityDmaintenancedomain-suite-mcp is an MCP server that gives AI agents full autonomous control over the domain lifecycle. From checking availability and registering domains to managing DNS records, SSL certificates, and email authentication across Porkbun, Namecheap, GoDaddy, and Cloudflare through a unified set of 21 tools.2124MIT
- AlicenseAqualityDmaintenanceComprehensive MCP server for the Namecheap API, enabling domain management, DNS record control, nameserver settings, and domain registration from any MCP client.10MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server for managing DNS records and domains via the Namecheap API. Works with Claude.ai and other MCP clients.6 npmMIT