whois-mcp-server
Provides DNS-over-HTTPS resolution using Cloudflare's 1.1.1.1 service, and supports Cloudflare KV/R2/D1 as storage backends for session and auth state.
Provides DNS-over-HTTPS resolution using Google's 8.8.8.8 service, primarily for CAA records where Cloudflare returns raw hex.
Integrates with OpenTelemetry for structured logging and tracing.
Supports Supabase as a storage backend for persisting bootstrap cache and other state.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@whois-mcp-servercheck availability of example.com"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Tools
Six tools covering domain intelligence, DNS, and IP/ASN resolution:
Tool | Description |
| Full domain registration record — registrar, created/expiry dates, nameservers, EPP status, DNSSEC, registrant org |
| Check whether a domain is registered or available for registration |
| DNS records for any hostname via DNS-over-HTTPS (A, AAAA, MX, TXT, NS, CNAME, SOA, CAA, PTR) |
| IP or CIDR netblock, org, country, abuse contact, and reverse DNS via RIR RDAP |
| Resolve an ASN to its org name, country, and RIR source |
| One-call domain triage — registration + DNS in parallel, normalized into a single record with factual signals |
whois_lookup_domain
Look up a domain's full RDAP registration record.
RDAP-first via IANA auto-bootstrap — automatically selects the correct registry RDAP server per TLD
Returns registrar, creation/expiry dates, nameservers, EPP status codes, DNSSEC delegation flag
Surfaces
registrant_redacted: trueexplicitly when privacy redaction is in effect (standard post-GDPR for gTLDs)Returns
rdap_coverage: falsefor TLDs without RDAP coverage rather than silently failingIncludes
last_update_of_rdap_dbevent timestamp for data freshness transparency
whois_check_availability
Check whether a domain name is registered or available to register.
RDAP 404 = available (
available: true) — exploits the RDAP spec's intended behaviorReturns
available: falsewithregistrarandexpiry_datewhen registeredReturns
available: nullwithrdap_coverage: falsefor TLDs without RDAP — cannot determine availabilityOptimized for bulk name sweeps — thin response, no unnecessary fields
whois_get_dns
Fetch DNS records via DNS-over-HTTPS.
Cloudflare
1.1.1.1primary, Google8.8.8.8fallback (used for CAA records where Cloudflare returns raw hex)Supports A, AAAA, MX, TXT, NS, CNAME, SOA, CAA, PTR — multiple types in one call
Returns records with TTLs and the resolving source (
cloudflareorgoogle)nxdomain: truein result (not an error) when the domain doesn't exist in DNS
whois_lookup_ip
Look up an IP address or CIDR block via RIR RDAP.
Auto-routes to the correct RIR (ARIN, RIPE, APNIC, LACNIC, AFRINIC) via IANA IP bootstrap
Returns netblock CIDR, org name, country, abuse contact email
Fetches PTR (reverse DNS) via DoH as a best-effort step —
ptr: nullon failure, not an errorValidates and rejects private/reserved ranges (RFC 1918, loopback, link-local) with a clear error
whois_lookup_asn
Resolve an ASN to its org name, country, and RIR.
Accepts
AS15169or bare integer15169formatRoutes to the correct RIR RDAP endpoint via IANA ASN bootstrap
Returns
name,org,country,rir,start_autnum,end_autnum
whois_get_dossier
One-call domain triage aggregating registration and DNS data in parallel.
Runs RDAP domain lookup and DoH (A, MX, NS, TXT) in parallel via
Promise.allSettledInferred signals:
age_days,privacy_redacted,registrar,ns_provider(from NS records),mx_provider(from MX records)No synthesized risk scores — factual signals only; the agent decides the verdict
Partial results surfaced when one leg fails (
source_erroron the failed leg)Both-legs-fail throws
ServiceUnavailable; individual leg failures are data, not errors
Related MCP server: domain-checker
Features
Built on @cyanheads/mcp-ts-core:
Declarative tool definitions — single file per tool, framework handles registration and validation
Unified error handling — handlers throw, framework catches, classifies, and formats
Pluggable auth:
none,jwt,oauthSwappable storage backends:
in-memory,filesystem,Supabase,Cloudflare KV/R2/D1Structured logging with optional OpenTelemetry tracing
STDIO and Streamable HTTP transports
Domain and network intelligence:
RDAP over HTTPS — no port-43 TCP dependency, runs on Node, Bun, and Cloudflare Workers
IANA bootstrap auto-selection — correct registry RDAP server picked per TLD, RIR, or ASN range; bootstrap JSON cached (TTL 24h) in tenant state
DNS-over-HTTPS via Cloudflare and Google — resilient dual-provider with per-type routing (Google for CAA; Cloudflare for all others)
No API keys required — all sources (IANA, registry RDAP endpoints, RIR RDAP, Cloudflare DoH, Google DoH) are public and keyless
Agent-friendly output:
Explicit coverage signals —
rdap_coverage: falsetells the agent the TLD lacks RDAP rather than returning a confusing errorPrivacy redaction surfaced as a field —
registrant_redacted: truerather than silently absent contact dataPartial failure model —
whois_get_dossiermarks individual legs withsource_errorand continues; only both-legs-fail escalates to an errorFactual signals, not scores —
age_days,privacy_redacted,ns_provider,mx_providerare real data; agents chain into threat-intel or risk servers for enrichment
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://localhost:3010/mcpPrerequisites
Bun v1.3.0 or higher (or Node.js v24+).
No API keys required — all data sources are public.
Installation
Clone the repository:
git clone https://github.com/cyanheads/whois-mcp-server.gitNavigate into the directory:
cd whois-mcp-serverInstall dependencies:
bun installConfigure environment:
cp .env.example .env
# All vars are optional — defaults work for most use casesConfiguration
Variable | Description | Default |
| HTTP timeout for RDAP requests in milliseconds. |
|
| HTTP timeout for DNS-over-HTTPS requests in milliseconds. |
|
| Max retry attempts on transient RDAP failures. |
|
| Max retry attempts on transient DoH failures. |
|
| Transport: |
|
| Port for HTTP server. |
|
| Auth mode: |
|
| Log level (RFC 5424). |
|
| Enable OpenTelemetry instrumentation. |
|
See .env.example for the full list of optional overrides.
Running the server
Local development
Build and run:
bun run rebuild bun run start:stdio # or bun run start:httpRun 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-serverThe 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
Path | Purpose |
|
|
| Server-specific environment variable parsing and validation (Zod). |
| RDAP client — IANA bootstrap cache, domain/IP/ASN lookup, retry. |
| DNS-over-HTTPS client — Cloudflare primary, Google fallback. |
| Tool definitions ( |
| Vitest tests mirroring |
| 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/catchin tool logicUse
ctx.logfor request-scoped logging,ctx.statefor tenant-scoped storage (IANA bootstrap cache)Register new tools via
src/index.tstools arrayWrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields
Contributing
Issues and pull requests are welcome. Run checks and tests before submitting:
bun run devcheck
bun run testLicense
Apache-2.0 — see LICENSE for details.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables domain lookups using the RDAP protocol, returning structured registration data, nameservers, and contacts from over 50 supported TLDs.Last updated1281MIT
- AlicenseBqualityDmaintenanceEnables domain name checking and related services through a standardized MCP interface.Last updated2MIT
- Flicense-qualityDmaintenanceEnables domain intelligence lookups including RDAP registration data, DNS records, and Certificate Transparency searches.Last updated1
- Alicense-qualityCmaintenanceEnables RDAP domain lookup via ICANN standard, free, no authentication required.Last updated153MIT
Related MCP Connectors
Discover MCP endpoints for real-world entities by resolving business domains.
Domains MCP — domain registration lookup + availability search over live
Domain intelligence for DNS, WHOIS/RDAP, TLS, reputation, valuation, and brand protection.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cyanheads/whois-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server