
namecheap mcp
Name Cheap MCP tools for your AI needs.
Repository Info
About This Server
Name Cheap MCP tools for your AI needs.
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Namecheap MCP Server
🚀 The Problem
Managing domain registrations typically requires navigating complex web interfaces or writing custom API integrations. This creates friction when you want to quickly check domain availability or register domains as part of your workflow.
💡 The Solution
The Namecheap MCP Server brings comprehensive domain management directly into your AI assistant. Check availability, manage your portfolio, view DNS records, and register domains using natural language - all without leaving your conversation.
You: "Show me all my domains"
Assistant: "You have 12 domains. 2 are expiring soon: myblog.com (expires in 15 days)..."
You: "Get DNS records for myblog.com"
Assistant: "myblog.com has 4 A records, 2 MX records for email..."
You: "Is mycoolstartup.com available?"
Assistant: "Yes, mycoolstartup.com is available! A .com costs $9.58/year."
You: "Register it for 2 years"
Assistant: "I'll register mycoolstartup.com for 2 years. Total: $19.16. Confirm?"
⚠️ Important Security Warning
This tool uses the Namecheap live API and can make REAL purchases. Always double-check domain registration commands before confirming.
📦 Installation
Quick Start with Smithery (Recommended)
- Click Deploy on Smithery
- Configure your Namecheap credentials
- Get your Smithery API key
- Add to your MCP client
Claude Desktop
Add to your Claude Desktop config:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"namecheap": {
"command": "npx",
"args": ["-y", "@webdevtoday/nc-mcp-server"],
"env": {
"NC_USERNAME": "your_namecheap_username",
"NC_API_KEY": "your_namecheap_api_key",
"NODE_ENV": "production"
}
}
}
}
Other MCP Clients (via Smithery)
{
"mcpServers": {
"namecheap": {
"uri": "https://api.smithery.ai/mcp/@webdevtoday/namecheap-domains",
"transport": {
"type": "sse",
"config": {
"apiKey": "your-smithery-api-key"
}
}
}
}
}
Docker
# Build
docker build -t nc-mcp-server .
# Run
docker run -p 3500:3500 \
-e NC_USERNAME=your_username \
-e NC_API_KEY=your_api_key \
-e NODE_ENV=production \
nc-mcp-server
🔧 Configuration
Environment Variables
| Variable | Description | Required |
|---|---|---|
NC_USERNAME | Your Namecheap username | ✅ |
NC_API_KEY | Your Namecheap API key | ✅ |
NC_CLIENT_IP | Your whitelisted IP (auto-detected if not set) | ❌ |
NODE_ENV | Set to sandbox for testing | ❌ |
REGISTRANT_PROFILE | JSON string with contact details | ❌ |
REGISTRANT_PROFILE_PATH | Path to registrant JSON file | ❌ |
Namecheap API Access
To use the Namecheap API, your account must meet one of these requirements:
- At least 20 domains in your account
- At least $50 account balance
- At least $50 spent in the last 2 years
IP Whitelisting
- Find your IP:
curl ifconfig.me - Log in to Namecheap
- Go to Profile → Tools → API Access
- Add your IP to the whitelist
Registrant Profile
Setting up domain registration details
Option 1: Environment Variable
{
"env": {
"REGISTRANT_PROFILE": "{\"firstName\":\"John\",\"lastName\":\"Doe\",\"address1\":\"123 Main St\",\"city\":\"New York\",\"stateProvince\":\"NY\",\"postalCode\":\"10001\",\"country\":\"US\",\"phone\":\"+1.2125551234\",\"email\":\"john@example.com\"}"
}
}
Option 2: JSON File
Create registrant-profile.json:
{
"firstName": "John",
"lastName": "Doe",
"address1": "123 Main St",
"city": "New York",
"stateProvince": "NY",
"postalCode": "10001",
"country": "US",
"phone": "+1.2125551234",
"email": "john@example.com"
}
🛠️ Available Tools
Domain Search & Information
check_domain
Check if a domain is available for registration.
"Is example.com available?"
"Check mydomain.io"
get_domain_list
List all domains in your Namecheap account with filtering options.
"Show me all my domains"
"List my expiring domains"
"Search for domains containing 'blog'"
get_domain_info
Get detailed information about a specific domain.
"Get info for mydomain.com"
"Show me details about example.com"
get_domain_contacts
Retrieve contact information for a domain.
"Show contacts for mydomain.com"
"Get registrant info for example.com"
Domain Management
get_tld_pricing
Get current pricing for any TLD.
"How much does a .com cost?"
"Price for .io domains"
register_domain
Register a domain with optional WhoisGuard protection.
"Register mydomain.com"
"Register example.io for 2 years"
DNS Management
get_dns_hosts
Retrieve DNS records for domains using Namecheap DNS.
"Show DNS records for mydomain.com"
"Get DNS settings for example.com"
🧪 Sandbox Mode
Test without making real purchases:
{
"env": {
"NODE_ENV": "sandbox",
"NC_USERNAME": "your_username",
"NC_API_KEY": "your_sandbox_api_key"
}
}
🐛 Troubleshooting
Common Issues
API Access Denied
- Ensure your account meets the requirements
- Verify your API key is correct
- Check IP whitelisting
Connection Failed / IP Not Whitelisted
- Check the Smithery logs to find the actual IP being used
- Add that IP to your Namecheap whitelist (Profile → Tools → API Access)
- Alternatively, set NC_CLIENT_IP in Smithery configuration
- Note: Smithery servers may use different IPs than expected
Invalid API Key Error
- Verify API access is enabled in Namecheap
- Check your account meets requirements:
- At least 20 domains, OR
- At least $50 balance, OR
- At least $50 spent in last 2 years
- Ensure API key is correctly copied
Registration Fails
- Verify registrant profile is properly formatted
- Ensure all required fields are filled
- Check domain availability first
🔨 Development
# Clone
git clone https://github.com/webdevtodayjason/nc-mcp-server
cd nc-mcp-server
# Install
npm install
# Build
npm run build
# Run
NC_USERNAME=your_username NC_API_KEY=your_key npm start
Deploy Your Own
To install Namecheap MCP Server for any client automatically via Smithery:
npx -y @smithery/cli@latest install @webdevtoday/namecheap-domains --client <CLIENT_NAME> --key <YOUR_SMITHERY_KEY>
You can find your Smithery key in the Smithery.ai dashboard.
🤝 Contributing
Contributions welcome! Please feel free to submit a Pull Request.
📄 License
MIT © Jason Brashear
🌟 Support
If you find this helpful, please consider:
- ⭐ Starring the repository
- 🐛 Reporting issues
- 💡 Suggesting features
- 🤝 Contributing code
Made with ❤️ by Jason Brashear
Quick Start
Clone the repository
git clone https://github.com/webdevtodayjason/namecheap-mcpInstall dependencies
cd namecheap-mcp
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.