namecheap-mcp
Allows management of Namecheap domains, DNS records, SSL certificates, email forwarding, transfers, and account details via the Namecheap API.
Click on "Deploy 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 check if example.com is available"
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
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
Related MCP server: MCP Namecheap Server
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-setupOption 3: Environment variables
Variable | Description |
| Your Namecheap username |
| API key (Account → Profile → Tools → API Access) |
| Whitelisted public IP address |
| Account username if different from API user (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 |
| Configure credentials interactively |
| Check availability of one or more domains |
| Purchase a new domain |
| List all domains in your account (paginated, filterable) |
| Full details for a single domain |
| Read WHOIS contact info (registrant, tech, admin, billing) |
| Update WHOIS contact info |
| Renew a domain for 1–10 years |
| Reactivate a recently expired domain |
| Browse supported TLDs; filter by name or registerability |
| Enable or disable auto-renewal |
| Lock or unlock domain transfer |
| Enable or disable WHOIS privacy |
| Renew WHOIS privacy protection |
DNS
Tool | Description |
| Read all DNS records for a domain (also writes a local backup snapshot) |
| Safely add, update, or remove a single DNS record (recommended) |
| Replace all DNS records — gated behind |
| Revert to Namecheap's default nameservers |
| Delegate DNS to external nameservers (e.g. Cloudflare) |
| Read email forwarding rules |
| Replace email forwarding rules — gated behind |
| List local DNS zone backups for a domain |
| 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 certificates in your account |
| Purchase a new SSL certificate |
| Get details for a specific certificate |
| Activate a purchased certificate with a CSR |
| Reissue a certificate with a new CSR |
Transfers
Tool | Description |
| Initiate an inbound domain transfer (requires EPP code) |
| Check the status of a pending transfer |
| List all transfers, filterable by status |
Account
Tool | Description |
| Account balance and withdrawable amount |
| Pricing for domains, SSL, or Whois Guard |
| 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 internallyError
1011102means yourNAMECHEAP_CLIENT_IPis not whitelisted in the Namecheap dashboardSet
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 emittingAfter making changes: npm run build && npm install -g . to update the global install.
License
MIT
Available Tools
2 toolsauth_statusA
Report the current authentication status of namecheap-mcp: whether credentials are loaded, whether they were accepted by the Namecheap API, where each credential came from (shell env vs config file), and the last error if any. Call this when tools are failing to diagnose whether the problem is a missing config, an unwhitelisted IP, a stale shell export shadowing the config file, or an invalid API key.
Inputs: no named parameters.
setupA
Configure namecheap-mcp with your Namecheap API credentials. Credentials are saved to ~/.config/namecheap-mcp/.env on your local machine. Run this if other tools report that the server is not configured.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
auth_status and setup have completely distinct purposes: one checks authentication status, the other configures credentials. No overlap whatsoever.
Both tool names follow the snake_case convention consistently, with clear verbs (auth, setup) and nouns (status).
With only 2 tools, the server is severely under-scoped for a Namecheap API. It lacks essential domain and DNS management tools, making it nearly unusable for actual tasks.
The tool surface covers only authentication setup and status checking, missing all core Namecheap operations like listing domains, managing DNS records, or purchasing services.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
MCP server for DNSimple — domains, DNS zone records, availability, pricing and contacts.
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables AI assistants to check domain name availability using WHOIS lookups.16 npm4ISC
- AlicenseBqualityDmaintenanceProvides integration with the Namecheap API for domain management operations, including domain listing, availability checks, and nameserver configuration. It allows users to interact with their Namecheap account through natural language commands in MCP-compatible clients.334 npm20MIT
- AlicenseAqualityDmaintenanceComprehensive MCP server for the Namecheap API, enabling domain management, DNS record control, nameserver settings, and domain registration from any MCP client.1034 npmMIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server for managing DNS records and domains via the Namecheap API. Works with Claude.ai and other MCP clients.6 npmMIT