Skip to main content
ClaudeWave

MCP server for dnstwist, a powerful DNS fuzzing tool that helps detect typosquatting, phishing, and corporate espionage.

MCP ServersOfficial Registry51 stars12 forks● JavaScriptMITUpdated today
ClaudeWave Trust Score
100/100
✓ Verified
Passed
  • ✓Open-source license (MIT)
  • ✓Actively maintained (<30d)
  • ✓Clear description
  • ✓Topics declared
  • ✓Mature repo (>1y old)
  • ✓Documented (README)
Last scanned: 10/13/2026
Install in Claude Code / Claude Desktop
Method: NPX · @burtthecoder/mcp-dnstwist
Claude Code CLI
claude mcp add mcp-dnstwist -- npx -y @burtthecoder/mcp-dnstwist
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "mcp-dnstwist": {
      "command": "npx",
      "args": ["-y", "@burtthecoder/mcp-dnstwist"]
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
Use cases

MCP Servers overview

<p align="center">
  <img alt="MCP dnstwist: typosquatting detection for AI agents. Find lookalike, homoglyph and phishing domains with dnstwist over the Model Context Protocol." src="docs/assets/banner.webp" width="100%">
</p>

<p align="center">
  <a href="https://www.npmjs.com/package/@burtthecoder/mcp-dnstwist"><img alt="npm version" src="https://img.shields.io/npm/v/@burtthecoder/mcp-dnstwist"></a>
  <a href="https://github.com/w0h1v/mcp-dnstwist/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/w0h1v/mcp-dnstwist/actions/workflows/ci.yml/badge.svg"></a>
  <a href="LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-blue"></a>
  <img alt="Node 20.3 or newer" src="https://img.shields.io/badge/node-%E2%89%A520.3-339933">
  <a href="https://registry.modelcontextprotocol.io"><img alt="MCP Registry" src="https://img.shields.io/badge/MCP-Registry-7c3aed"></a>
  <a href="https://smithery.ai/server/@burtthecoder/mcp-dnstwist"><img alt="Smithery" src="https://img.shields.io/badge/Smithery-listed-ff5601"></a>
</p>

<p align="center">
  <a href="#quickstart">Quickstart</a> ·
  <a href="#the-tool">Tool</a> ·
  <a href="#security">Security</a> ·
  <a href="#troubleshooting">Troubleshooting</a> ·
  <a href="https://w0h1v.github.io/mcp-dnstwist/">Docs</a>
</p>

**mcp-dnstwist** is an [MCP](https://modelcontextprotocol.io) server that lets AI agents run [dnstwist](https://github.com/elceef/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](https://github.com/w0h1v/mcp-dnstwist/security/advisories/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 `docker` and `dnstwist` executables run in CI on Node 20, 22 and 24.

## How it works

```mermaid
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.

```sh
# 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](docs/clients.md).

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](docs/examples.md).

## The tool

One tool, `fuzz_domain`. Full parameters and real sample output are in the [tool reference](docs/tools.md).

| 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 `execFile` and 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](docs/security.md). Report vulnerabilities privately; see [SECURITY.md](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's `PATH`.
- **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`, `lsh` or `banners`, or raise `DNSTWIST_TIMEOUT_SECONDS`.

More in the [troubleshooting guide](docs/troubleshooting.md).

## Development

```sh
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](CONTRIBUTING.md) and the [changelog](CHANGELOG.md).

## License

MIT. See [LICENSE](LICENSE).
dnsjavascriptmcpphishingsecuritytyposquatting

What people ask about mcp-dnstwist

What is w0h1v/mcp-dnstwist?

+

w0h1v/mcp-dnstwist is mcp servers for the Claude AI ecosystem. MCP server for dnstwist, a powerful DNS fuzzing tool that helps detect typosquatting, phishing, and corporate espionage. It has 51 GitHub stars and its last recorded update is dated 2026-10-13.

How do I install mcp-dnstwist?

+

You can install mcp-dnstwist by cloning the repository (https://github.com/w0h1v/mcp-dnstwist) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.

Is w0h1v/mcp-dnstwist safe to use?

+

Our security agent has analyzed w0h1v/mcp-dnstwist and assigned a Trust Score of 100/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.

Who maintains w0h1v/mcp-dnstwist?

+

w0h1v/mcp-dnstwist is maintained by w0h1v. The last recorded GitHub activity is dated 2026-10-13, with 0 open issues.

Are there alternatives to mcp-dnstwist?

+

Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.

Deploy mcp-dnstwist to your cloud

Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.

Maintain this repo? Add a badge to your README

Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.

Featured on ClaudeWave: w0h1v/mcp-dnstwist
[![Featured on ClaudeWave](https://claudewave.com/api/badge/w0h1v-mcp-dnstwist)](https://claudewave.com/repo/w0h1v-mcp-dnstwist)
<a href="https://claudewave.com/repo/w0h1v-mcp-dnstwist"><img src="https://claudewave.com/api/badge/w0h1v-mcp-dnstwist" alt="Featured on ClaudeWave: w0h1v/mcp-dnstwist" width="320" height="64" /></a>

More MCP Servers

mcp-dnstwist alternatives