# @burtthecoder/mcp-dnstwist 中文文档

规范地址：https://npmcn.com/package/%40burtthecoder/mcp-dnstwist/

版本：1\.1\.4
npm 元数据更新时间：2026-11-04T21:15:47.469Z
中文译文更新时间：2026-11-08T23:26:29.037Z
软件包许可：MIT

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40burtthecoder/mcp-dnstwist
原文对照：https://npmcn.com/package/%40burtthecoder/mcp-dnstwist/?lang=original
项目主页：https://w0h1v.github.io/mcp-dnstwist/
源码仓库：https://github.com/w0h1v/mcp-dnstwist

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：30.8 kB，5 个文件
- 模块格式：ES Module
- TypeScript 类型：未声明
- Node.js 要求：\>=20\.3
- 运行依赖：1 个
- 首次发布：2024-12-19T22:45:19.939Z
- 最新版本发布：2026-11-04T21:15:47.044Z
- 近 30 天下载量：2011（2026-10-09 至 2026-11-07，npm 官方下载统计）
- 已发布版本数：13（近 12 个月 8 个）

## 中文简介

Dnstwist 的 MCP 服务器: 找到用于打字和品牌冒充的打字、同位素和外观域

## 安装

```sh
npm install @burtthecoder/mcp-dnstwist
```

也可以使用：`pnpm add @burtthecoder/mcp-dnstwist`、`yarn add @burtthecoder/mcp-dnstwist`、`bun add @burtthecoder/mcp-dnstwist`

## README

