WhoisXML API MCP Server
WhoisXML API
Docker Container
WhoisXML API
Docker Container
  • Introduction
  • Installation Guide
    • Docker Installation
    • npx Installation
    • Binary Installation
  • AI Client Configuration
    • Claude Desktop
    • Claude Code
    • Cursor
    • Gemini
  • Prerequisites
    • Docker Installation & Usage
    • Node.js Usage Guide
  • Reference
    • Server Configuration Reference
    • Tools Reference
    • HTTP Server Mode
  • Troubleshooting
    • Docker Troubleshooting
    • npx Troubleshooting
    • Binary Troubleshooting
    • AI Client Troubleshooting
    • HTTP Debugging & Troubleshooting
  • Downloads

Cursor

This guide will walk you through installing Cursor, the AI-powered code editor, and configuring it to work with the WhoisXML API MCP Server.

What is Cursor?

Cursor is an AI-first code editor built on VS Code that integrates powerful AI capabilities—including native support for Model Context Protocol (MCP) servers—directly into your coding workflow. It offers:

  • AI-powered code completion and generation
  • Natural language code editing
  • Built-in chat with AI assistant
  • Native MCP server support
  • Full VS Code compatibility

System Requirements

Before installing Cursor, ensure your system meets these requirements:

  • Operating Systems: Windows 10+, macOS 10.15+, Linux (Ubuntu 18.04+)
  • Hardware: Minimum 4GB RAM (8GB recommended)
  • Storage: At least 1GB available disk space
  • Network: Active internet connection for AI features
  • Optional: Node.js 22+ LTS (required for some MCP servers)

Installing Cursor

Step 1: Download Cursor

  1. Visit the Cursor website:

    • Go to cursor.com
    • Click "Download for [Your OS]"
  2. Download the installer:

    • macOS: Download the .dmg file
    • Windows: Download the .exe installer
    • Linux: Download the .AppImage or .deb package

Step 2: Install the Application

macOS Installation

  1. Open the downloaded .dmg file
  2. Drag Cursor to your Applications folder
  3. Launch Cursor from Applications or Spotlight

Windows Installation

  1. Run the downloaded .exe file
  2. Follow the installation wizard
  3. Launch Cursor from the Start menu or desktop shortcut

Linux Installation

Using .deb package (Ubuntu/Debian):

sudo dpkg -i cursor-*.deb
sudo apt-get install -f  # Fix any dependency issues

Using .AppImage:

chmod +x cursor-*.AppImage
./cursor-*.AppImage

Step 3: Initial Setup

  1. Launch Cursor for the first time
  2. Import VS Code settings (optional) - Cursor can import your existing VS Code configuration
  3. Sign up/Sign in to enable AI features (requires account)
  4. Choose your AI model preferences in settings

Setting Up WhoisXML API MCP Server

Cursor provides excellent support for MCP servers with both one-click installation and manual configuration options.

Prerequisites

  • A valid WhoisXMLAPI account and API token
  • Cursor successfully installed and configured

Option 1: One-Click Installation (Recommended)

Cursor provides convenient one-click installation links for MCP servers:

  • Using Docker (Recommended): Add WhoisXMLAPI to Cursor

  • Using npx: Add WhoisXMLAPI to Cursor

  • Using Binary: Add WhoisXMLAPI to Cursor

Update the API Token

After clicking the install link, you'll need to update the WHOISXMLAPI_TOKEN environment variable with your actual API token.

Option 2: Manual Configuration

You can configure MCP servers in Cursor using either the GUI or by manually editing configuration files.

Using Cursor Settings (Recommended)

  1. Open Cursor Settings

    • Press the cog at the top right part of the editor, right next to the panel toggles.
    • Click "MCP & Integrations" in the left sidebar
    • Click "New MCP Server - Add a Custom MCP Server"
  2. Configure the server

    • This opens the global mcp.json configuration file
    • Add your server configuration (see examples below)

Manual File Configuration

Create a mcp.json file in one of these locations:

  • Project-specific: .cursor/mcp.json in your project root
  • Global: ~/.cursor/mcp.json in your home directory

Using Docker (Recommended):

{
  "mcpServers": {
    "whoisxmlapi": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "--env", "WHOISXMLAPI_TOKEN",
        "whoisxmlapidotcom/mcp-whoisxmlapi:v1"
      ],
      "env": {
        "WHOISXMLAPI_TOKEN": "your-api-token-here"
      }
    }
  }
}

