Skip to main content

Add your description here

Project description

IP2WHOIS MCP Server

mcp-ip2whois MCP server

A Model Context Protocol (MCP) server that provides comprehensive WHOIS lookup capabilities using the IP2WHOIS API. This server allows AI agents to query domain registration details, including expiry dates, registrar information, and registrant data. This server also supports query on hosted domains by IP address.

Features

  • Domain Lookup: Retrieve detailed WHOIS data for any domain name.

  • Hosted Domains Lookup: Retrieve hosted domains data for any IP address.

  • Comprehensive Data: Includes domain age, nameservers, registrar info, and administrative/billing contact details.

  • FastMCP Framework: Built using the high-performance FastMCP Python framework.

Requirement

This MCP server requires an API key to work. You can sign up for a free API key and enjoy up to 500 queries per month.

The setup also use uv, which can be install by following the guide.

Setup

Follow the steps to use this MCP server with Claude Desktop:

  1. Download the repository to your local.
  2. Setup the uv package manager, you can once again refer to the guide to do so.
  3. Make sure you have installed the Claude Desktop, if you haven't, kindly download from here for Windows and MacOS users, or follow this guide for Linux user.
  4. Open the claude_desktop_config.json in your choice of editor, if you do not having one yet, follow this guide to create one.
  5. Add the following to your claude_desktop_config.json:
{
  "mcpServers": {
    "ip2whois": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/ip2whois/src",
        "run",
        "server.py"
      ],
      "env": {
        "IP2WHOIS_API_KEY": "<YOUR API key HERE>"
      }
    }
  }
}
  1. Remember to replace the /path/to/ip2whois path with your actual path to IP2WHOIS MCP server in local.
  2. To get your API key, just login to your dashboard and get it from there. Replaced the <YOUR API key HERE> in above with your actual API key.
  3. Restart the Claude Desktop after save the changes, and you should see it appear in the Search and tools menu.

Usage

To query the WHOIS information, just enter your query about the domain in a chat in Claude Desktop. Some of the example query will be:

  • Who is the registrar of the (domain)?
  • Who is the owner of (domain)?
  • What is the WHOIS for (domain)?

For instance, below is the result of the domain google.com:

The output of the domain google.com

To query for the hosted domains by IP address, just enter your query about the IP in a chat in Claude Desktop. Some of the example query will be:

  • What domains did (IP) have?
  • What are the domains in (IP)?
  • What's the domain owned by (IP)?

In Claude Desktop, the model will automatically generate the output based on the result returned by IP2WHOIS MCP server.

Environment Variable

IP2WHOIS_API_KEY

The IP2WHOIS API key, which allows you to query up to 500 per month for free and more details of the IP address. You can sign up for a free API key, or subscribe to a plan to enjoy more benefits.

Tools

get_whois

Look up WHOIS data for a domain name.

  • Arguments:

    • domain (string): The domain name to look up (e.g., google.com).
  • Output: Returns a JSON object containing:

    • domain_id, status, domain_age

    • create_date, update_date, expire_date

    • registrar (name, url, etc.)

    • registrant (name, organization, country)

    • nameservers

get_hosted_domains

Query for the list of hosted domain names by IP address.

  • Arguments:

    • ip (string): The IP address (IPv4 or IPv6) to look up.
  • Output: Returns a JSON object containing the domains hosted on the ip address, and the total number of hosted domains found

License

See the LICENSE file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_ip2whois-1.2.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_ip2whois-1.2.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file mcp_ip2whois-1.2.0.tar.gz.

File metadata

  • Download URL: mcp_ip2whois-1.2.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for mcp_ip2whois-1.2.0.tar.gz
Algorithm Hash digest
SHA256 d531b2520886b644b50899f7619ec921f60e47c7d00604461e4093b01c6c94cb
MD5 707136b0b1be8718d1fa5f717a12eaeb
BLAKE2b-256 4f43265a8bdc37ee175a7be0112c60ee9f09b393abf43e0822dedc5e588a0b08

See more details on using hashes here.

File details

Details for the file mcp_ip2whois-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: mcp_ip2whois-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for mcp_ip2whois-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0abc298f60bce527d292e676f1d710d7697ba77b76e9cfe28e026c72399a456
MD5 62cecf19b15c848c28ef9f8f51674bc6
BLAKE2b-256 1be04b3b08bd7bf9754bbc34e73a84771730b44036fae95fb2cac4d24db808f0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page