@dnsdoctor/mcp

中文文档
1.21.0发布于 2026/11/09Apache-2.0ES Module近 30 天下载 2184

Thin stdio MCP server for DNS Doctor — scan, fix and verify a domain's DNS: SPF, DMARC, DKIM, multi-region propagation, MX, DNS health, blacklists and expiry, over the public DNS Doctor REST API.

原始使用文档
文档目录3 节
  1. Run it
  2. Build from source
  3. License

@dnsdoctor/mcp: DNS Doctor as a local stdio MCP server

A thin MCP server that runs on your machine and calls the public DNS Doctor REST API. It exposes the same 29 tools as the hosted server at https://dnsdoctor.dev/mcp: scan a domain's email authentication (SPF, DMARC, DKIM), MX, DNS health, blacklists and domain/SSL expiry, check propagation, and get the exact fix record to publish.

It holds no diagnosis logic of its own and relays every record string verbatim. Every fix record comes from DNS Doctor's deterministic engine, never from a model guess.

Most clients should use the hosted server instead (no install, no keys):

{ "mcpServers": { "dns-doctor": { "type": "http", "url": "https://dnsdoctor.dev/mcp" } } }

For Claude Code, the DNS Doctor plugin wires the hosted server and adds the skills.

Run it

{
  "mcpServers": {
    "dns-doctor": {
      "command": "npx",
      "args": ["-y", "@dnsdoctor/[email protected]"],
      "env": { "DNSDOCTOR_API_TOKEN": "dnsd_YOUR_TOKEN" }
    }
  }
}

Node 20 or newer. Pin the version as shown, so the code you run is the code you reviewed.

  • DNSDOCTOR_API_TOKEN is optional. Anonymous access covers scanning and fixes; the account tools (monitored domains, alerts, readiness, lookalike watches, email tests) need a token. Create one at dnsdoctor.dev under Settings > API tokens. The client sends it only to dnsdoctor.dev, as a bearer token. Never commit it.
  • DNSDOCTOR_API_BASE overrides the origin. It must serve the /api/... paths, i.e. the public site rather than a bare backend port.

Build from source

npm ci
npm test
npm run build      # -> dist/index.js, the package's bin entrypoint

tools.json and instructions.txt are generated from the hosted server and pinned by a test on the server side: never hand-edit them, and never add a tool description to src/. Both ship in the npm tarball; without them the client has no tools and none of its safety guidance.

License

Apache-2.0

版本与发布记录

@dnsdoctor/mcp 共发布 24 个版本,首次发布于 2026/07/29;过去 12 个月发布了 24 个版本。

版本发布日期距今
1.21.0latest2026/11/094 天前
1.20.02026/11/058 天前
1.18.02026/11/0310 天前
1.16.22026/10/3113 天前
1.16.12026/10/2914 天前
1.16.02026/10/2816 天前

关于 @dnsdoctor/mcp 的常见问题

@dnsdoctor/mcp 是什么?

Thin stdio MCP server for DNS Doctor — scan, fix and verify a domain's DNS: SPF, DMARC, DKIM, multi-region propagation, MX, DNS health, blacklists and expiry, over the public DNS Doctor REST API.

如何安装 @dnsdoctor/mcp?

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

@dnsdoctor/mcp 支持 TypeScript 吗?

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

@dnsdoctor/mcp 支持 ESM 还是 CommonJS?

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

@dnsdoctor/mcp 需要什么版本的 Node.js?

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

@dnsdoctor/mcp 可以商用吗?

@dnsdoctor/mcp 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@dnsdoctor/mcp 的下载量有多少?

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

@dnsdoctor/mcp 还在维护吗?

最新版本 1.21.0 发布于 2026/11/09(4 天前);至今共发布 24 个版本,其中过去 12 个月发布了 24 个;首次发布于 2026/07/29。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。