MCP Namecheap Server
Provides tools for managing domains through the Namecheap API, including retrieving domain lists, checking domain availability, and configuring custom nameservers.
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., "@MCP Namecheap Server check if dev-portfolio.com and my-app.io are 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.
MCP Namecheap Server
A Model Context Protocol (MCP) server that provides integration with the Namecheap API for domain management operations.
Features
I only added the functionality I use and I don't think it's a good idea to allow an agent to register domains. The complete set of Namecheap API methods can be found here.
Get Domain List: Retrieve all domains in your Namecheap account
Check Domain Availability: Check if domains are available for registration
Set Custom DNS: Configure custom nameservers for your domains
Configurable Tools: Enable/disable specific tools to control what's available in Cursor
Related MCP server: Namecheap MCP Server
Prerequisites
Before using this MCP server, you need:
Namecheap Account Requirements:
At least 20 domains under your account
$50 on your account balance
$50 spent within the last 2 years
API Access Setup:
Enable API access in your Namecheap dashboard
Obtain your API key
Whitelist your IP address
Installation
Clone this repository:
git clone <repository-url>
cd mcp-namecheapInstall dependencies:
npm installBuild the project:
npm run buildConfiguration
Create a .env file with your Namecheap credentials:
NAMECHEAP_API_USER=your_api_username
NAMECHEAP_API_KEY=your_api_key
NAMECHEAP_USERNAME=your_namecheap_username
NAMECHEAP_CLIENT_IP=your_whitelisted_ip_addressOr reference the mcp-config.json file which shows all available environment variables.
Tool Configuration
You can enable/disable specific tools by setting these environment variables:
NAMECHEAP_ENABLE_GETLIST- Enable domain list retrieval (default: true)NAMECHEAP_ENABLE_CHECK- Enable domain availability checking (default: true)NAMECHEAP_ENABLE_SETCUSTOM- Enable custom DNS configuration (default: true)
Set any of these to false to disable the corresponding tool.
Sandbox Mode
For testing, you can use Namecheap's sandbox environment:
NAMECHEAP_SANDBOX=trueUsage
Running the Server
npm startAvailable Tools
1. Get Domain List (namecheap_get_domain_list)
Returns a list of all domains in your Namecheap account with details including expiration dates, auto-renewal status, and DNS configuration.
Parameters: None
2. Check Domain Availability (namecheap_check_domain_availability)
Checks the availability of one or more domains for registration.
Parameters:
domains(array): Array of domain names to check (e.g., ["example.com", "test.org"])
3. Set Custom DNS (namecheap_set_custom_dns)
Sets custom nameservers for a domain. Note that services like URL forwarding, email forwarding, and dynamic DNS will not work with custom nameservers.
Parameters:
domain(string): The domain name (e.g., "example.com")nameservers(array): Array of nameserver addresses (1-12 nameservers)
MCP Client Configuration
To use this server with an MCP client like Cursor, add the following to your MCP configuration:
{
"mcpServers": {
"namecheap": {
"command": "node",
"args": ["path/to/mcp-namecheap/dist/index.js"],
"env": {
"NAMECHEAP_API_USER": "your_api_username",
"NAMECHEAP_API_KEY": "your_api_key",
"NAMECHEAP_USERNAME": "your_namecheap_username",
"NAMECHEAP_CLIENT_IP": "your_whitelisted_ip_address"
}
}
}
}Development
Scripts
npm run build- Build the TypeScript projectnpm run dev- Run in development mode with tsxnpm start- Run the built project
Project Structure
src/
├── index.ts # Main MCP server implementation
├── namecheap-client.ts # Namecheap API client
└── types.ts # TypeScript type definitionsAPI Reference
This server uses the following Namecheap API endpoints:
namecheap.domains.getList- Retrieve domain listnamecheap.domains.check- Check domain availabilitynamecheap.domains.dns.setCustom- Set custom nameservers
For more information, see the Namecheap API documentation.
Error Handling
The server includes comprehensive error handling for:
Missing or invalid API credentials
Network connectivity issues
Namecheap API errors
Invalid parameters
Disabled tools
Security Considerations
Store API credentials securely
Keep your IP whitelist updated
Use environment variables for sensitive configuration
Consider using the sandbox environment for testing
License
MIT
Available Tools
3 toolsnamecheap_check_domain_availabilityC
Check the availability of one or more domains
Inputs: domains (required).
namecheap_get_domain_listB
Get a list of all domains in your Namecheap account
Inputs: no named parameters.
namecheap_set_custom_dnsC
Set custom DNS nameservers for a domain
Inputs: domain (required), nameservers (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose with no overlap: checking domain availability, listing owned domains, and setting DNS nameservers. The descriptions clearly differentiate these three separate operations in the domain management workflow.
All three tools follow a perfect namecheap_verb_noun pattern with consistent snake_case formatting. The naming convention is predictable and readable throughout the entire tool set.
With only 3 tools, this server feels somewhat thin for a comprehensive domain management system. While the tools cover core operations, typical domain management would include additional functionality like domain registration, renewal, transfer, or contact management.
There are significant gaps in the domain management lifecycle. The server lacks essential operations like registering a domain after checking availability, renewing domains, transferring domains, or managing domain contacts/settings beyond DNS. This creates dead ends in typical domain management workflows.
Maintenance
Related MCP Connectors
Register, transfer and manage domain names and DNS from your AI agent.
MCP server for DNSimple — domains, DNS zone records, availability, pricing and contacts.
Domains MCP — domain registration lookup + availability search over live RDAP (ICANN standard…
Custom domains for SaaS and AI agents: search, register, connect DNS, and issue HTTPS over MCP.
Related MCP Servers
- AlicenseAqualityDmaintenanceComprehensive MCP server for the Namecheap API, enabling domain management, DNS record control, nameserver settings, and domain registration from any MCP client.1020 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
- FlicenseAqualityDmaintenanceA Model Context Protocol server that wraps the Namecheap API, enabling AI assistants to manage domains, DNS records, SSL certificates, and account information.212 npm-
- AlicenseAqualityDmaintenanceEnables AI assistants to manage Namecheap domains, DNS, contacts, registrar locks, and view SSL certificates and pricing through safe read and configuration tools.1661 npmMIT