Logo vun Whodis (Domain Availability Checker)

Whodis (Domain Availability Checker)

Communautéit
vinsidious

MCP Server for checking the availability of domain names using WHOIS lookups

Editeurvinsidious
Repositorywhodis-mcp-server
SproochTypeScript
Forks
2
Stären
4
Disponibel Tools
1
Transporttypstdio
Kategorien
Linken
  • Tools mat KI-Workflows verbannen

    Whodis (Domain Availability Checker) stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 1 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    4 Stären an 2 Forks aus dem verlinkte Repository.

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

bash
# 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:

bash
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:

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

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

bash
# Run all tests
npm test

# Generate test coverage report
npm run test:coverage

Code Quality

bash
# 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.
    json
    {
    	"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).
    json
    {
    	"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:

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

Installatioun

TypingMind
Viraussetzungen:

Node.js 18+

{
  "mcpServers": {
    "whodis-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "whodis-mcp-server"
      ]
    }
  }
}

Disponibel Tools

  • check-domain-availability

    PURPOSE: Checks the availability of one or more domain names. INPUT: An array of domain names. OUTPUT: A JSON object containing two arrays: '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. WHEN TO USE: Use this tool when you need to determine if specific domain names can potentially be registered. EXAMPLE: { "domains": ["google.com", "example-domain-that-is-likely-free-12345.com"] }

Whodis (Domain Availability Checker) MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal Whodis (Domain Availability Checker) verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

Whodis (Domain Availability Checker) als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu Whodis (Domain Availability Checker) an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "whodis-domain-availability-checker": {
      "command": "npx",
      "args": [
        "-y",
        "whodis-mcp-server"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu Whodis (Domain Availability Checker). Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu Whodis (Domain Availability Checker).
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat Whodis (Domain Availability Checker)?
Whodis (Domain Availability Checker)
Jo. Ech hunn et gelies.
Dat hunn ech mat Whodis (Domain Availability Checker) fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server Whodis (Domain Availability Checker) benotzt?

Whodis (Domain Availability Checker) ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech Whodis (Domain Availability Checker) MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir Whodis (Domain Availability Checker) mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat Whodis (Domain Availability Checker) MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann Whodis (Domain Availability Checker) verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech Whodis (Domain Availability Checker) MCP mat TypingMind?

Whodis (Domain Availability Checker) leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt Whodis (Domain Availability Checker) MCP an TypingMind zur Verfügung?

Whodis (Domain Availability Checker) stellt 1 MCP-Tools zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir Whodis (Domain Availability Checker) MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann Whodis (Domain Availability Checker) eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