Skip to content
MCP server
Registry

whois-mcp-server MCP Server

Domain registry records and status, DNS records, and IP/ASN resolution over RDAP and DoH.

whois-mcp-server scores 71 (Good), licensed Apache-2.0 and written in TypeScript. It installs as a local process. It declares 7 tools. Filed under Uncategorized. GitHub shows 2 stars. Package registries report about 344 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by cyanheadsApache-2.0TypeScript2 stars
Trust score
71Good
Trust score 71 of 100, Good

Good trust

71 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: apache-2.0.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 71 comes from

22 + 20 + 5 + 10 + 4 + 10 = 71. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity5 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 5 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "cyanheads-whois-mcp-server": {      "command": "npx",      "args": [        "-y",        "@cyanheads/whois-mcp-server@0.3.0"      ],      "env": {        "MCP_LOG_LEVEL": "info",        "RDAP_TIMEOUT_MS": "5000",        "DOH_TIMEOUT_MS": "3000",        "RDAP_MAX_RETRIES": "2",        "DOH_MAX_RETRIES": "2"      }    }  }}

Environment variables

NameRequiredNotes
MCP_LOG_LEVELOptionalSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
RDAP_TIMEOUT_MSOptionalHTTP timeout for RDAP requests in milliseconds.
DOH_TIMEOUT_MSOptionalHTTP timeout for DNS-over-HTTPS requests in milliseconds.
RDAP_MAX_RETRIESOptionalMax retry attempts on transient RDAP failures.
DOH_MAX_RETRIESOptionalMax retry attempts on transient DNS-over-HTTPS failures.
MCP_TRANSPORT_TYPEOptionalSelects the HTTP transport.
MCP_HTTP_HOSTOptionalThe hostname for the HTTP server.
MCP_HTTP_PORTOptionalThe port to run the HTTP server on.
MCP_HTTP_ENDPOINT_PATHOptionalThe endpoint path for the MCP server.
MCP_PUBLIC_URLOptionalPublic origin override for deployments behind a TLS-terminating reverse proxy (e.g. https://mcp.example.com).
MCP_AUTH_MODEOptionalAuthentication mode to use: 'none', 'jwt', or 'oauth'.
MCP_LOG_LEVELOptionalSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
RDAP_TIMEOUT_MSOptionalHTTP timeout for RDAP requests in milliseconds.
DOH_TIMEOUT_MSOptionalHTTP timeout for DNS-over-HTTPS requests in milliseconds.
RDAP_MAX_RETRIESOptionalMax retry attempts on transient RDAP failures.
DOH_MAX_RETRIESOptionalMax retry attempts on transient DNS-over-HTTPS failures.

Tools7Tool docs quality grade F

All capabilities

About

Version License Docker MCP SDK npm TypeScript Bun

Install in Claude Desktop Install in Cursor Install in VS Code

Framework


Overview

Domain and network intelligence via RDAP and DNS-over-HTTPS. Look up domain registrations, check registry record status, fetch DNS records, and resolve IPs and ASNs to their registries. No API key required.

Tools

ToolDescription
whois_lookup_domainFull domain registration record — registrar, created/expiry dates, nameservers, EPP status, DNSSEC, registrant org
whois_check_availabilityCheck registry record presence; missing records do not establish registration eligibility
whois_get_dnsDNS owner records, including service discovery, DNSSEC, DANE, and HTTPS service parameters
whois_lookup_ipIP or CIDR netblock, org, country, abuse contact, registration dates, and reverse DNS via RIR RDAP
whois_lookup_asnResolve an ASN to its organization, abuse contact, registration dates, country, and RIR source
whois_get_dossierOne-call domain triage — registration + DNS in parallel, normalized into a single record with factual signals

The whois-guide covers hostname investigations and tracing DNS addresses to registry allocations and observed origin ASNs. It ships with the plugin and is available to MCP clients as skill://whois-guide/SKILL.md.


Capability reference

whois_lookup_domain tool

  • Takes a Unicode or ASCII fully qualified domain name. Returns the ASCII domain and, for an IDN, unicode_domain as decoded display text.
  • Returns registrar, dates, nameservers, EPP status, DNSSEC, and registrant_redacted; DNSSEC and privacy stay null when the registry gives no evidence. Fails with rdap_no_coverage, domain_not_found, or rdap_invalid_domain_response (the response doesn't match the queried domain).
  • An exact registry miss can name a registrable parent to query next. Missing RDAP coverage points to DNS evidence, which cannot establish registration status.
  • include_registrar: true follows one registrar RDAP referral and adds registrar_detail (found, no_referral, or failed, plus source URL). Off by default; limited by RDAP_TIMEOUT_MS, and a failure keeps the registry result.

whois_check_availability tool

  • Takes a Unicode or ASCII fully qualified domain name and returns its ASCII form with optional decoded unicode_domain.
  • Returns registration_status: registered | not_found | unknown. available is false for a found registration and null otherwise, never true: a 404 means no record, not that the name can be registered.
  • Known ICANN subdomains return non_registrable_domain with their registrable parent.

whois_get_dns tool

  • Takes a Unicode or ASCII DNS name, including underscore owners and one terminal root dot. The ASCII lookup name is limited to 253 characters with 1–63-character labels; IDNs also return decoded unicode_domain.
  • Optional types: A, AAAA, MX, TXT, NS, CNAME, SOA, CAA, PTR, SRV, DS, DNSKEY, TLSA, HTTPS; defaults to A, AAAA, MX, TXT, NS. Record data retains the resolver's literal presentation.
  • Returns records with TTLs and query_sources: [{type, source}], including empty answers and NXDOMAIN. Legacy source is cloudflare if any query got a successful Cloudflare response, otherwise nextdns.
  • Resolver failure codes and truncated responses return errors after retries and fallback. CAA queries go to NextDNS.

whois_lookup_ip tool

  • Takes an IPv4/IPv6 address with an optional CIDR prefix (0–32 / 0–128). Echoes the original ip.
  • Returns org, country, abuse contact, provider CIDRs in cidrs (cidr only when there is exactly one), and a best-effort reverse DNS lookup: ptr_status: found | not_found | failed, with ptr_source_error on failure while the RDAP data is kept.
  • Optional registration_date and last_changed preserve the queried object's RDAP timestamps. RIPE maintainer handles are excluded from org_name; missing organization evidence stays omitted.
  • include_routing: true adds routing (found | not_found | failed) with the RIS-observed prefix and origin_asns, from RIPEstat Network Info. Off by default; a routing failure keeps the RDAP and PTR results.
  • Fails with invalid_ip, ip_not_found, ip_no_rdap_route (no RIR covers the address; not retryable), or private_range for 0.0.0.0/8, 10.0.0.0/8, 100.64.0.0/10, 127.0.0.0/8, 169.254.0.0/16, 172.16.0.0/12, 192.168.0.0/16, 255.0.0.0/8, ::1/128, fc00::/7, and fe80::/10.

whois_lookup_asn tool

  • Takes an ASN from 1 to 4294967295, with an optional AS prefix (e.g., AS15169, AS 15169, +15169). Out-of-range numbers fail with invalid_asn.
  • Returns name, org_name, country, rir, start_autnum, and end_autnum, plus abuse_email, registration_date, and last_changed when the record carries them. Fails with asn_not_found when no record exists.

whois_get_dossier tool

  • Takes a Unicode or ASCII hostname and runs registration and A/MX/NS/TXT lookups in parallel. After an exact registry 404, it can try the ICANN registrable parent and identify it as registration_domain; DNS stays on the supplied hostname.
  • Returns registration, DNS, domain age, privacy status, and inferred NS/MX providers. A failed lookup leaves the other's data in place and sets rdap_source_error or dns_source_error; both_legs_failed means neither succeeded.
  • NS/MX provider inference uses the first record. Unknown-provider labels come from the registrable hostname, including multi-label suffixes such as co.uk.
  • A null MX (0 .) means the domain accepts no mail.

Features

Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.

RDAP / DNS-specific:

  • RDAP over HTTPS — no port-43 TCP dependency
  • IANA bootstrap auto-selection — correct registry RDAP server picked per TLD, RIR, or ASN range; bootstrap JSON cached in-memory for 24h
  • DNS-over-HTTPS via Cloudflare and NextDNS — dual-provider with per-type routing (NextDNS for CAA; Cloudflare for all others) and automatic fallback
  • No API keys required — all sources (IANA, registry RDAP endpoints, RIR RDAP, Cloudflare DoH, NextDNS DoH, optional RIPEstat Network Info) are public and keyless

Agent-friendly output:

  • Coverage signaled two ways — rdap_coverage: false returned as data by whois_check_availability and whois_get_dossier, while whois_lookup_domain throws rdap_no_coverage for the same case
  • Privacy redaction is true when the registry shows it and null when there's no evidence
  • Partial failure model — whois_get_dossier marks a failed lookup with a source_error field and continues; only both failing is an error
  • Factual signals, not scores — age_days, privacy_redacted, ns_provider, mx_provider are real data, not synthesized risk scores

Getting started

No API keys or accounts required. Add the following to your MCP client configuration file.

{
  "mcpServers": {
    "whois-mcp-server": {
      "type": "stdio",
      "command": "bunx",
      "args": ["@cyanheads/whois-mcp-server@latest"],
      "env": {
        "MCP_TRANSPORT_TYPE": "stdio",
        "MCP_LOG_LEVEL": "info"
      }
    }
  }
}

Or with npx (no Bun required):

{
  "mcpServers": {
    "whois-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@cyanheads/whois-mcp-server@latest"],
      "env": {
        "MCP_TRANSPORT_TYPE": "stdio",
        "MCP_LOG_LEVEL": "info"
      }
    }
  }
}

