Labsco
MCP SERVER

WHOIS MCP Server

by ahooop

Looks up WHOIS registration for a domain and returns it as structured JSON.

DNS, Domains & CDN
Summary
One call, and a response shape you can branch on.

WHOIS output is notoriously ragged across registrars, so the useful part here is the fixed envelope: a status code the assistant can check before it tries to read anything. That makes it usable inside a longer chain — verify the domain exists, then go on — rather than only as a lookup you read yourself.

What it is

A single-purpose WHOIS lookup server built on FastMCP, backed by the Chinaz API. Give it a domain and it returns the registration record in a fixed JSON envelope with a code, a message and the data — so an assistant can check ownership, registrar and expiry without you opening a lookup site.

What you get
  • `whois_query` takes a domain such as `example.com` and returns its WHOIS record
  • A consistent response envelope — `code`, `message` and `data` — so failures are distinguishable from empty results
  • Input validation on the domain before the request goes out
  • Both stdio and SSE transports
Requirements

Python 3.8+ and `pip install whois-mcp-server` (package `whois-mcp-server`, version 0.1.0), then run the `whois-mcp-server` command or launch it with `uvx`. It queries through the Chinaz API, and the README has you export the key as `TAVILY_API_KEY` — an oddity worth knowing before you wonder why nothing resolves.

Setup effort

One command plus a key — pip install whois-mcp-server, then supply credentials