Skip to main content
Glama

dns-whois-mcp

FastMCP server for DNS lookups and WHOIS domain research. Part of the Palimpsest intelligence toolkit.

Tools

  • dns_lookup — DNS record lookup (A, AAAA, MX, NS, TXT, SOA, CNAME, PTR, SRV, CAA, DS, DNSKEY). Returns JSON with resolved records.

  • whois_lookup — WHOIS domain or IP query. Returns structured data (registrar, creation/expiry dates, name servers, registrant, DNSSEC) plus raw WHOIS text. Includes computed age_days.

  • reverse_lookup — Reverse DNS (PTR) lookup for an IPv4 or IPv6 address.

  • dns_research — Comprehensive domain investigation. Runs all DNS record types and WHOIS in parallel, then reverse-lookups every resolved IP. Consolidated JSON report.

Related MCP server: mcp-server-dns

Usage

Via stdio (MCP)

python -m dns_whois_mcp

Example

dns_research("magnalending.co.uk")

As a library

from dns_whois_mcp.server import _dns_lookup_sync, _whois_lookup_sync

print(_dns_lookup_sync("iana.org", "A"))
print(_whois_lookup_sync("iana.org"))

Storage

Every lookup is archived as a JSONL entry in ~/.local/share/dns-whois/YYYY-MM-DD-dns-whois.jsonl. Duplicates (same domain + same tool within the same hour) are skipped.

Each entry includes a human-readable content field for full-text search via fst-indexer and unified-history-mcp.

Dependencies

  • Python ≥ 3.11

  • mcp ≥ 1.0

  • dnspython ≥ 2.7

  • asyncwhois ≥ 1.0

Install

pip install -e .

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    A Model Context Protocol (MCP) server that provides comprehensive domain name research tools, including RDAP, WHOIS, and DNS query functionality.
    1
    2
    Apache 2.0
  • A
    license
    A
    quality
    D
    maintenance
    MCP server for DNS lookups, reverse DNS, WHOIS, and domain checks. Zero auth, zero config.
    5
    32 npm
    3
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    MCP server for IntoDNS.ai providing 36 free tools for DNS, DMARC, SPF, DKIM, BIMI, DNSSEC, MTA-STS, FCrDNS, blacklist and email security checks. Citation-grade report snapshots with content hashes. No API key required.
    45
    359 npm
    2
    MIT