MCP DNS
提供 DNS 查询功能的模型上下文协议 (MCP) 工具。此工具允许您通过标准化的 MCP 接口对各种记录类型执行 DNS 查找。
特征
DNS 查询各种记录类型(A、AAAA、MX、TXT、CNAME、NS 等)
简单、标准化的MCP接口
使用 TypeScript 构建以确保类型安全
使用 Node.js 原生 DNS 模块
用法
该工具提供了一个dns-query
命令,该命令接受两个参数:
name
:要查询的域名type
:DNS 记录类型(A、AAAA、MX、TXT、CNAME、NS 等)
发展
先决条件
Node.js(推荐使用最新 LTS 版本)
npm
设置
克隆存储库:
安装依赖项:
构建项目:
项目结构
src/
——源代码目录server.ts
- 主服务器实现
build/
——编译后的 JavaScript 输出package.json
- 项目配置和依赖项
依赖项
@modelcontextprotocol/sdk - 用于服务器实现的 MCP SDK
zod - TypeScript 优先模式验证
TypeScript - 用于类型安全和现代 JavaScript 功能
其他链接
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
一个模型上下文协议工具,通过标准化的 MCP 接口提供各种记录类型(A、AAAA、MX、TXT、CNAME、NS 等)的 DNS 查询功能。
Related Resources
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server that enables natural language querying of the Censys Search API for domain, IP, and FQDN reconnaissance, providing information about hosts, DNS, certificates, and services in real-time.Last updated -3
- -securityAlicense-qualityA Model Context Protocol server that provides network analysis tools for security professionals, enabling AI models like Claude to perform tasks such as ASN lookups, DNS analysis, WHOIS retrieval, and IP geolocation for security investigations.Last updated -1Apache 2.0
- -securityAlicense-qualityA Model Context Protocol server that provides comprehensive domain analysis capabilities including WHOIS lookups, DNS record queries, and DNS health checking.Last updated -8MIT License
- AsecurityAlicenseAqualityA comprehensive Model Context Protocol server providing access to 70+ IT tools for developers and system administrators, including encoding/decoding, text manipulation, hashing, and network utilities.Last updated -764612TypeScriptMIT License