Whois MCP
Whois MCP
用于 whois 查询的模型上下文协议服务器。
光标IDE演示
https://github.com/user-attachments/assets/57a82adc-3f30-453f-aabd-7138c2e6a21d
Claude 桌面演示
https://github.com/user-attachments/assets/d30a1f45-fdaf-4280-80f2-d5d4fc9743b1
概述
该 MCP 服务器允许 Claude Desktop、Cursor、Windsurf 等 AI 代理执行 WHOIS 查找并检索域详细信息。
**用途:**您可以直接让人工智能检查域名是否可用、所有者、注册时间以及其他重要信息。无需打开浏览器进行搜索。
什么是 WHOIS 查询? WHOIS 查询是指查询 WHOIS 数据库以获取域名、IP 地址或自治系统的注册详细信息的过程。它可以帮助用户查找域名所有者、注册时间、到期时间以及其他重要信息。
WHOIS 查询可以提供哪些信息?
当您执行 WHOIS 查询时,您可以检索如下详细信息:
域名 – 查询的具体域名
注册商名称 – 管理域名注册的公司(例如 GoDaddy、Namecheap)
注册人详细信息 – 域名所有者的姓名、组织和联系方式(除非受 WHOIS 隐私保护)
注册和到期日期 – 域名注册时间和到期时间
名称服务器 – 域正在使用的 DNS 服务器
域名状态 – 有效、已过期、已锁定或待删除
联系信息 – 管理、技术和计费联系人(如果未隐藏)
Related MCP server: Whodis MCP Server
可用工具
工具 | 描述 |
| 查找域名的 whois 信息 |
| 查找有关顶级域名 (TLD) 的 whois 信息 |
| 查找有关 IP 的 whois 信息 |
| 查找有关自治系统编号 (ASN) 的 whois 信息 |
与游标一起使用
安装 - 全球
使用 npx 运行 MCP 服务器:
npx -y @bharathvaj/whois-mcp@latest在你的 Cursor IDE 中
前往
Cursor Settings>MCP点击
+ Add New MCP Server填写表格:
名称:
Whois Lookup(或您喜欢的任何名称)类型:
command命令:
npx -y @bharathvaj/whois-mcp@latest
安装 - 特定于项目
将.cursor/mcp.json文件添加到您的项目:
{
"mcpServers": {
"whois": {
"command": "npx",
"args": [
"-y",
"@bharathvaj/whois-mcp@latest"
]
}
}
}用法
配置完成后,whois 工具将自动提供给 Cursor AI 代理。您可以:
该工具将在 MCP 设置中的
Available Tools下列出代理将在相关时自动使用它
您可以明确要求代理发送通知
与 Roo 代码一起使用
通过单击 Roo Code 设置中的“编辑 MCP 设置”或使用 VS Code 命令面板中的“Roo Code:打开 MCP 配置”命令来访问 MCP 设置。
{
"mcpServers": {
"whois": {
"command": "npx",
"args": [
"-y",
"@bharathvaj/whois-mcp@latest"
]
}
}
}Roo Code 的 AI 代理将可以使用 whois 功能
发展
# Install dependencies
pnpm install
# Build
pnpm build
调试服务器
要调试您的服务器,您可以使用MCP Inspector 。
首先搭建服务器
pnpm build在终端中运行以下命令:
# Start MCP Inspector and server with all tools
npx @modelcontextprotocol/inspector node dist/index.js执照
Available Tools
4 toolswhois_asC
Looksup whois information about the Autonomous System Number (ASN)
| Name | Required | Description | Default |
|---|---|---|---|
| asn | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full burden for behavioral disclosure. It states the tool performs a lookup but doesn't describe what the lookup entails (e.g., external API call, rate limits, authentication needs, data freshness, or error conditions). For a tool that likely queries external whois databases, this lack of operational context is a significant gap.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that directly states the tool's function without unnecessary words. It's appropriately sized for a simple lookup tool and front-loads the key information. There's no wasted verbiage or redundant phrasing.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's likely complexity (external whois query), absence of annotations, and no output schema, the description is insufficient. It doesn't cover what information is returned, how results are structured, potential limitations, or error handling. For a network lookup tool that agents might use in troubleshooting scenarios, more contextual information would be valuable.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 0% description coverage, but the tool has only one required parameter (asn). The description adds minimal semantics by indicating the parameter should be an 'Autonomous System Number (ASN)', which aligns with the schema's pattern constraint. However, it doesn't explain the ASN format beyond what the regex implies, nor does it provide examples or usage context for the parameter.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Looksup') and resource ('whois information about the Autonomous System Number (ASN)'), making the purpose understandable. It doesn't explicitly differentiate from sibling tools like whois_domain or whois_ip, but the focus on ASN provides implicit distinction. The description avoids tautology by specifying what information is retrieved rather than just restating the tool name.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus its siblings (whois_domain, whois_ip, whois_tld). It doesn't mention alternatives, prerequisites, or exclusions. The only implied usage is for ASN lookups, but without explicit comparison to other whois tools, the agent must infer the distinction based on parameter types alone.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
whois_domainC
Looksup whois information about the domain
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It states the action ('looksup') but doesn't describe what information is returned, potential rate limits, error conditions, or authentication requirements. This leaves significant gaps for a tool that presumably queries external WHOIS data.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence with zero wasted words. It's appropriately sized for a simple lookup tool and front-loads the essential information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a tool with no annotations, no output schema, and 0% schema description coverage, the description is insufficient. It doesn't explain what WHOIS information is returned, how results are structured, or any behavioral constraints. The agent would struggle to use this tool effectively without additional context.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema has 0% description coverage, so the single 'domain' parameter is completely undocumented in the schema. The description mentions 'domain' but provides no additional semantics about what constitutes a valid domain (e.g., format examples, TLD requirements, handling of subdomains). This doesn't adequately compensate for the schema gap.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb ('looksup') and resource ('whois information about the domain'), making the purpose understandable. However, it doesn't explicitly distinguish this tool from its siblings (whois_as, whois_ip, whois_tld) beyond the domain focus, which prevents a perfect score.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus its siblings. It doesn't mention alternatives like whois_ip for IP addresses or whois_as for autonomous systems, leaving the agent to infer usage from the tool name alone.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
whois_ipC
Looksup whois information about the IP
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool performs a WHOIS lookup, implying a read-only operation, but doesn't clarify aspects like rate limits, authentication needs, error handling, or what specific information is returned. For a tool with no annotation coverage, this leaves significant gaps in understanding its behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that directly states the tool's purpose without unnecessary words. It's front-loaded with the core action, making it easy to parse. However, it could be slightly more structured to include key details, but it avoids redundancy and stays focused.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (a network lookup tool with no annotations, no output schema, and low schema coverage), the description is incomplete. It doesn't address what information is returned, potential errors, or how it differs from sibling tools. For a tool that likely returns structured data, more context is needed to guide the agent effectively.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 1 parameter with 0% description coverage, so the schema provides no semantic details. The description adds minimal value by implying the parameter is an IP address, but doesn't explain format expectations (e.g., IPv4 vs. IPv6) or usage context. Since schema coverage is low, the description partially compensates but not fully, aligning with the baseline for moderate coverage gaps.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb ('looksup') and resource ('whois information about the IP'), making the purpose understandable. However, it doesn't explicitly differentiate from sibling tools like whois_as, whois_domain, or whois_tld, which appear to handle different types of WHOIS queries. The description is specific enough to convey the tool's function but lacks sibling distinction.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools or suggest scenarios where whois_ip is appropriate compared to whois_domain or whois_as. There's no indication of prerequisites, limitations, or context for usage, leaving the agent with minimal direction.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
whois_tldC
Looksup whois information about the Top Level Domain (TLD)
| Name | Required | Description | Default |
|---|---|---|---|
| tld | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full burden but offers minimal behavioral context. It doesn't disclose whether this is a read-only lookup, requires authentication, has rate limits, returns structured data, or handles errors. 'Looks up' suggests a query operation but lacks operational details.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence with no wasted words. It's front-loaded with the core purpose, making it easy to parse quickly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no annotations, 0% schema coverage, no output schema, and a sibling-rich context, the description is inadequate. It doesn't explain what whois information is returned, error conditions, or how it differs from other whois tools, leaving significant gaps for agent understanding.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate but doesn't. It mentions 'TLD' generally but provides no details about the 'tld' parameter format (e.g., valid TLD strings like '.com', case sensitivity, without leading dot). The schema only specifies it's a required string with minLength 1.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('looks up') and target resource ('whois information about the Top Level Domain (TLD)'), making the purpose immediately understandable. It doesn't explicitly differentiate from sibling tools like whois_domain or whois_ip, which would require a 5.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool versus its siblings (whois_as, whois_domain, whois_ip). The description implies it's for TLDs specifically, but doesn't clarify use cases, prerequisites, or alternatives.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
4 tool updates
- First observed
whois_as - First observed
whois_domain - First observed
whois_ip - First observed
whois_tld
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose targeting a specific resource type: ASN, domain, IP, and TLD. The naming directly indicates the target, making it impossible to confuse which tool to use for a given query.
All tools follow a perfect verb_noun pattern with 'whois_' prefix followed by the resource type (as, domain, ip, tld). This consistent naming scheme makes the tool set predictable and easy to understand.
Four tools is ideal for this server's purpose of providing WHOIS lookups for different internet resource types. Each tool covers a distinct category, making the set well-scoped without being too sparse or bloated.
The tool set comprehensively covers the WHOIS domain by providing lookups for all major internet resource types: autonomous systems, domains, IP addresses, and top-level domains. There are no apparent gaps in coverage for this purpose.
Maintenance
Related MCP Connectors
Domain intel for AI agents: RDAP registration, DNS, email deliverability, tech stack.
Domain intel for AI agents: RDAP registration, DNS, email deliverability, tech stack.
Domain search, registration, DNS, marketplace, and checkout with your AI agent.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI agents to perform WHOIS lookups to retrieve domain registration details, including ownership, registration dates, and availability status without requiring browser searches.443 npm21MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables AI assistants to check domain name availability using WHOIS lookups.12 npm4ISC

mcp-ip2whoisofficial
AlicenseAqualityBmaintenanceA 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.21MIT- AlicenseAqualityFmaintenanceA 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.317 npmMIT