MCP server for dnstwist: detect typosquatting, phishing and brand impersonation domains.
Runs on your machine from its package; the steps are below.

Not assessed yet.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
npx -y @burtthecoder/mcp-dnstwist
MCP client config
{
"mcpServers": {
"dnstwist": {
"command": "npx",
"args": [
"-y",
"@burtthecoder/mcp-dnstwist"
]
}
}
}
Quickstart · Tool · Security · Troubleshooting · Docs
mcp-dnstwist is an MCP server that lets AI agents run dnstwist to find domains that imitate yours: typos, homoglyphs, bit flips, swapped TLDs and more. For each registered lookalike it can report DNS records, whether its mail server could intercept your email, WHOIS registration details, and how closely its web page copies yours.
Note
Independent project, not affiliated with dnstwist. Only scan domains you own or are authorized to assess.
Important
Versions up to 1.0.4 have a command injection vulnerability (GHSA-p4jr-h3rj-2rw4) and are deprecated. Use 1.0.5 or later; npx -y @burtthecoder/mcp-dnstwist always fetches the latest.
mxcheck), WHOIS creation date and registrar, HTTP and SMTP banners, and web-page similarity (ssdeep or TLSH) to spot cloned phishing sites.docker and dnstwist executables run in CI on Node 20, 22 and 24.flowchart LR
A["AI agent<br/>(Claude, Codex, Gemini, VS Code)"] -->|"MCP over stdio"| S["mcp-dnstwist"]
S -->|"validated argv, no shell,<br/>time limit"| D["dnstwist<br/>(local or Docker)"]
D -->|"DNS, WHOIS, HTTP, SMTP"| I["Lookalike domains"]
D -->|"JSON"| S
S -->|"results"| A
Requirements: Node.js 20.3 or newer, and either dnstwist (pipx install "dnstwist[full]") or Docker. No API key.
# Claude Code
claude mcp add --transport stdio dnstwist -- npx -y @burtthecoder/mcp-dnstwist
# Codex CLI
codex mcp add dnstwist -- npx -y @burtthecoder/mcp-dnstwist
# Gemini CLI
gemini mcp add dnstwist npx -y @burtthecoder/mcp-dnstwist
For Claude Desktop, VS Code, Docker, Smithery and running from source, see Connect a client.
Then ask your agent: "Which lookalike domains of example.com are registered, and could any of them intercept email?" More prompts are in example workflows.
One tool, fuzz_domain. Full parameters and real sample output are in the tool reference.
| Parameter | Default | What it does |
|---|---|---|
domain | (required) | The domain to imitate, for example example.com |
registered_only | true | Only return lookalikes that exist |
fuzzers | all | Limit to some algorithms, for example ["homoglyph", "bitsquatting"] |
mxcheck | true | Flag mail servers that would accept email for any address |
banners | true | Capture HTTP and SMTP banners |
whois | false | Registration date and registrar |
lsh | off | Web-page similarity to the original: ssdeep or tlsh |
all_records | false | All DNS records, not only the first of each type |
nameservers | 1.1.1.1 | Up to 10 IPv4 addresses or https://<host>/dns-query URLs |
threads | 50 | Parallel lookups, 1 to 100 |
format | json | json, csv or list |
| Variable | Default | Description |
|---|---|---|
DNSTWIST_RUNNER | auto | local (dnstwist on PATH), docker (the elceef/dnstwist image), or auto (local if available) |
DNSTWIST_TIMEOUT_SECONDS | 600 | Longest a scan may run. On timeout, cancellation or shutdown the scan is stopped and cleaned up |
The tool's arguments come from an AI model, which content it reads can steer, so the server treats them as hostile:
execFile and an argument array; a test fails the build if a shell-based API appears.-.The Docker runner needs access to the Docker daemon (root-equivalent on most systems). The local runner or the self-contained image avoid that. Details in the security model. Report vulnerabilities privately; see SECURITY.md.
pipx install "dnstwist[full]") or start Docker. Desktop clients may not see your shell's PATH.whois, lsh or banners, or raise DNSTWIST_TIMEOUT_SECONDS.More in the troubleshooting guide.
git clone https://github.com/w0h1v/mcp-dnstwist && cd mcp-dnstwist
npm ci
npm test # fake docker and dnstwist executables: no Docker or network needed
See CONTRIBUTING.md and the changelog.
MIT. See LICENSE.