Using npx (No installation required):

{
  "mcpServers": {
    "whoisxmlapi": {
      "command": "npx",
      "args": ["-y", "@whoisxmlapidotcom/mcp-whoisxmlapi"],
      "env": {
        "WHOISXMLAPI_TOKEN": "your-api-token-here"
      }
    }
  }
}

Using Binary:

{
  "mcpServers": {
    "whoisxmlapi": {
      "command": "/path/to/mcp-whoisxmlapi",
      "env": {
        "WHOISXMLAPI_TOKEN": "your-api-token-here"
      }
    }
  }
}

Step 3: Restart and Verify

  1. Restart Cursor after making configuration changes
  2. Check for MCP integration - you should see MCP tools available in the AI chat
  3. Test the connection by asking Cursor's AI:
    Can you look up the WHOIS information for example.com?
    

Using Cursor with WhoisXMLAPI

Once configured, you can use Cursor's AI features with WhoisXMLAPI tools:

AI Chat Integration

# Ask Cursor's AI assistant
"What can you tell me about the domain google.com using WHOIS data?"

"Check the DNS history for github.com"

"Find the IP geolocation for 8.8.8.8"

Code Generation with Context

# Generate code that uses domain intelligence
"Write a Python script that checks if a domain is legitimate using WHOIS and threat intelligence data"

"Create a function that analyzes DNS records for security issues"

Advanced Configuration

Multiple MCP Servers

You can configure multiple MCP servers alongside WhoisXMLAPI:

{
  "mcpServers": {
    "whoisxmlapi": {
      "command": "docker",
      "args": [
        "run", "--rm", "-i",
        "--env", "WHOISXMLAPI_TOKEN",
        "whoisxmlapidotcom/mcp-whoisxmlapi:v1"
      ],
      "env": {
        "WHOISXMLAPI_TOKEN": "your-api-token-here"
      }
    },
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "~/Documents",
        "~/Projects"
      ]
    }
  }
}

Troubleshooting

Common Issues

1. MCP Server Not Loading

# Check if MCP server is accessible
docker run --rm whoisxmlapidotcom/mcp-whoisxmlapi:v1 --help

# Or test with npx
npx -y @whoisxmlapidotcom/mcp-whoisxmlapi --help

2. Authentication Issues

# Verify API token is set
echo $WHOISXMLAPI_TOKEN

# Test API token directly
curl -H "Authorization: Bearer YOUR_TOKEN" https://whoisxmlapi.com/api/v1/whois

3. Cursor Not Recognizing MCP Server

  • Check JSON syntax in mcp.json
  • Verify file permissions
  • Restart Cursor completely
  • Check Cursor's output panel for errors

4. One-Click Install Not Working

  • Ensure you have the latest version of Cursor
  • Try manual configuration instead
  • Check if your system blocks the cursor:// protocol

5. Too many tools installed

  • Cursor has a limit of 40 tools.
  • You can disable tools to reduce the number of tools installed.
  • Disabling a tool will toggle it off temporarily, and it doesn't require a restart.

Performance Optimization

  1. Use Docker for consistency across different environments
  2. Configure timeouts for slower network connections
  3. Monitor resource usage if running multiple MCP servers

Security Considerations

API Token Security

  • Never commit API tokens to version control
  • Use environment variables for sensitive data
  • Regularly rotate your API tokens
  • Monitor API usage for unexpected activity

Best Practices

  1. Project-specific configurations for sensitive projects
  2. Use read-only tokens when possible
  3. Limit MCP server permissions to minimum required
  4. Regular security audits of your MCP configurations

Next Steps

Now that Cursor is set up with WhoisXML API MCP Server:

  • Explore the available tools to understand all capabilities
  • Check the usage guide for workflow examples
  • Review troubleshooting for common issues
  • Learn about advanced configuration options

Getting Help

If you need assistance:

  • Check the Cursor documentation
  • Visit our troubleshooting guide
  • Contact WhoisXMLAPI support

Useful Resources

  • Cursor Official Website
  • Cursor GitHub Repository
  • VS Code Documentation (for compatibility)
  • Model Context Protocol Documentation
Last Updated: 9/8/25, 4:59 AM
Prev
Claude Code
Next
Gemini