Namecheap MCP Server
Allows managing DNS records and domains via the Namecheap API, including listing domains, adding/updating/deleting DNS records, and setting nameservers.
Click on "Install 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 Serverlist all my domains"
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 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 |
| Detects the server IP and walks you through enabling the Namecheap API |
| List all domains in your account with status, expiry, auto-renew |
| Detailed info for a domain: nameservers, whois, registration dates |
| List all DNS records for a domain |
| Add a DNS record (safely preserves existing records) |
| Update a record matched by host + type |
| Delete a record matched by host + type |
| Set custom nameservers or reset to Namecheap defaults |
Related MCP server: dynadot-mcp
Quick Start (claude.ai)
Add
https://namecheap-mcp-production.up.railway.app/as a remote MCP server in claude.aiYou'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 |
|
URL path | Simple setup |
|
Self-Hosted Setup
Install & run locally (stdio)
git clone https://github.com/timncox/namecheap-mcp.git
cd namecheap-mcp
npm install && npm run buildAdd 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 --httpHow 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 |
| stdio | Yes | Your Namecheap username |
| stdio | Yes | API key from Namecheap dashboard |
| stdio | Yes | Your whitelisted IP address |
| HTTP | Yes | 32+ char secret for token encryption |
| HTTP | Yes | Public URL of the server |
| HTTP | No | Server port (default 3000) |
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/timncox/namecheap-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server