dnstwist MCP Server
MCP server for dnstwist: detect typosquatting, phishing and brand impersonation domains.
dnstwist scores 74 (Good), licensed MIT and written in JavaScript. It installs as a local process. It declares 2 tools. Filed under Uncategorized. GitHub shows 52 stars. Package registries report about 200 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
74 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
71/100 for listing completeness. Lost points: 2 of 2 tools barely described, short summary.
How quality is graded
Where the 74 comes from
22 + 20 + 8 + 10 + 4 + 10 = 74. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 8 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.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.
{ "mcpServers": { "w0h1v-mcp-dnstwist": { "command": "npx", "args": [ "-y", "@burtthecoder/mcp-dnstwist@1.1.4" ], "env": { "DNSTWIST_RUNNER": "", "DNSTWIST_TIMEOUT_SECONDS": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
DNSTWIST_RUNNER | Optional | How to run dnstwist: docker, local, or auto (default: a dnstwist on PATH, else Docker) |
DNSTWIST_TIMEOUT_SECONDS | Optional | Maximum seconds a scan may run before it is stopped (default 600) |
Tools2Tool docs quality grade F
All capabilitiesall_recordstoolfalse
registered_onlytooltrue
About
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-dnstwistalways fetches the latest.
Highlights
- Lookalike discovery. All of dnstwist's permutation algorithms, or only the ones you pick.
- Threat signals. DNS records, open mail relays that could intercept email (
mxcheck), WHOIS creation date and registrar, HTTP and SMTP banners, and web-page similarity (ssdeep or TLSH) to spot cloned phishing sites. - Runs your way. A local dnstwist install, the official dnstwist Docker image, or a self-contained mcp-dnstwist image.
- Hardened. No shell, strict input validation, and time limits that stop and clean up long scans.
- Tested. End-to-end tests with fake
dockeranddnstwistexecutables run in CI on Node 20, 22 and 24.
How it works
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
Quickstart
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 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.
The tool
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 |
Settings
| 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 |
Security
The tool's arguments come from an AI model, which content it reads can steer, so the server treats them as hostile:
- No shell. dnstwist starts with
execFileand an argument array; a test fails the build if a shell-based API appears. - Strict validation. Domains must be hostnames, nameservers IPv4 or DoH URLs, numbers and names from fixed sets. No value can start with
-. - Bounded runs. Time limits, and cleanup of processes and containers on timeout, cancellation and shutdown.
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.
Troubleshooting
- "Neither dnstwist nor Docker is available": install dnstwist (
pipx install "dnstwist[full]") or start Docker. Desktop clients may not see your shell'sPATH. - Slow on Apple Silicon: the dnstwist Docker image is amd64-only. Install dnstwist locally; it's used automatically.
- "did not finish within N seconds": include an IPv4 nameserver (DNS-over-HTTPS is slow), turn off
whois,lshorbanners, or raiseDNSTWIST_TIMEOUT_SECONDS.
More in the troubleshooting guide.
Development
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.
License
MIT. See LICENSE.
Frequently asked questions
What is dnstwist MCP Server?
MCP server for dnstwist: detect typosquatting, phishing and brand impersonation domains.
How do I install dnstwist 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. dnstwist MCP Server runs locally from the npm package @burtthecoder/mcp-dnstwist with the command npx -y @burtthecoder/mcp-dnstwist@1.1.4.
Is dnstwist MCP Server free and open source?
Yes. dnstwist MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does dnstwist MCP Server support remote (HTTP) connections?
No remote endpoint is listed for dnstwist MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does dnstwist MCP Server provide?
dnstwist MCP Server provides 2 tools: all_records and registered_only. See the full tool list for descriptions and parameters.
How is dnstwist MCP Server's trust score calculated?
dnstwist MCP Server scores 74 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
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.