![MCP dnstwist: typosquatting detection for AI agents. Find lookalike, homoglyph and phishing domains with dnstwist over the Model Context Protocol.](https://npmcn.com/package/%40burtthecoder/mcp-dnstwist/docs/assets/banner.webp)

[![npm version](https://img.shields.io/npm/v/@burtthecoder/mcp-dnstwist)](https://www.npmjs.com/package/@burtthecoder/mcp-dnstwist) [![CI](https://github.com/w0h1v/mcp-dnstwist/actions/workflows/ci.yml/badge.svg)](https://github.com/w0h1v/mcp-dnstwist/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/license-MIT-blue)](https://npmcn.com/package/%40burtthecoder/mcp-dnstwist/LICENSE) ![Node 20.3 or newer](https://img.shields.io/badge/node-%E2%89%A520.3-339933) [![MCP Registry](https://img.shields.io/badge/MCP-Registry-7c3aed)](https://registry.modelcontextprotocol.io/)

[快速启动](https://npmcn.com/package/%40burtthecoder/mcp-dnstwist/#readme-quickstart) • 妇女 [工具](https://npmcn.com/package/%40burtthecoder/mcp-dnstwist/#readme-the-tool) • 妇女 [警卫](https://npmcn.com/package/%40burtthecoder/mcp-dnstwist/#readme-security) • 妇女 [解决问题](https://npmcn.com/package/%40burtthecoder/mcp-dnstwist/#readme-troubleshooting) • 妇女 [文档](https://w0h1v.github.io/mcp-dnstwist/)

**mcp-dnstwist 语录** 是一个 [MCP 磁共振](https://modelcontextprotocol.io/) 允许 AI 代理运行的服务器 [转动](https://github.com/elceef/dnstwist) 要找到模仿您的域:打字、同位素、比特翻转、互换 TLD 等。 对于每一个注册的外观,它可以报告DNS记录,它的邮件服务器是否能够截取您的电子邮件,WHOIS的注册细节,以及它的网页拷贝你的多近.

> \[注\] 独立项目,不隶属于dnstwist. 只扫描您拥有或授权评估的域 .

> \[大 最多为1.0.4的版本具有指令注射脆弱性([全球统一制度A-p4jr-h3rj-2rw4](https://github.com/w0h1v/mcp-dnstwist/security/advisories/GHSA-p4jr-h3rj-2rw4))并被贬. 1.0.5或以后使用; `npx -y @burtthecoder/mcp-dnstwist` 总是获取最新消息.

## 要点

-   **看起来像一个发现.** 所有dnstwist的活化算法,或者只有你选的.
-   **威胁信号.** DNS记录,可以截取电子邮件的打开邮件中继器(`mxcheck`),WHOIS的创建日期和注册员,HTTP和SMTP横幅,以及网页相似性(sdeep或TLSH)来点出被克隆的钓鱼网站.
-   **运行你的方式.** 本地dnstwist安装,官方dnstwist Docker图像,或自成一体的mcp-dnstwist图像.
-   **坚固.** 无外壳,严格输入验证,限时停止并清理长扫描.
-   **经验.** 用假的端到端测试 `docker` 财务报告和审定财务报表 `dnstwist` cI运行于节点20,22和24的可执行文件.

## 如何运作

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

## 快速启动

**所需经费:** 节点 js 20.3 或 更新, 或 dnstwist (`pipx install "dnstwist[full]"`或多克语. 没有 API 密钥 .

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

关于Claude桌面, VS 代码, Docker 从源头运行, 请参看 [连接客户端](https://npmcn.com/package/%40burtthecoder/mcp-dnstwist/docs/clients.md)。 。 。 .

那就问问你的经纪人: _“哪一个像样的例子域被注册_ 更多提示进入 [示例工作流程](https://npmcn.com/package/%40burtthecoder/mcp-dnstwist/docs/examples.md)。 。 。 .

## 工具

一个工具, `fuzz_domain`。完整的参数和实际样本输出在 [工具参考](https://npmcn.com/package/%40burtthecoder/mcp-dnstwist/docs/tools.md)。 。 。 .

| 参数 | 默认 | 它会做什么 |
| --- | --- | --- |
| `domain` | _(必须)_ | 例如,要模仿的域 `example.com` |
| `registered_only` | `true` | 只有返回的外观像存在 |
| `fuzzers` | 全部 | 例如,限制一些算法 `["homoglyph", "bitsquatting"]` |
| `mxcheck` | `true` | 为任何地址接受电子邮件的标签邮件服务器 |
| `banners` | `true` | 抓取 HTTP 和 SMTP 横幅 |
| `whois` | `false` | 登记日期和登记员 |
| `lsh` | 关 | 网页与原文相似: `ssdeep` 或者说 `tlsh` |
| `all_records` | `false` | 所有 DNS 记录, 不只是每种类型中的第一个 |
| `nameservers` | `1.1.1.1` | 最多10个IPv4地址或 `https://<host>/dns-query` URL( URL) |
| `threads` | `50` | 平行检查,1至100 |
| `format` | `json` | `json`, (中文(简体) ), `csv` 或者说 `list` |

### 设置

| 变量 | 默认 | 说明 |
| --- | --- | --- |
| `DNSTWIST_RUNNER` | `auto` | `local` (电话铃声) `PATH`, (中文(简体) ), `docker` (单位:千美元) `elceef/dnstwist` 图像),或 `auto` (当地(如果有的话) |
| `DNSTWIST_TIMEOUT_SECONDS` | `600` | 扫描时间最长 在超时、取消或关闭时,扫描被停止并清理 |

## 警卫

工具的论据来自一个AI模型,它所读的内容可以引导,所以服务器将它们视为敌对:

-   **无外壳.** dnstwist 开始于 `execFile` 和参数数组; 如果出现基于 shell 的 API , 测试失败构建 .
-   **严格论证.** 域名必须是主机名,取名服务器IPv4或DoH URL,数字和取名来自固定集. 没有数值可以从 `-`。 。 。 .
-   **被包围的跑道.** 时限,在超时,取消和关闭时清理流程和集装箱.

Docker跑车需要访问Docker守护进程(在大多数系统上,根等同). 本地跑者或自成一体的图像避免了这种情况. 详细情况 [安保模式](https://npmcn.com/package/%40burtthecoder/mcp-dnstwist/docs/security.md). 私下报告脆弱性;见 [警卫](https://npmcn.com/package/%40burtthecoder/mcp-dnstwist/SECURITY.md)。 。 。 .

## 解决问题

-   **"既无德施也无道克":** 安装 dnstwist (`pipx install "dnstwist[full]"`)或者开始多克. 桌面客户端可能看不到您的外壳 `PATH`。 。 。 .
-   **慢于苹果硅 :** dnstwist Docker 图像为 amd64- only 。 本地安装 dnstwist; 自动使用 .
-   **"没有在N秒内完成":** 包括一个 IPv4 命名服务器( DNS- over- HTTPS 缓慢), 关闭 `whois`, (中文(简体) ), `lsh` 或者说 `banners`,或提高 `DNSTWIST_TIMEOUT_SECONDS`。 。 。 .

再来点 [解决问题指南](https://npmcn.com/package/%40burtthecoder/mcp-dnstwist/docs/troubleshooting.md)。 。 。 .

## 发展

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

见 [捐款额](https://npmcn.com/package/%40burtthecoder/mcp-dnstwist/CONTRIBUTING.md) 编辑 [更改日志](https://npmcn.com/package/%40burtthecoder/mcp-dnstwist/CHANGELOG.md)。 。 。 .

## 许可证

麻省理工学院. 见 [自由主义](https://npmcn.com/package/%40burtthecoder/mcp-dnstwist/LICENSE)。 。 。 .

## 常见问题

### @burtthecoder/mcp-dnstwist 是什么？

Dnstwist 的 MCP 服务器: 找到用于打字和品牌冒充的打字、同位素和外观域

### 如何安装 @burtthecoder/mcp-dnstwist？

在项目目录运行 npm install @burtthecoder/mcp-dnstwist，或使用 pnpm add / yarn add / bun add。它还提供命令行工具 mcp-dnstwist，可以用 npx mcp-dnstwist 直接运行。

### @burtthecoder/mcp-dnstwist 支持 TypeScript 吗？

该包的 package\.json 没有声明类型入口。需要类型提示时，可以在 npm 上查找社区维护的 @types/burtthecoder\_\_mcp-dnstwist 是否存在。

### @burtthecoder/mcp-dnstwist 支持 ESM 还是 CommonJS？

以 ES Module 形式发布，推荐使用 import 引入。在 CommonJS 项目中，Node\.js 20\.19\+ / 22\.12\+ 可以直接 require\(\) 不含顶层 await 的 ES Module，更早的版本需要改用动态 import\(\)。

### @burtthecoder/mcp-dnstwist 需要什么版本的 Node\.js？

package\.json 的 engines 字段要求 Node\.js \>=20\.3。版本不符时 npm 默认只给出警告，开启 engine-strict 后会拒绝安装。

### @burtthecoder/mcp-dnstwist 可以商用吗？

@burtthecoder/mcp-dnstwist 使用 MIT 许可。宽松许可：允许商业使用、修改和再分发，通常只需在分发时保留原版权与许可声明。以上为概括，不构成法律意见，请以许可原文为准。

### @burtthecoder/mcp-dnstwist 的下载量有多少？

根据 npm 官方下载统计，@burtthecoder/mcp-dnstwist 在 2026/10/09 – 2026/11/07 这 30 天内被下载 2,011 次，日均约 67 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入，适合横向比较热度，不能直接等同于使用人数。

### @burtthecoder/mcp-dnstwist 还在维护吗？

最新版本 1\.1\.4 发布于 2026/11/05（4 天前）；至今共发布 13 个版本，其中过去 12 个月发布了 8 个；首次发布于 2024/12/20。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

