原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

DNS MCP Server

作者:mclose版本 1.3.4i★ –i在你的电脑上运行
注册名称io.github.mclose/dns-mcp

安装

概览

作者提供的说明(英文原文)

Real-time DNS security analysis — DNSSEC, email auth, and RDAP. Built for SOC investigations.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 聊天与邮件

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "dns": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/mclose/dns-mcp:1.3.4"
      ]
    }
  }
}

在终端中运行这条命令

claude mcp add dns -- docker run -i --rm docker.io/mclose/dns-mcp:1.3.4

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "dns": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/mclose/dns-mcp:1.3.4"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "dns": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/mclose/dns-mcp:1.3.4"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 mclose 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“聊天与邮件”中的其他服务器比较i

  • 星标数多于此分类中其他 1773 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 1773 个服务器的 5% 更新
  • 基础检查结果等于或优于此分类中其他 1773 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

DNS MCP Server 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.3.4)于7个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Docker。

有什么可以替代它?

同一分类中有:Vexa, emailmd, MCP WhatsApp Cloud

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Vexa

作者:Vexa-ai

Meeting bot and transcripts for Google Meet, Teams and Zoom. Live or after, speakers labelled.

在云端运行★ 2,949Apache-2.02个月前更新
安装

emailmd

作者:anypost

Render markdown into email-safe HTML, lint drafts for deliverability problems, and preview emails.

电脑或云端★ 1,385MIT31天前更新
安装

MCP WhatsApp Cloud

作者:codespar

MCP server for WhatsApp Cloud API (Meta) — messages, media, and templates via Graph API

在你的电脑上运行★ 277MIT5个月前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

DNS MCP Server

Real-time DNS security analysis for AI assistants via MCP. Gives your assistant the ability to investigate domains the way a practitioner would — DNSSEC chain validation, email authentication posture, and registration intelligence — without leaving your chat session.

Built by a cybersecurity professional for SOC investigation workflows. Not a toy — the same queries you would run at the command line, accessible through any MCP-compatible assistant in real time.

Architecture (2.0.0)

dns-mcp is a Streamable HTTP MCP server with OAuth via Pocket ID. Tool implementations are thin wrappers around the dns_tool Python library, which owns all DNS logic. The server itself is ~430 lines of code: auth bootstrap, tool registration, and prompt loading.

Claude.ai / Claude Code / any MCP client

