WHOIS — Claude Code MCP server: what it does, how to install
Fetches WHOIS and RDAP records for domains, IP ranges, and ASNs inside your AI coding workflow. It eliminates the need for separate terminal lookups.
claude mcp add --transport http whois https://whois.ddnsip.cn/mcpWhat WHOIS does
The server is built in Go. It connects an agent to WHOIS and RDAP protocols over HTTP, retrieving registration metadata for top-level domains, CIDR prefixes, and autonomous system numbers. Because of ICANN guidelines and GDPR rules, the tool strips out personal phone numbers, physical addresses, and owner emails from the output.
You can connect directly to the public demo URL without running local services. If you choose to host the Go application yourself via Docker, it uses in-memory caching by default and supports an optional Redis instance. When running locally without a reverse proxy, you must enable localhostProtection in config.yaml to defend the /mcp endpoint against DNS rebinding.
What it helps with
- inspect domain expiration dates and status codes
- look up CIDR prefixes and IP network assignments
- fetch registration metadata for an autonomous system number
- query RDAP records without shell-level whois packages
Example prompts for the agent
- Check the registration status and expiry for github.com.
- Find the network owner for IPv4 address 1.1.1.1.
- Look up RDAP information for autonomous system AS13335.
How to install WHOIS
Platform CLI: remote server
claude mcp add --transport http whois https://whois.ddnsip.cn/mcpPlatform CLI: remote server
codex mcp add whois --url https://whois.ddnsip.cn/mcpConfig file
{
"mcpServers": {
"whois": {
"url": "https://whois.ddnsip.cn/mcp"
}
}
}Config file
{
"servers": {
"whois": {
"type": "http",
"url": "https://whois.ddnsip.cn/mcp"
}
}
}Platform CLI: remote server
gemini mcp add -t http whois https://whois.ddnsip.cn/mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about WHOIS
How to install WHOIS in Claude Code?
Run claude mcp add --transport http whois https://whois.ddnsip.cn/mcp in your terminal to register the HTTP endpoint.
What does the WHOIS MCP server do?
It queries domain registries and RDAP services to supply your AI agent with network ownership details and routing metadata.
Does the server disclose personal registrant contact details?
No. In compliance with ICANN policies and GDPR regulations, the tool redacts phone numbers, postal addresses, and personal email addresses.