Or with Docker:

{
  "mcpServers": {
    "whois-mcp-server": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-e", "MCP_TRANSPORT_TYPE=stdio",
        "ghcr.io/cyanheads/whois-mcp-server:latest"
      ]
    }
  }
}

For Streamable HTTP, set the transport and start the server:

MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
# Server listens at http://127.0.0.1:3010/mcp

Prerequisites

  • Bun v1.4.4 or higher (or Node.js v24+).
  • No API keys required — all data sources are public.

Installation

  1. Clone the repository:
git clone https://github.com/cyanheads/whois-mcp-server.git
  1. Navigate into the directory:
cd whois-mcp-server
  1. Install dependencies:
bun install
  1. Configure environment:
cp .env.example .env
# All vars are optional — defaults work for most use cases

Configuration

VariableDescriptionDefault
RDAP_TIMEOUT_MSHTTP timeout for RDAP requests in milliseconds.5000
DOH_TIMEOUT_MSHTTP timeout for DNS-over-HTTPS requests in milliseconds.3000
RDAP_MAX_RETRIESMax retry attempts on transient RDAP failures.2
DOH_MAX_RETRIESMax retry attempts on transient DoH failures.2
MCP_TRANSPORT_TYPETransport: stdio or http.stdio
MCP_HTTP_PORTPort for HTTP server.3010
MCP_HTTP_ENDPOINT_PATHLiteral HTTP route path. Use a value such as /mcp./mcp
MCP_PUBLIC_URLPublic HTTP(S) base URL. Omit credentials, query strings, and fragments.Unset
MCP_AUTH_MODEAuth mode: none, jwt, or oauth.none
MCP_LOG_LEVELLog level (RFC 5424).info
OTEL_ENABLEDEnable OpenTelemetry instrumentation.false

