
Namecheap 的 MCP 服务器
概览
一个模型上下文协议(MCP)服务器,提供与 Namecheap API 集成的域管理操作。 我只添加了我使用的功能,我认为允许代理注册域名并不是个好主意。完整的Namecheap API方法集可以在这里找到。 - : 检索您Namecheap账户中的所有域名 - : 检查域名是否可供注册 - : 配置自定义域名服务器 - : 启用/禁用特定工具以控制光标中可用的域名 1. : - 账户下至少有20个域名 - 账户余额50美元 - 过去两年内花费50美元 2. : - 在你的Namecheap仪表盘中启用API访问 - 获取你的API密钥 - 将你的IP地址列入白名单 用你的Namecheap账号创建一个.env文件: 或者参考显示所有可用环境变量的mcp-config.json文件。 你可以通过设置以下环境变量来启用或禁用特定工具:
概述(AI 翻译)
一个模型上下文协议(MCP)服务器,提供与 Namecheap API 集成的域管理操作。
特色
我只添加了我使用的功能,我认为允许代理注册域名并不是个好主意。完整的Namecheap API方法集可以在这里找到。
- 获取域名列表:检索您Namecheap账户中的所有域名
- 检查域名可用性:检查域名是否可供注册
- 设置自定义DNS:为你的域名配置自定义名称服务器
- 可配置工具:启用/禁用特定工具以控制光标中可用的内容
先修条件
在使用该MCP服务器之前,您需要:
- Namecheap账户要求:
- 账户下至少有20个域名
- 账户余额上有50美元
- 过去两年内花费50美元
- API 访问设置:
- 在你的Namecheap仪表盘中启用API访问
- 获取您的API密钥
- 将您的IP地址列入白名单
安装
-
克隆此仓库:
-
安装依赖:
-
建设项目:
配置
用你的Namecheap凭证创建一个.env文件:
或者参考’mcp-config。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
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
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
cd mcp-namecheap
- Install dependencies:
npm install
- Build the project:
npm run build
Configuration
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_address
Or 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=true
Usage
Running the Server
npm start
Available 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)
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"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"
}
}
}
}