
Whodis
STDIOMCP server for domain availability checks using WHOIS lookups.
MCP server for domain availability checks using WHOIS lookups.
This project provides a Model Context Protocol (MCP) server specifically designed to check the availability of domain names using WHOIS lookups. It allows AI assistants or other tools to integrate domain availability checks into their workflows.
Model Context Protocol (MCP) is an open standard that allows AI systems to securely and contextually connect with external tools and data sources. This server implements the MCP standard to provide domain availability information.
whoiser
library to perform WHOIS lookups and determine if domains appear to be available or registered.check-domain-availability
tool for MCP clients (like AI assistants).whodis-mcp-server check-domain-availability ...
) for direct usage and testing..env
files.# Clone the repository git clone https://github.com/vinsidious/whodis-mcp-server.git cd whodis-mcp-server # Install dependencies npm install
Start the server in development mode to interact with it via the MCP Inspector:
npm run dev:server
This starts the MCP server and enables the MCP Inspector at http://localhost:5173, where you can test the check-domain-availability
tool.
Run the domain availability checker directly from the command line:
# Using CLI in development mode npm run dev:cli -- check-domain-availability example.com non-existent-domain-12345.org # Or run the built version npm run start:cli -- check-domain-availability google.com my-unique-idea.dev
The CLI will output a JSON object containing available
and unavailable
arrays.
This server follows a layered architecture:
src/
├── cli/ # Command-line interface logic
├── controllers/ # Business logic for domain checks
├── services/ # Interaction with the whoiser library
├── tools/ # MCP tool definition and argument validation
├── types/ # Shared type definitions
├── utils/ # Shared utilities (logging, errors, etc.)
└── index.ts # Main entry point for server and CLI
# Start MCP server in development mode (with MCP Inspector) npm run dev:server # Run CLI commands in development mode npm run dev:cli -- check-domain-availability <domains...> # Build the project for production npm run build # Start MCP server in production mode (requires MCP client) npm run start:server # Run CLI commands using the production build npm run start:cli -- check-domain-availability <domains...>
# Run all tests npm test # Generate test coverage report npm run test:coverage
# Lint code npm run lint # Format code with Prettier npm run format
check-domain-availability
{ "domains": ["example.com", "another-domain.net"] }
available
(domains that appear to be unregistered) and unavailable
(domains that appear to be registered).
Note: Availability checks depend on WHOIS server responses and might not be 100% accurate for all TLDs or due to temporary network issues. Domains where lookup failed are omitted.{ "available": ["likely-available-domain123.xyz"], "unavailable": ["google.com"] }
Access the visual MCP Inspector to test the tool and view request/response details:
npm run dev:server
check-domain-availability
tool.Enable debug logs for detailed output:
# Set environment variable DEBUG=true npm run dev:server # Or set DEBUG=true in your .env file
Logs are also saved to files in ~/.mcp/data/whodis-mcp-server.*.log
.
To publish updates to npm:
feat:
, fix:
, chore:
).main
branch.ci-semantic-release.yml
workflow will automatically build, test, version, and publish the package to npm.