See .env.example for the full list of optional overrides.

The default log directory and relative LOGS_DIR paths resolve from the installed server package. Set an absolute LOGS_DIR to log elsewhere.


Running the server

Local development

  • Build and run:

    bun run rebuild
    bun run start:stdio
    # or
    bun run start:http
    
  • Run checks and tests:

    bun run devcheck   # Lint, format, typecheck, security
    bun run test       # Vitest test suite
    bun run lint:mcp   # Validate MCP definitions against spec
    

Docker

docker build -t whois-mcp-server .
docker run --rm -p 3010:3010 whois-mcp-server

The Dockerfile defaults to HTTP transport, stateless session mode, and logs to /var/log/whois-mcp-server. OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.


Project structure

PathPurpose
src/index.tsEntry point — starts the app.
src/app.tscreateApp() options — registers tools, inits services, declares the session mode.
src/config/Server-specific environment variable parsing and validation (Zod).
src/services/rdap/RDAP client — IANA bootstrap cache, domain/IP/ASN lookup, retry.
src/services/doh/DNS-over-HTTPS client — Cloudflare primary, NextDNS fallback.
src/services/routing/Optional RIPEstat RIS routing observations with a bounded exchange.
src/mcp-server/tools/Tool definitions (*.tool.ts).
tests/Vitest tests mirroring src/.
docs/Design and API reference documents.

Development guide

See CLAUDE.md for development guidelines and architectural rules. The short version:

  • Handlers throw, framework catches — no try/catch in tool logic
  • Use ctx.log for request-scoped logging
  • Register new tools via src/app.ts's tools array
  • Wrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields

Contributing

Issues are welcome. Run checks and tests before submitting:

bun run devcheck
bun run test

License

Apache-2.0 — see LICENSE for details.

Frequently asked questions

What is whois-mcp-server MCP Server?

Domain registry records and status, DNS records, and IP/ASN resolution over RDAP and DoH.

How do I install whois-mcp-server MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. whois-mcp-server MCP Server runs locally from the npm package @cyanheads/whois-mcp-server with the command npx -y @cyanheads/whois-mcp-server@0.3.0.

Is whois-mcp-server MCP Server free and open source?

Yes. whois-mcp-server MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

What tools does whois-mcp-server MCP Server provide?

whois-mcp-server MCP Server provides 7 tools, including ctx.log, whois_check_availability, whois_get_dns, and whois_get_dossier. See the full tool list for descriptions and parameters.

How is whois-mcp-server MCP Server's trust score calculated?

whois-mcp-server MCP Server scores 71 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server