Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-kincaidyang-whois": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://whois.ddnsip.cn/mcp"
]
}
}
}
Restart Claude Desktop to activate the new server. If the server uses OAuth (not known from registry metadata), mcp-remote opens a browser to sign in on first start and caches tokens in ~/.mcp-auth.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-kincaidyang-whois": {
"url": "https://whois.ddnsip.cn/mcp"
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-kincaidyang-whois": {
"type": "http",
"url": "https://whois.ddnsip.cn/mcp"
}
}
}
The server will be available in the next Claude Code session. If the server uses OAuth, run /mcp inside Claude Code to authenticate.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-kincaidyang-whois": {
"type": "http",
"url": "https://whois.ddnsip.cn/mcp"
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-kincaidyang-whois": {
"serverUrl": "https://whois.ddnsip.cn/mcp"
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-kincaidyang-whois": {
"type": "streamableHttp",
"url": "https://whois.ddnsip.cn/mcp"
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| WHOIS_PORT | No | 服务监听端口 Default: 8043 |
| WHOIS_REDIS_DB | No | Redis数据库编号 Default: 0 |
| WHOIS_AUTH_KEYS | No | API密钥,逗号分隔 |
| WHOIS_LOG_LEVEL | No | 日志级别:debug、info、warn、error Default: info |
| WHOIS_REDIS_TLS | No | true/1启用Redis TLS Default: false |
| WHOIS_RATE_LIMIT | No | 最大并发请求数 Default: 100 |
| WHOIS_REDIS_ADDR | No | Redis地址;显式设为空则禁用Redis仅用内存缓存 |
| WHOIS_PROXY_SERVER | No | 代理服务器地址,空则不使用代理 |
| WHOIS_BATCH_ENABLED | No | true/1开启批量查询端点 Default: false |
| WHOIS_REQUIRE_REDIS | No | true/1时Redis不可用则启动失败 Default: false |
| WHOIS_PROXY_PASSWORD | No | 代理密码 |
| WHOIS_PROXY_SUFFIXES | No | 走代理的TLD列表,逗号分隔(all表示全部) |
| WHOIS_PROXY_USERNAME | No | 代理用户名 |
| WHOIS_REDIS_PASSWORD | No | Redis密码 |
| WHOIS_BATCH_MAX_ITEMS | No | 单批最多查询条数 Default: 10 |
| WHOIS_MEMORY_MAX_SIZE | No | 内存缓存最大条目数 Default: 10000 |
| WHOIS_CACHE_EXPIRATION | No | 缓存过期时间(秒) Default: 3600 |
| WHOIS_BOOTSTRAP_INTERVAL | No | IANA RDAP列表刷新间隔(秒);配置文件示例为86400 Default: 0 |
| WHOIS_MEMORY_CLEAN_INTERVAL | No | 内存缓存清理间隔(秒) Default: 300 |
| WHOIS_REDIS_TLS_SKIP_VERIFY | No | true/1跳过证书校验(不推荐) Default: false |
| WHOIS_MCP_LOCALHOST_PROTECTION | No | true/1启用/mcp的DNS rebinding保护 Default: false |
| WHOIS_NEGATIVE_CACHE_EXPIRATION | No | 负向缓存时间(秒),负数禁用 Default: 60 |