Whodis MCP Server

Whodis MCP Server

A Model Context Protocol server that enables AI assistants to check domain name availability using WHOIS lookups.

Category
Visit Server

README

Whodis MCP Server

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.


Overview

What is MCP?

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.

Features

  • Domain Availability Checks: Uses the whoiser library to perform WHOIS lookups and determine if domains appear to be available or registered.
  • MCP Tool Integration: Exposes a check-domain-availability tool for MCP clients (like AI assistants).
  • CLI Interface: Includes a command-line interface (whodis-mcp-server check-domain-availability ...) for direct usage and testing.
  • Structured Logging: Provides detailed logging for debugging and monitoring.
  • Configurable: Supports configuration via environment variables or .env files.

Getting Started

Prerequisites

  • Node.js (>=18.x): Download
  • Git: For version control

Step 1: Clone and Install

# Clone the repository
git clone https://github.com/vinsidious/whodis-mcp-server.git
cd whodis-mcp-server

# Install dependencies
npm install

Step 2: Run Development Server

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.


Step 3: Test the Tool via CLI

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.


Architecture

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

Development Guide

Development Scripts

# 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...>

Testing

# Run all tests
npm test

# Generate test coverage report
npm run test:coverage

Code Quality

# Lint code
npm run lint

# Format code with Prettier
npm run format

MCP Tool: check-domain-availability

  • PURPOSE: Checks the availability of one or more domain names.
  • INPUT: An array of domain names.
    {
    	"domains": ["example.com", "another-domain.net"]
    }
    
  • OUTPUT: A JSON object containing two arrays: available (domains that appear to be unregistered) and unavailable (domains that appear to be registered).
    {
    	"available": ["likely-available-domain123.xyz"],
    	"unavailable": ["google.com"]
    }
    
    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.
  • WHEN TO USE: Use this tool when you need to determine if specific domain names can potentially be registered.

Debugging

MCP Inspector

Access the visual MCP Inspector to test the tool and view request/response details:

  1. Run npm run dev:server
  2. Open http://localhost:5173 in your browser
  3. Use the UI to call the check-domain-availability tool.

Server Logs

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.


Publishing

To publish updates to npm:

  1. Ensure changes are committed and follow conventional commit messages (e.g., feat:, fix:, chore:).
  2. Push changes to the main branch.
  3. The ci-semantic-release.yml workflow will automatically build, test, version, and publish the package to npm.

License

ISC License

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured