mcp-ip2whois
OfficialIP2WHOIS MCP 服务器
一个模型上下文协议 (MCP) 服务器,使用 IP2WHOIS API 提供全面的 WHOIS 查询功能。该服务器允许 AI 代理查询域名注册详情,包括过期日期、注册商信息和注册人数据。
功能
域名查询:检索任何域名的详细 WHOIS 数据。
全面数据:包括域名年龄、域名服务器、注册商信息以及行政/账单联系人详情。
FastMCP 框架:基于高性能的 FastMCP Python 框架构建。
Related MCP server: Whodis MCP Server
要求
此 MCP 服务器需要 API 密钥才能工作。您可以注册获取免费 API 密钥,每月可享受多达 500 次查询。
该设置还使用了 uv,您可以按照指南进行安装。
设置
按照以下步骤在 Claude Desktop 中使用此 MCP 服务器:
将存储库下载到本地。
设置
uv包管理器,您可以再次参考指南进行操作。确保已安装 Claude Desktop。如果尚未安装,请从此处下载(适用于 Windows 和 MacOS 用户),或按照此指南(适用于 Linux 用户)。
在您选择的编辑器中打开
claude_desktop_config.json。如果您还没有该文件,请按照此指南创建一个。将以下内容添加到您的
claude_desktop_config.json中:
{
"mcpServers": {
"ip2whois": {
"command": "uv",
"args": [
"--directory",
"/path/to/ip2whois/src",
"run",
"server.py"
],
"env": {
"IP2WHOIS_API_KEY": "<YOUR API key HERE>"
}
}
}
}请记得将
/path/to/ip2whois路径替换为您本地 IP2WHOIS MCP 服务器的实际路径。要获取您的 API 密钥,只需登录到您的仪表板即可获取。将上文中的
<YOUR API key HERE>替换为您的实际 API 密钥。保存更改后重启 Claude Desktop,您应该会在
Search and tools菜单中看到它。
使用方法
只需在 Claude Desktop 的聊天中输入关于 IP 的查询即可。以下是一些查询示例:
(domain) 的注册商是谁?
(domain) 的所有者是谁?
(domain) 的 WHOIS 信息是什么?
例如,以下是域名 google.com 的查询结果:

在 Claude Desktop 中,模型将根据 IP2WHOIS MCP 服务器返回的结果自动生成输出。
环境变量
IP2WHOIS_API_KEY
IP2WHOIS API 密钥,允许您每月免费查询多达 500 次,并获取有关 IP 地址的更多详细信息。您可以注册获取免费 API 密钥,或订阅套餐以享受更多权益。
工具
get_whois
查询域名的 WHOIS 数据。
参数:
domain(string):要查询的域名(例如google.com)。
输出:返回一个包含以下内容的 JSON 对象:
domain_id,status,domain_agecreate_date,update_date,expire_dateregistrar(名称、网址等)registrant(姓名、组织、国家)nameservers
许可证
请参阅 LICENSE 文件。
Available Tools
2 toolsget_hosted_domainsA
Lookup for the list of hosted domain names by IP address.
Args:
ip: The ip address (IPv4 or IPv6) to look up.
Returns:
A JSON string result includes the domains hosted on the ip address, and the
total number of hosted domains found.
Inputs: ip (required). Returns: result
get_whoisA
Lookup WHOIS data for a domain name. Use this tool when the user asks about
domain registration details, registrar names, expiry dates, domain ownership,
or nameservers for a specific website (e.g., 'google.com').
Args:
domain: The domain name to look up (e.g., 'example.com').
Returns:
A JSON string result includes domain age, update and expiry date, assiociated nameservers, registrar and registrant information, and admin, tech and billing information.
Inputs: domain (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: one resolves IP addresses to hosted domains, the other retrieves WHOIS data for domain names. There is no functional overlap.
Both tools follow the consistent verb_noun pattern (get_hosted_domains, get_whois), making the naming predictable and easy to understand.
With only two tools, the server feels minimal for the domain of IP and domain information. While the tools cover core functionalities, the count is at the lower boundary of what's reasonable.
The tools cover hosted domains and WHOIS lookups, but common related operations like IP geolocation, domain availability checks, or reverse IP lookups are missing. The surface is functional but not comprehensive.
Maintenance
Related MCP Connectors
WHOIS/RDAP lookup, IP geolocation and Punycode conversion. 1400+ TLDs incl. IDN. No API key.
Domain intel for AI agents: RDAP registration, DNS, email deliverability, tech stack.
Domain intel for AI agents: RDAP registration, DNS, email deliverability, tech stack.
A domain's DNS records and RDAP registration per call for AI agents. Paid per domain, no run.
1
Related MCP Servers
- AlicenseAqualityDmaintenanceA Model Context Protocol server that allows AI agents to perform WHOIS lookups, enabling users to directly ask the AI about domain availability, ownership, registration details, and other domain information.4203 npm60MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables AI assistants to check domain name availability using WHOIS lookups.11 npm4ISC
- AlicenseAqualityDmaintenanceA WHOIS domain name query server based on Model Context Protocol (MCP), supporting the resolution of over 877 top-level domains and 169 country code top-level domains, and providing comprehensive domain name registration information query functions.32Apache 2.0
- AlicenseAqualityDmaintenanceA Model Context Protocol server for performing WHOIS domain lookups directly via TCP port 43, supporting over 877 TLDs and parsing for 169 country-code TLDs.323 npmMIT