mcp-dnstwist
Click on "Deploy 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., "@mcp-dnstwistcheck for typosquatting domains similar to paypal.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.
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.
Independent project, not affiliated with dnstwist. Only scan domains you own or are authorized to assess.
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.
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.
Related MCP server: DNStwist MCP Server
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"| AQuickstart
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-dnstwistFor 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.
The tool
One tool, fuzz_domain. Full parameters and real sample output are in the tool reference.
Parameter | Default | What it does |
| (required) | The domain to imitate, for example |
|
| Only return lookalikes that exist |
| all | Limit to some algorithms, for example |
|
| Flag mail servers that would accept email for any address |
|
| Capture HTTP and SMTP banners |
|
| Registration date and registrar |
| off | Web-page similarity to the original: |
|
| All DNS records, not only the first of each type |
|
| Up to 10 IPv4 addresses or |
|
| Parallel lookups, 1 to 100 |
|
|
|
Settings
Variable | Default | Description |
|
|
|
|
| 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 neededSee CONTRIBUTING.md and the changelog.
License
MIT. See LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for DNSimple — domains, DNS zone records, availability, pricing and contacts.
MCP server for ScanMalware.com URL scanning, malware detection, and analysis.
MCP server for Pentest-Tools.com: run scans, manage findings and reports via your preffered LLM.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceMCP server to perform various OSINT tasks by leveraging common network reconnaissance tools.48-
- AlicenseNot gradedqualityDmaintenanceA server that integrates the dnstwist DNS fuzzing tool with MCP-compatible applications, enabling domain permutation analysis to detect typosquatting, phishing, and corporate espionage.28 npm1MIT
- AlicenseAqualityDmaintenanceMCP server for DNS lookups, reverse DNS, WHOIS, and domain checks. Zero auth, zero config.550 npm3MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol (MCP) server for interacting with the DNSDumpster API, enabling AI assistants to perform detailed DNS reconnaissance through natural language requests.73MIT