Skip to content

A Model Context Protocol (MCP) server that provides Hope Domain API services, including domain WHOIS queries and AI-driven domain recommendations.

License

Notifications You must be signed in to change notification settings

HopeDomain/whois-mcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Hope Domain MCP Server

δΈ­ζ–‡η‰ˆζ–‡ζ‘£ | English Doc NPM Version NPM Downloads License

A Model Context Protocol (MCP) server that provides Hope Domain API services, including domain WHOIS queries and AI-driven domain recommendations.

✨ Features

πŸ” Domain WHOIS Queries

  • Single domain WHOIS queries (free)
  • Batch domain WHOIS queries (up to 1000 domains, ≀50 free)

πŸ€– AI Domain Recommendations

  • AI-driven domain suggestions based on project descriptions
  • Generate 1-50 domain recommendations per request

πŸ’° Credit Management

  • View current credit balance and account status
  • Track usage and recharge history

πŸš€ Zero Warnings

  • Uses Node.js native fetch API
  • Zero dependency warnings, clean installation experience

πŸ“¦ Installation Methods

⚑ Method 1: One-Click Installation (Recommended for Cursor Users)

Install MCP Server

🎯 Features:

  • ⚑ Zero Configuration - Click to use, no manual setup required
  • πŸ”„ Auto Updates - Always uses the latest version
  • πŸš€ Instant Deployment - No local installation needed
  • ✨ Completely Warning-Free - Clean runtime environment

βš™οΈ Method 2: Standard Configuration (Universal)

NPX Method (Recommended)

{
  "mcpServers": {
    "hopedomain-mcp": {
      "command": "npx",
      "args": ["hopedomain-mcp@latest"],
      "env": {
        "HOPE_DOMAIN_API_KEY": "sk-your_api_key_here"
      }
    }
  }
}

🎯 Features:

  • πŸ“¦ No Installation Required - Run directly via npx
  • πŸ”„ Auto Updates - @latest ensures the latest version
  • 🌐 Cross-Platform Compatible - Supports all MCP clients
  • ⚑ Lightweight & Fast - Only requires API key configuration
  • ✨ Zero Warning Output - Completely clean runtime experience

Local Development Installation

  1. Clone the repository:

    git clone https://github.com/HopeDomain/whois-mcp.git
    cd whois-mcp
  2. Install dependencies:

    npm install
  3. Build the project:

    npm run build

πŸ“ Configuration File Templates

We provide multiple pre-configured templates in the configs/ directory:

  • πŸ“„ configs/claude-desktop.json - Claude Desktop standard configuration
  • πŸ“„ configs/cursor-mcp.json - Cursor MCP configuration
  • πŸ“„ configs/local-dev.json - Local development configuration

Simply copy the corresponding configuration to your MCP client configuration file!

πŸš€ Quick Start

🎯 Step 1: Choose Installation Method

  • Cursor Users β†’ Click the one-click installation button ⚑
  • Other Users β†’ Use NPX standard configuration βš™οΈ

πŸ”‘ Step 2: Get API Key

  1. Visit Hope Domain Official Website to register/login
  2. Go to Console β†’ API Keys page
  3. Click the "Create API Key" button
  4. Copy the generated API key (format: sk-xxxxxxxxxx)

βš™οΈ Step 3: Configure API Key

Environment Variable Method:

export HOPE_DOMAIN_API_KEY="sk-your_actual_api_key_here"

Or set directly in configuration file:

{
  "env": {
    "HOPE_DOMAIN_API_KEY": "sk-your_actual_api_key_here"
  }
}

✨ Step 4: Start Using!

Now you can use these powerful tools:

  • πŸ” whois_single - Single domain WHOIS query
  • πŸ“Š whois_batch - Batch domain queries (up to 1000)
  • πŸ€– ai_domain_recommend - AI domain recommendations
  • πŸ’° get_user_credits - Account credit query

βš™οΈ Configuration Guide

πŸ” Environment Variable Configuration

Method 1: System Environment Variables

export HOPE_DOMAIN_API_KEY="sk-your_actual_api_key_here"
export HOPE_DOMAIN_BASE_URL="https://hopedomain.com/api"  # Optional, defaults to production API

Method 2: Project .env File

HOPE_DOMAIN_API_KEY=sk-your_actual_api_key_here
HOPE_DOMAIN_BASE_URL=https://hopedomain.com/api

πŸ“‹ Different Client Configuration Examples

Claude Desktop

πŸ“ Config File: ~/.config/claude/claude_desktop_config.json (Linux/Mac)
πŸ“ Config File: %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "hopedomain-mcp": {
      "command": "npx",
      "args": ["hopedomain-mcp@latest"],
      "env": {
        "HOPE_DOMAIN_API_KEY": "sk-your_actual_api_key_here"
      }
    }
  }
}

Cursor IDE

πŸ“ Config Location: Settings β†’ Extensions β†’ MCP

{
  "mcpServers": {
    "hopedomain-mcp": {
      "command": "npx",
      "args": ["hopedomain-mcp@latest"],
      "env": {
        "HOPE_DOMAIN_API_KEY": "${HOPE_DOMAIN_API_KEY}"
      }
    }
  }
}

Local Development

Use Case: Source code development, debugging, custom modifications

{
  "mcpServers": {
    "hopedomain-mcp": {
      "command": "node",
      "args": ["./dist/index.js"],
      "cwd": "/path/to/whois-mcp",
      "env": {
        "HOPE_DOMAIN_API_KEY": "sk-your_actual_api_key_here",
        "HOPE_DOMAIN_BASE_URL": "https://hopedomain.com/api"
      }
    }
  }
}

πŸ”§ API Reference

WHOIS Queries

Single Domain WHOIS Query

whois_single(domain: string)

Query WHOIS information for a single domain (free).

Batch Domain WHOIS Query

whois_batch(domains: string[], format?: "json")

Query WHOIS information for multiple domains at once (up to 1000 domains, ≀50 free).

AI Domain Recommendations

AI-Powered Domain Recommendations

ai_domain_recommend(description: string, count?: number)

Get AI-powered domain name recommendations based on project description (1-50 recommendations).

Account Management

Get User Credits

get_user_credits()

Get current user credit balance and status.

πŸ“ Examples

Basic WHOIS Query

// Query a single domain
const result = await whois_single("example.com");
console.log(result);

Batch WHOIS Query

// Query multiple domains
const domains = ["example.com", "google.com", "github.com"];
const results = await whois_batch(domains);
console.log(results);

AI Domain Recommendations

// Get domain recommendations for a project
const recommendations = await ai_domain_recommend(
  "A modern e-commerce platform for sustainable products",
  10
);
console.log(recommendations);

Check Account Credits

// Check your account balance
const credits = await get_user_credits();
console.log(credits);

🀝 Contributing

We welcome contributions! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ”— Links

⭐ Support

If you find this project helpful, please give it a star on GitHub! Your support motivates us to continue improving and adding new features.

About

A Model Context Protocol (MCP) server that provides Hope Domain API services, including domain WHOIS queries and AI-driven domain recommendations.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published