Connects Claude to the IP2WHOIS API for domain registration lookups and reverse IP searches. Exposes two main operations: get_whois pulls complete WHOIS records including registrar details, nameservers, expiry dates, and registrant info for any domain, while get_hosted_domains returns all domains hosted on a given IP address. Requires an API key from IP2Location.io, which gives you 500 free queries monthly. Reach for this when you need Claude to check domain ownership, verify registration status, investigate who's behind a website, or see what else is sharing hosting infrastructure. Built on FastMCP and runs via uvx, so setup is straightforward if you already have the MCP toolchain installed.
A Model Context Protocol (MCP) server that provides comprehensive WHOIS lookup capabilities using the IP2WHOIS API. This server allows AI agents to query domain registration details, including expiry dates, registrar information, and registrant data. This server also supports query on hosted domains by IP address.
Domain Lookup: Retrieve detailed WHOIS data for any domain name.
Hosted Domains Lookup: Retrieve hosted domains data for any IP address.
Comprehensive Data: Includes domain age, nameservers, registrar info, and administrative/billing contact details.
FastMCP Framework: Built using the high-performance FastMCP Python framework.
This MCP server requires an API key to work. You can sign up for a free API key and enjoy up to 500 queries per month.
The setup also use uv, which can be install by following the guide.
Follow the steps to use this MCP server with Claude Desktop:
uv package manager, you can once again refer to the guide to do so.claude_desktop_config.json in your choice of editor, if you do not having one yet, follow this guide to create one.claude_desktop_config.json:{
"mcpServers": {
"ip2whois": {
"command": "uvx",
"args": ["mcp-ip2whois"],
"env": {
"IP2WHOIS_API_KEY": "<YOUR API key HERE>"
}
}
}
}
<YOUR API key HERE> in above with your actual API key.Search and tools menu.To query the WHOIS information, just enter your query about the domain in a chat in Claude Desktop. Some of the example query will be:
For instance, below is the result of the domain google.com:

To query for the hosted domains by IP address, just enter your query about the IP in a chat in Claude Desktop. Some of the example query will be:
In Claude Desktop, the model will automatically generate the output based on the result returned by IP2WHOIS MCP server.
IP2WHOIS_API_KEY
The IP2WHOIS API key, which allows you to query up to 500 per month for free and more details of the IP address. You can sign up for a free API key, or subscribe to a plan to enjoy more benefits.
get_whoisLook up WHOIS data for a domain name.
Arguments:
domain (string): The domain name to look up (e.g., google.com).Output: Returns a JSON object containing:
domain_id, status, domain_age
create_date, update_date, expire_date
registrar (name, url, etc.)
registrant (name, organization, country)
nameservers
get_hosted_domainsQuery for the list of hosted domain names by IP address.
Arguments:
ip (string): The IP address (IPv4 or IPv6) to look up.Output: Returns a JSON object containing the domains hosted on the ip address, and the total number of hosted domains found
See the LICENSE file.
IP2WHOIS_API_KEY*secretYour IP2WHOIS API key for detailed WHOIS information.