│ │ Streamable HTTP + OAuth bearer (JWT) ▼ Caddy reverse proxy (TLS, DNS-01 / Let's Encrypt) │ ▼ dns-mcp container (FastMCP, OAuth verifier) │ ▼ dns_tool library (DoH client, validators, parsers) │ ▼ doh.lab.deflationhollow.net (Unbound DoH resolver, optional)

Three benefits over the previous stdio-only architecture:

  1. Network-accessible — hosted MCP servers can serve any client, not just ones that can spawn a local subprocess.
  2. OAuth-protected — bearer JWTs verified against Pocket ID JWKS; per-user identity available to tools via whoami.
  3. Library-first — dns_tool is published independently and reusable. The same code powers a CLI, this MCP server, and (eventually) a REST API.

The old stdio architecture lives at server.py.legacy for porting reference. The remote branch (mcp-shim Go bridge) is deprecated.

Tools

dns-mcp 2.0.0 currently exposes 19 tools. Ten additional tools from the 1.x stdio architecture are pending port into dns_tool — see Open work.

Meta
ToolDescription
pingServer uptime, current timestamp, dns_tool version + commit hash
whoamiAuthenticated user identity from JWT claims
DNS
ToolDescription
dns_queryStandard DNS lookup over DoH — 20 record types (A, AAAA, MX, TXT, NS, SOA, CNAME, PTR, SRV, CAA, DNSKEY, DS, RRSIG, NSEC, NSEC3, TLSA, SSHFP, HTTPS, SVCB, NAPTR). Optional subnet sends an EDNS Client Subnet hint (RFC 7871); the ecs block says whether the answer was really tailored to it
dnssec_validateFull DNSSEC chain walk from IANA root trust anchor down to target. Real cryptographic validation at every zone cut. Returns structured verdict + per-zone findings + event transcript
nsec_infoNSEC / NSEC3 denial-of-existence analysis — zone walkability assessment, NSEC3 hash parameters, opt-out detection
Email security
ToolDescription
check_spfSPF record parsing with recursive include resolution (RFC 7208 10-lookup limit)
check_dmarcDMARC policy retrieval with organizational domain fallback
check_dkimDKIM public key record verification for a selector + domain pair
enumerate_dkim_selectorsProbe a domain for DKIM keys at well-known selector names; returns the selectors that resolve
check_daneDANE TLSA records for all MX hosts of a domain
check_tlsaStandalone TLSA record lookup at _ ._ .
Threat intelligence
ToolDescription
check_rblIP reputation against 8 DNS-based RBLs (Spamhaus ZEN, SpamCop, UCEProtect L1/L2, Mailspike, PSBL, Barracuda, SORBS)
check_dblDomain reputation against DNS-based Domain Block Lists (Spamhaus DBL, URIBL, SURBL)
cymru_asnASN lookup via Team Cymru DNS service — BGP prefix, org, country
check_fast_fluxFast-flux detection — repeated A/AAAA queries to identify rotating IPs and short TTLs
detect_hijackingTest a recursive resolver for tampering — NXDOMAIN wildcards, DNSSEC handling, identity
Registration
ToolDescription
rdap_lookupDomain registration data via RDAP (modern WHOIS replacement)
Observability
ToolDescription
session_statsPer-tool call statistics for the current process — count, error_count, mean_ms, max_ms, first/last_called timestamps; plus session uptime and total call count. Module-level state (resets on container restart). Backed by dns_mcp/tracking.py.
reset_statsClear all tool-call statistics and restart the session clock.

Downstream consumers (e.g. ~/projects/yahoo batch forensics) call session_stats as the final tool in each investigation to record which DNS tools were consulted; an empty stats dict indicates a "cold read" where the analyst LLM produced a verdict without DNS verification.

Tool descriptors

All 19 tools use Pydantic Field for parameter descriptors. The LLM sees:

  • Per-parameter descriptions explaining what the parameter means
  • `Literal[...]` enums for record types and protocols (no string-guessing)
  • Regex patterns validating FQDN syntax, IPv4 dotted-quad, DKIM selector format
  • Length and range constraints (port 1–65535, FQDN max 253 chars, etc.)

Constraints are advertised in the tool descriptor JSON Schema and enforced at the MCP boundary by FastMCP — invalid input is rejected before dns_tool is called. See src/dns_mcp/server.py for the type alias definitions.

Analyst Prompts

Four analyst prompt templates ship with the server. Any MCP-compatible client that supports prompts can list and invoke them.

PromptWhat it does
email_security_auditSPF, DKIM, DMARC, MTA-STS, BIMI — graded A through F with prioritized recommendations
dnssec_chain_auditFull DNSSEC chain-of-trust audit from IANA root down to target
soc_email_forensicsForensic phishing analysis of a raw email — TRUSTABLE / SUSPICIOUS / PHISHING / FURTHER ANALYSIS REQUIRED
nist_800_81r3_auditDomain security posture audit aligned with NIST SP 800-81r3

Prompt invocation requires client-side UI support. Claude Code surfaces them as /mcp__dns-mcp__ . Claude.ai web exposes prompts via the slash-command picker. Use tools ad-hoc in clients that do not support prompts.

Example

Ask your assistant: *"Check the email security posture of example.com"*

The assistant calls check_spf, check_dmarc, check_dane in sequence and returns a complete analysis:

✅ SPF:     Hard fail (-all), 3 lookups (under RFC limit)

✅ DMARC: p=reject, pct=100 — full enforcement, aggregate reporting configured ✅ DANE: TLSA records present and DNSSEC-validated

No copy-pasting dig commands. No tab-switching. One question.

Quick Start

Prerequisites
  • Docker
  • A Pocket ID instance (or any OIDC provider supporting Dynamic Client Registration)
  • A reverse proxy with TLS termination (Caddy, nginx, etc.)
  • A domain name pointing at your reverse proxy
1. Pocket ID

Mint an admin API key in Pocket ID's UI: Settings → API Keys → Create new key. Name it dns-mcp so you can revoke just this service if needed. Copy the key value (it is shown once).

2. .env
POCKET_ID_BASE_URL=https://pocketid.example.com

POCKET_ID_API_KEY= SERVER_URL=https://dns-mcp.example.com

3. Deploy
git clone https://github.com/mclose/dns-mcp.git

cd dns-mcp docker compose up -d

The image installs dns_tool as a versioned dependency (URL-pinned in pyproject.toml); make build is also available for direct development.

4. Reverse proxy

The container listens on port 8000 (HTTP). Front it with TLS termination:

dns-mcp.example.com {

reverse_proxy dns-mcp:8000 { flush_interval -1 # required for Streamable HTTP / SSE } }

If you use mclose/gateway (the Caddy + DNS-01 setup that serves dns-mcp.lab.deflationhollow.net), drop a conf.d/dns-mcp.conf matching the existing pattern.

5. Connect

Add https://dns-mcp.example.com/mcp as a connector in your MCP client. The OAuth flow runs once on first connect — Claude.ai redirects to Pocket ID, you authenticate, the server creates a DCR client on your Pocket ID instance, and returns a JWT. Subsequent tool calls send that JWT as a bearer token; the server verifies against Pocket ID JWKS.

Open work

Eleven tools from the 1.x stdio architecture are not yet ported into dns_tool and are therefore not registered in 2.0.0:

  • check_caa (with CNAME chain tracing and wildcard delegation detection)
  • check_zone_transfer (AXFR enumeration)
  • check_bimi, check_mta_sts, check_smtp_tlsrpt
  • check_ct_logs (Certificate Transparency log enumeration via crt.sh)
  • timestamp_converter, reverse_dns
  • enumerate_dkim_selectors, dns_dig_style, dns_query_dot

Reference implementations live in server.py.legacy. Each port involves moving the function into the appropriate dns_tool module (dns_tool.email, dns_tool.intel, etc.), adding tests on the library side, and registering a one-line wrapper in src/dns_mcp/server.py.

File structure

dns-mcp/

├── src/dns_mcp/ │ ├── init.py │ ├── main.py # entrypoint — create_server().run(transport="streamable-http") │ ├── config.py # pydantic-settings Settings class │ ├── auth.py # JWKSTokenVerifier + JWTAccessToken │ └── server.py # FastMCP app: OAuth routes + 16 tools + 4 prompts (~430 lines) ├── prompts/ # MCP analyst prompt text files ├── tests/ # pytest unit tests (legacy — pending rewrite) ├── tools/ # operator scripts (smoke tests, deploy helpers) ├── server.py.legacy # 1.x stdio server (5,095 lines), reference for 11 deferred tool ports ├── compose.yaml ├── Dockerfile ├── pyproject.toml # dns_tool URL-pinned to dist tarball └── Makefile # build/lint/import-check

Day-to-day

CommandWhat it does
make buildRebuild the Docker image
make rebuildFull clean build, no cache
make lintpre-commit run --all-files (ruff check + format)
make import-checkBuild image, run create_server() inside, assert tools register
make shellInteractive shell inside the container
make deployPush to GitHub + VPS post-receive hook
make logsTail container logs
make statusContainer status

Security

  • No shell execution — all DNS via dns_tool (dnspython internally), RDAP via requests
  • OAuth bearer JWT verification against Pocket ID JWKS on every tool call
  • Pydantic Field constraints enforced at MCP boundary — invalid input rejected before reaching dns_tool
  • Non-root container user (claude, uid 1000)
  • SPF recursion limit enforced (RFC 7208)
  • RDAP: 10s timeout, max 3 redirects

License

MIT

问 PopNx