
Whois Mcp Server
io.github.cyanheads由 GitHub 帳號 cyanheads 發布v0.2.1更新於 Oct 24, 2026
Domain registry records and status, DNS records, and IP/ASN resolution over RDAP and DoH.
概覽
透過 RDAP 與 DNS-over-HTTPS 查詢網域註冊資料、DNS 記錄、IP 網段與 ASN,無需 API 金鑰。
- 可以做什麼
- 查詢網域註冊記錄:註冊商、建立與到期日期、名稱伺服器、EPP 狀態、DNSSEC,可選擇附帶註冊商轉介詳情
- 檢查網域是否有註冊記錄,回傳 registered、not_found 或 unknown
- 透過 DNS-over-HTTPS 取得 DNS 記錄(A、AAAA、MX、TXT、NS、CNAME、SOA、CAA、PTR)與 TTL
- 將 IP 位址或 CIDR 網段解析為組織、國家、濫用聯絡方式與反向 DNS,可選擇附帶路由資訊
- 將 ASN 解析為組織名稱、國家與 RIR
- 一次呼叫產生網域檔案,把註冊資料與 DNS 合併成一筆正規化記錄
- 適用情境
- 適合需要調查網域、IP 或 ASN 的情況:查詢網域歸屬與註冊狀況、核對 MX 或 CAA 等 DNS 設定、初步研判可疑網域,或把 IP 對應到網路營運商。它只做公開資料的唯讀查詢,適合研究與排錯,不涉及修改記錄。
- 執行需求
- 以 npm 套件形式在本機執行,可透過 npx 或 bunx 啟動(需 Bun v1.4.0+ 或 Node.js v24+),也可使用 Docker 映像。無需 API 金鑰或帳號。需要對外連線至公開的 RDAP、DoH 與 RIPEstat 端點。選用環境變數可調整逾時、重試、傳輸方式、HTTP 主機與連接埠及日誌等級。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Whois Mcp Server,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
@cyanheads/whois-mcp-server
Look up domain registration, check registry record status, fetch DNS records, and resolve IPs and ASNs over RDAP and DNS-over-HTTPS via MCP. STDIO or Streamable HTTP.
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
Capability reference
whois_lookup_domain tool
- Takes a fully qualified domain name and picks the registry's RDAP server through IANA bootstrap.
- Returns registrar, dates, nameservers, EPP status, DNSSEC, and
registrant_redacted; DNSSEC and privacy staynullwhen the registry gives no evidence. Fails withrdap_no_coverage,domain_not_found, orrdap_invalid_domain_response(the response doesn't match the queried domain). include_registrar: truefollows one registrar RDAP referral and addsregistrar_detail(found,no_referral, orfailed, plus source URL). Off by default; limited byRDAP_TIMEOUT_MS, and a failure keeps the registry result.
whois_check_availability tool
- Takes a fully qualified domain name.
- Returns
registration_status: registered | not_found | unknown.availableisfalsefor a found registration andnullotherwise, nevertrue: a 404 means no record, not that the name can be registered. - Known ICANN subdomains return
non_registrable_domainwith their registrable parent.
whois_get_dns tool
- Takes an ASCII DNS name (underscore labels like
_dmarc.example.comare fine), up to 253 characters with 1–63-character labels. Optionaltypes: A, AAAA, MX, TXT, NS, CNAME, SOA, CAA, PTR; defaults to A, AAAA, MX, TXT, NS. - Returns records with TTLs and
query_sources: [{type, source}], including empty answers and NXDOMAIN. Legacysourceiscloudflareif any query got a successful Cloudflare response, otherwisenextdns. - 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(cidronly when there is exactly one), and a best-effort reverse DNS lookup:ptr_status: found | not_found | failed, withptr_source_erroron failure while the RDAP data is kept. include_routing: trueaddsrouting(found | not_found | failed) with the RIS-observed prefix andorigin_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), orprivate_rangefor0.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, andfe80::/10.
whois_lookup_asn tool
- Takes an ASN from 1 to 4294967295, with an optional
ASprefix (e.g.,AS15169,AS 15169,+15169). Out-of-range numbers fail withinvalid_asn. - Returns
name,org_name,country,rir,start_autnum, andend_autnum; fails withasn_not_foundwhen no record exists.
whois_get_dossier tool
- Takes a fully qualified domain name and runs the registration and A/MX/NS/TXT lookups in parallel.
- 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_errorordns_source_error;both_legs_failedmeans neither succeeded. - 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: falsereturned as data bywhois_check_availabilityandwhois_get_dossier, whilewhois_lookup_domainthrowsrdap_no_coveragefor the same case - Privacy redaction is
truewhen the registry shows it andnullwhen there's no evidence - Partial failure model —
whois_get_dossiermarks a failed lookup with asource_errorfield and continues; only both failing is an error - Factual signals, not scores —
age_days,privacy_redacted,ns_provider,mx_providerare real data, not synthesized risk scores
Getting started
No API keys or accounts required. Add the following to your MCP client configuration file.
Or with npx (no Bun required):
Or with Docker:
For Streamable HTTP, set the transport and start the server:
Prerequisites
- Bun v1.4.0 or higher (or Node.js v24+).
- No API keys required — all data sources are public.
Installation
- Clone the repository:
- Navigate into the directory:
- Install dependencies:
- Configure environment:
Configuration
See .env.example for the full list of optional overrides.
Running the server
Local development
-
Build and run:
-
Run checks and tests:
Docker
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
Development guide
See CLAUDE.md for development guidelines and architectural rules. The short version:
- Handlers throw, framework catches — no
try/catchin tool logic - Use
ctx.logfor request-scoped logging - Register new tools via
src/app.ts'stoolsarray - 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:
License
Apache-2.0 — see LICENSE for details.
來源:README.md,提交 104c879
工具
0版本歷史
5- v0.2.1最新Oct 16, 2026
- v0.2.0Oct 13, 2026
- v0.1.6Sep 30, 2026
- v0.1.5Sep 21, 2026
- v0.1.4Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分