Namecheap MCP Server
An MCP server for managing DNS records and domains via the Namecheap API. Works with Claude.ai and other MCP clients.
README
Namecheap MCP Server
An MCP server for managing DNS records and domains via the Namecheap API. Works with Claude.ai, Claude Desktop, Claude Code, and any MCP client.
Tools
| Tool | Description |
|---|---|
setup |
Detects the server IP and walks you through enabling the Namecheap API |
list_domains |
List all domains in your account with status, expiry, auto-renew |
get_domain_info |
Detailed info for a domain: nameservers, whois, registration dates |
list_dns_records |
List all DNS records for a domain |
add_dns_record |
Add a DNS record (safely preserves existing records) |
update_dns_record |
Update a record matched by host + type |
delete_dns_record |
Delete a record matched by host + type |
set_nameservers |
Set custom nameservers or reset to Namecheap defaults |
Quick Start (claude.ai)
- Add
https://namecheap-mcp-production.up.railway.app/as a remote MCP server in claude.ai - You'll be redirected to a login page — enter your Namecheap username and API key
- On your first tool call, if the server IP isn't whitelisted, you'll get a message with the exact IP and a direct link to whitelist it
- Whitelist the IP, and you're done — every future session auto-authenticates via OAuth
Your credentials are encrypted into the OAuth token (AES-256-GCM). Nothing is stored on the server.
Namecheap API setup
If you don't have API access yet:
- Enable API access in your Namecheap account
- Whitelist the server IP shown on the login page or in the first tool call error
- Copy your API key from the API Access page
IP changes
The server runs on Railway, whose outbound IP may occasionally change. If it does, your next tool call will tell you the new IP with a link to whitelist it. No need to re-authenticate — your OAuth token survives IP changes.
Authentication
The server supports three auth methods (tried in order):
| Method | Best for | How it works |
|---|---|---|
| OAuth | claude.ai, any OAuth-capable client | Login page, credentials encrypted into token |
| Authorization header | Claude Code, programmatic use | Authorization: Bearer user:key:ip |
| URL path | Simple setup | https://server/user/key/ip |
Self-Hosted Setup
Install & run locally (stdio)
git clone https://github.com/timncox/namecheap-mcp.git
cd namecheap-mcp
npm install && npm run build
Add to Claude Desktop config:
{
"mcpServers": {
"namecheap": {
"command": "node",
"args": ["/path/to/namecheap-mcp/dist/index.js"],
"env": {
"NAMECHEAP_API_USER": "your_username",
"NAMECHEAP_API_KEY": "your_api_key",
"NAMECHEAP_CLIENT_IP": "your_whitelisted_ip"
}
}
}
}
Run as HTTP server (with OAuth)
OAUTH_SECRET="$(openssl rand -hex 32)" \
BASE_URL="https://your-domain.com" \
node dist/index.js --http
How it works
The Namecheap API's setHosts command replaces all DNS records on every call. This server handles that safely — when you add, update, or delete a single record, it fetches all existing records first, modifies the list, then writes everything back.
Security
- Stateless OAuth — credentials are AES-256-GCM encrypted into the token. The server stores nothing.
- PKCE supported — authorization codes use S256 code challenge verification.
- Auth codes expire after 5 minutes.
- IP errors are actionable — if the server IP changes, tool calls return the new IP with a direct whitelist link.
- Stdio mode reads credentials from local env vars only.
Environment Variables
| Variable | Mode | Required | Description |
|---|---|---|---|
NAMECHEAP_API_USER |
stdio | Yes | Your Namecheap username |
NAMECHEAP_API_KEY |
stdio | Yes | API key from Namecheap dashboard |
NAMECHEAP_CLIENT_IP |
stdio | Yes | Your whitelisted IP address |
OAUTH_SECRET |
HTTP | Yes | 32+ char secret for token encryption |
BASE_URL |
HTTP | Yes | Public URL of the server |
PORT |
HTTP | No | Server port (default 3000) |
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 模型以安全和受控的方式获取实时的网络信息。