MCP for Claude
The API has a built-in MCP endpoint that lets Claude Code interact with Namecheap using natural language.
Automatic (via CLI)
Section titled “Automatic (via CLI)”namecheap mcp installThis writes the MCP config to ~/.claude/settings.json. Restart Claude Code to activate.
Manual
Section titled “Manual”claude mcp add --transport http namecheap https://api.namecheap.itz.tools/mcp \ --header "x-api-key: sk-itzn_your-key"How it works
Section titled “How it works”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.
Available tools
Section titled “Available tools”| Tool | What it does |
|---|---|
check_domains | Check if domains are available |
list_domains | List all domains in your account |
get_domain | Get domain details |
list_tlds | List available TLDs |
renew_domain | Renew a domain |
get_dns_records | Get DNS records |
add_dns_record | Add a DNS record (safe — preserves existing) |
remove_dns_record | Remove a DNS record by hostId |
reset_dns_default | Reset to Namecheap DNS |
get_nameservers | Get nameservers |
set_nameservers | Set custom nameservers |
get_balance | Account balance |
get_pricing | Domain pricing |
get_contacts | WHOIS contacts |
get_lock_status | Registrar lock status |
list_transfers | List transfers |
list_whoisguard | List privacy entries |
get_email_forwarding | Email forwarding rules |
Example conversation
Section titled “Example conversation”“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.
Alternative: Claude Code skill
Section titled “Alternative: Claude Code skill”If you prefer CLI-based tool use over MCP:
namecheap skill installThis installs a /namecheap slash command that documents all CLI commands for Claude Code.