@bharathvaj/whois-mcp

中文文档
1.0.1发布于 2025/03/06MITES Module近 30 天下载 1739

MCP to lookup whois information

原始使用文档
文档目录7 节
  1. Overview
  2. Available Tools
  3. Using with Cursor
  4. Using with Roo Code
  5. Development
  6. Debugging the Server
  7. License

Whois MCP

Model Context Protocol server for whois lookups.

Demo

https://github.com/user-attachments/assets/57a82adc-3f30-453f-aabd-7138c2e6a21d

Overview

This MCP server allows AI agents like Claude Desktop, Cursor, Windsurf,.. etc to perform WHOIS lookups and retrieve domain details.

Purpose You can directly ask the AI to check if a domain is available, who owns it, when it was registered, and other important details. No need to go to browser and search.

What is a WHOIS Lookup? A WHOIS lookup is the process of querying a WHOIS database to retrieve registration details about a domain name, IP address, or autonomous system. It helps users find out who owns a domain, when it was registered, when it expires, and other important details.

What Information Can a WHOIS Lookup Provide?

When you perform a WHOIS lookup, you can retrieve details such as:

  • Domain Name – The specific domain queried
  • Registrar Name – The company managing the domain registration (e.g., GoDaddy, Namecheap)
  • Registrant Details – The name, organization, and contact details of the domain owner (unless protected by WHOIS privacy)
  • Registration & Expiry Date – When the domain was registered and when it will expire
  • Name Servers – The DNS servers the domain is using
  • Domain Status – Active, expired, locked, or pending deletion
  • Contact Information – Administrative, technical, and billing contacts (if not hidden)

Available Tools

ToolDescription
whois_domainLooksup whois information about the domain
whois_tldLooksup whois information about the Top Level Domain (TLD)
whois_ipLooksup whois information about the IP
whois_asLooksup whois information about the Autonomous System Number (ASN)

Using with Cursor

Installation - Globally

Run the MCP server using npx:

npx -y @bharathvaj/whois-mcp@latest

In your Cursor IDE

  1. Go to Cursor Settings > MCP
  2. Click + Add New MCP Server
  3. Fill in the form:
    • Name: Whois Lookup (or any name you prefer)
    • Type: command
    • Command: npx -y @bharathvaj/whois-mcp@latest

Installation - Project-specific

Add an .cursor/mcp.json file to your project:

{
  "mcpServers": {
    "whois": {
      "command": "npx",
      "args": [
        "-y",
        "@bharathvaj/whois-mcp@latest"
      ]
    }
  }
}

Usage

Once configured, the whois tools will be automatically available to the Cursor AI Agent. You can:

  1. The tool will be listed under Available Tools in MCP settings
  2. Agent will automatically use it when relevant
  3. You can explicitly ask Agent to send notifications

Using with Roo Code

Access the MCP settings by clicking “Edit MCP Settings” in Roo Code settings or using the “Roo Code: Open MCP Config” command in VS Code's command palette.

{
  "mcpServers": {
    "whois": {
      "command": "npx",
      "args": [
        "-y",
        "@bharathvaj/whois-mcp@latest"
      ]
    }
  }
}
  1. The whois capabilities will be available to Roo Code's AI agents

Development

# Install dependencies
pnpm install

# Build
pnpm build

Debugging the Server

To debug your server, you can use the MCP Inspector.

First build the server

pnpm build

Run the following command in your terminal:

# Start MCP Inspector and server with all tools
npx @modelcontextprotocol/inspector node dist/index.js

License

MIT

版本与发布记录

@bharathvaj/whois-mcp 共发布 3 个版本,首次发布于 2025/03/06;过去 12 个月发布了 0 个版本。

版本发布日期距今
1.0.1latest2025/03/061.7 年前
1.0.02025/03/061.7 年前
0.0.12025/03/061.7 年前

关于 @bharathvaj/whois-mcp 的常见问题

@bharathvaj/whois-mcp 是什么?

MCP to lookup whois information

如何安装 @bharathvaj/whois-mcp?

在项目目录运行 npm install @bharathvaj/whois-mcp,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 whois-mcp,可以用 npx whois-mcp 直接运行。

@bharathvaj/whois-mcp 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/bharathvaj__whois-mcp 是否存在。

@bharathvaj/whois-mcp 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@bharathvaj/whois-mcp 可以商用吗?

@bharathvaj/whois-mcp 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@bharathvaj/whois-mcp 的下载量有多少?

根据 npm 官方下载统计,@bharathvaj/whois-mcp 在 2026/10/08 – 2026/11/06 这 30 天内被下载 1,739 次,日均约 58 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@bharathvaj/whois-mcp 还在维护吗?

最新版本 1.0.1 发布于 2025/03/06(1.7 年前);至今共发布 3 个版本,其中过去 12 个月发布了 0 个;首次发布于 2025/03/06。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。