by bharathvaj-ganesan
Whois-mcp is an MCP (Model Context Protocol) server that enables AI agents to perform WHOIS lookups for domains, IPs, ASNs, and TLDs.
Whois-mcp is a Model Context Protocol (MCP) server designed to allow AI agents, such as Claude Desktop, Cursor, and Windsurf, to perform WHOIS lookups. This eliminates the need for users to manually search for domain details in a browser, enabling AI to directly retrieve information about domain availability, ownership, registration dates, and other pertinent details.
Whois-mcp can be used with AI development environments like Cursor and Roo Code.
Installation - Globally (Cursor IDE):
npx -y @bharathvaj/whois-mcp@latest
.Cursor Settings
> MCP
.+ Add New MCP Server
.Whois Lookup
, Type: command
, and Command: npx -y @bharathvaj/whois-mcp@latest
.Installation - Project-specific (Cursor IDE & Roo Code):
Add an .cursor/mcp.json
file to your project (for Cursor) or configure in Roo Code settings:
{
"mcpServers": {
"whois": {
"command": "npx",
"args": [
"-y",
"@bharathvaj/whois-mcp@latest"
]
}
}
}
Once configured, the WHOIS tools will be automatically available to the AI agent.
Whois-mcp provides several tools for comprehensive WHOIS lookups:
whois_domain
: Looks up WHOIS information for a specific domain.whois_tld
: Looks up WHOIS information for a Top Level Domain (TLD).whois_ip
: Looks up WHOIS information for an IP address.whois_as
: Looks up WHOIS information for an Autonomous System Number (ASN).Q: What is a WHOIS lookup? A: 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.
Q: What information can a WHOIS lookup provide? A: A WHOIS lookup can provide details such as: * Domain Name * Registrar Name * Registrant Details (unless protected by WHOIS privacy) * Registration & Expiry Date * Name Servers * Domain Status (Active, expired, locked, or pending deletion) * Contact Information (Administrative, technical, and billing contacts, if not hidden)
Q: How can I debug the Whois-mcp server?
A: You can debug the server using the MCP Inspector. First, build the server (pnpm build
), then run npx @modelcontextprotocol/inspector node dist/index.js
in your terminal.
Model Context Protocol server for whois lookups.
Cursor IDE Demo
https://github.com/user-attachments/assets/57a82adc-3f30-453f-aabd-7138c2e6a21d
Claude Desktop Demo
https://github.com/user-attachments/assets/d30a1f45-fdaf-4280-80f2-d5d4fc9743b1
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:
Tool | Description |
---|---|
whois_domain |
Looksup whois information about the domain |
whois_tld |
Looksup whois information about the Top Level Domain (TLD) |
whois_ip |
Looksup whois information about the IP |
whois_as |
Looksup whois information about the Autonomous System Number (ASN) |
Installation - Globally
Run the MCP server using npx:
npx -y @bharathvaj/whois-mcp@latest
In your Cursor IDE
Cursor Settings
> MCP
+ Add New MCP Server
Whois Lookup
(or any name you prefer)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:
Available Tools
in MCP settingsAccess 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"
]
}
}
}
# Install dependencies
pnpm install
# Build
pnpm build
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
Please log in to share your review and rating for this MCP.