Skip to content

MCP for Claude

The API has a built-in MCP endpoint that lets Claude Code interact with Namecheap using natural language.

Terminal window
namecheap mcp install

This writes the MCP config to ~/.claude/settings.json. Restart Claude Code to activate.

Terminal window
claude mcp add --transport http namecheap https://api.namecheap.itz.tools/mcp \
--header "x-api-key: sk-itzn_your-key"

The API exposes a Streamable HTTP MCP endpoint at /mcp. Claude Code connects to it using your API key. When you ask Claude to manage domains, it calls the MCP tools which hit the same API endpoints documented in this site.

ToolWhat it does
check_domainsCheck if domains are available
list_domainsList all domains in your account
get_domainGet domain details
list_tldsList available TLDs
renew_domainRenew a domain
get_dns_recordsGet DNS records
add_dns_recordAdd a DNS record (safe — preserves existing)
remove_dns_recordRemove a DNS record by hostId
reset_dns_defaultReset to Namecheap DNS
get_nameserversGet nameservers
set_nameserversSet custom nameservers
get_balanceAccount balance
get_pricingDomain pricing
get_contactsWHOIS contacts
get_lock_statusRegistrar lock status
list_transfersList transfers
list_whoisguardList privacy entries
get_email_forwardingEmail forwarding rules

“Check if coolstartup.io is available and if it is, show me the registration price”

Claude will call check_domains then get_pricing and give you the answer.

“Add an A record pointing @ to 1.2.3.4 on example.com”

Claude will call add_dns_record which safely reads existing records, appends yours, and writes them back.

If you prefer CLI-based tool use over MCP:

Terminal window
namecheap skill install

This installs a /namecheap slash command that documents all CLI commands for Claude Code.