namecheap-mcp
A Model Context Protocol server that wraps the Namecheap API, enabling AI assistants to manage domains, DNS records, SSL certificates, and account information.
README
namecheap-mcp
A Model Context Protocol server that wraps the Namecheap API, giving AI assistants the ability to manage domains, DNS records, SSL certificates, and account information directly from your conversations.
Features
- Domains — check availability, register, list, renew, reactivate, manage contacts and privacy
- DNS — read and write host records (A, AAAA, CNAME, MX, TXT, NS), safe single-record updates, set custom or default nameservers
- Email Forwarding — get and set per-domain forwarding rules
- SSL — list, purchase, activate, reissue certificates; full DCV support (email, HTTP, CNAME)
- Transfers — initiate inbound transfers, track status, list all transfers
- Account — check balances, query pricing
- TLD Browser — search available TLDs with filtering by name or registerability
- Interactive Setup — configure credentials via an in-editor form or a standalone CLI tool
Requirements
- Node.js 18+
- A Namecheap account with API access enabled
- Your public IP whitelisted in the Namecheap dashboard
Installation
See INSTALL.md for full setup instructions.
Quick start (npx — no install needed)
{
"mcpServers": {
"namecheap": {
"command": "npx",
"args": ["-y", "namecheap-mcp"]
}
}
}
Global install
npm install -g namecheap-mcp
{
"mcpServers": {
"namecheap": {
"command": "namecheap-mcp"
}
}
}
Setup
Credentials are stored globally at ~/.config/namecheap-mcp/.env and are picked up automatically by any project using this server — you only need to configure once per machine.
Option 1: In-editor form (Claude Code ≥ 2.1.76)
Call the setup tool from within Claude Code. A form will appear prompting for your credentials. Your public IP is auto-detected as a default.
Tip: Submit the form promptly — the request will time out if left idle. If it times out, just call
setupagain.
Option 2: Interactive CLI
namecheap-mcp-setup
Option 3: Environment variables
| Variable | Description |
|---|---|
NAMECHEAP_API_USER |
Your Namecheap username |
NAMECHEAP_API_KEY |
API key (Account → Profile → Tools → API Access) |
NAMECHEAP_CLIENT_IP |
Whitelisted public IP address |
NAMECHEAP_USERNAME |
Account username if different from API user (optional) |
NAMECHEAP_SANDBOX |
true to use the sandbox API (optional) |
Why isn't there an "Authenticate" button in /mcp?
Claude Code's native Authenticate button in the /mcp dialog is part of the MCP 2025-06-18 HTTP+OAuth handshake, which only applies to HTTP-transport servers. namecheap-mcp uses stdio transport, so the button never appears for it. The supported auth flows are the setup elicitation tool (Option 1 above), the namecheap-mcp-setup CLI (Option 2), or the /namecheap-mcp:setup slash command.
To help you tell at a glance whether the server is actually authenticated, namecheap-mcp hides its full tool suite until credentials validate. If you see only setup and auth_status in /mcp, the server is not yet authenticated — run setup. Call auth_status anytime to see a full diagnostic (error code, whitelisted IP, config file path, and a recommended next action).
Tools
Domains
| Tool | Description |
|---|---|
setup |
Configure credentials interactively |
check_domains |
Check availability of one or more domains |
register_domain |
Purchase a new domain |
list_domains |
List all domains in your account (paginated, filterable) |
get_domain_info |
Full details for a single domain |
get_domain_contacts |
Read WHOIS contact info (registrant, tech, admin, billing) |
set_domain_contacts |
Update WHOIS contact info |
renew_domain |
Renew a domain for 1–10 years |
reactivate_domain |
Reactivate a recently expired domain |
get_tld_list |
Browse supported TLDs; filter by name or registerability |
set_domain_autorenew |
Enable or disable auto-renewal |
set_registrar_lock |
Lock or unlock domain transfer |
set_whoisguard |
Enable or disable WHOIS privacy |
renew_whoisguard |
Renew WHOIS privacy protection |
DNS
| Tool | Description |
|---|---|
get_dns_hosts |
Read all DNS records for a domain (also writes a local backup snapshot) |
update_dns_record |
Safely add, update, or remove a single DNS record (recommended) |
set_dns_hosts |
Replace all DNS records — gated behind confirmReplaceAll + expectedDeletions |
set_dns_default |
Revert to Namecheap's default nameservers |
set_dns_custom |
Delegate DNS to external nameservers (e.g. Cloudflare) |
get_email_forwarding |
Read email forwarding rules |
set_email_forwarding |
Replace email forwarding rules — gated behind confirmReplaceAll |
list_dns_snapshots |
List local DNS zone backups for a domain |
restore_dns_snapshot |
Restore a zone from a local backup snapshot |
⚠️ DNS zone safety. The underlying Namecheap
setHostsAPI is a full-replacement operation — any record not in the call is deleted. Useupdate_dns_recordfor single-record adds/updates/deletes. Never hand-callset_dns_hoststo add a record. Every read and every write produces a local snapshot at~/.config/namecheap-mcp/snapshots/<domain>__<timestamp>-<rand>.json(up to 50 per domain), solist_dns_snapshots+restore_dns_snapshotcan recover from any accidental damage.
SSL
| Tool | Description |
|---|---|
list_ssl_certs |
List SSL certificates in your account |
create_ssl_cert |
Purchase a new SSL certificate |
get_ssl_info |
Get details for a specific certificate |
activate_ssl |
Activate a purchased certificate with a CSR |
reissue_ssl |
Reissue a certificate with a new CSR |
Transfers
| Tool | Description |
|---|---|
transfer_domain |
Initiate an inbound domain transfer (requires EPP code) |
get_transfer_status |
Check the status of a pending transfer |
list_transfers |
List all transfers, filterable by status |
Account
| Tool | Description |
|---|---|
get_balances |
Account balance and withdrawable amount |
get_pricing |
Pricing for domains, SSL, or Whois Guard |
auth_status |
Diagnose authentication: whether credentials loaded, whether the API accepted them, and the last error with an actionable hint |
API Notes
- DNS tools accept a full domain name like
example.com— SLD/TLD splitting is handled internally - Error
1011102means yourNAMECHEAP_CLIENT_IPis not whitelisted in the Namecheap dashboard - Set
NAMECHEAP_SANDBOX=trueto useapi.sandbox.namecheap.comfor testing
Development
git clone https://github.com/ringo380/namecheap-mcp
cd namecheap-mcp
npm install
npm run dev # tsx watch — no build needed
npm run build # compile TypeScript
npm run type-check # type-check without emitting
After making changes: npm run build && npm install -g . to update the global install.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。