Skip to main content
Glama

Domain Tools (WHOIS + DNS)

MIT License
  • Apple
  • Linux

DNS 和 WHOIS 查询 MCP 服务器mcp-domaintools

mcp-domaintools是一个模型上下文协议 (MCP)服务器,为 AI 助手提供 DNS 和 WHOIS 查询功能。它使 AI 模型能够通过本地 DNS 解析器和远程 DNS-over-HTTPS 服务执行 DNS 查找。

对于本地 DNS 查询,它使用系统已配置的 DNS 服务器。对于远程 DNS 查询,它使用 Cloudflare DNS-over-HTTPS 查询,并回退到 Google DNS-over-HTTPS。这对于大多数用例来说已经足够了。

对于自定义 DNS-over-HTTPS 服务器,您可以使用--remote-server-address标志。服务器端点必须实现RFC 8484定义的 HTTP 响应格式。

对于自定义 WHOIS 服务器,您可以使用--custom-whois-server标志。服务器端点必须实现RFC 3912定义的 HTTP 响应格式,但也支持纯文本响应。

特征

  • 本地 DNS 查询:使用操作系统配置的 DNS 服务器执行 DNS 查找
  • 远程 DNS-over-HTTPS :通过 Cloudflare 和 Google DNS-over-HTTPS 服务执行安全 DNS 查询
  • WHOIS 查询:执行 WHOIS 查询以获取域名注册信息
  • 多种记录类型:支持 A、AAAA、CNAME、MX、NS、PTR、SOA、SRV 和 TXT 记录类型
  • 回退机制:自动尝试多个 DNS 服务器以获得可靠的结果
  • SSE 支持:作为 HTTP 服务器运行,使用服务器发送事件 (SSE) 实现基于 Web 的集成

安装

编辑器配置

将以下配置添加到编辑器的设置中以使用mcp-domaintools

{ "mcpServers": { "dns": { "command": "mcp-domaintools", "args": [ // Uncomment and modify as needed: // "--remote-server-address=https://your-custom-doh-server.com/dns-query", // "--custom-whois-server=whois.yourdomain.com", // "--timeout=10s" ], "env": {} } } }

您可以如上所示直接从$PATH使用mcp-domaintools ,或者提供二进制文件的完整路径(例如, /path/to/mcp-domaintools )。

或者,您可以直接使用 Docker 运行mcp-domaintools而无需安装二进制文件:

{ "mcpServers": { "dns": { "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/patrickdappollonio/mcp-domaintools:latest" // Add custom options if needed: // "--remote-server-address=https://your-custom-doh-server.com/dns-query", // "--custom-whois-server=whois.yourdomain.com", // "--timeout=10s" ], "env": {} } } }

有关mcp-domaintools公开的工具的信息,请参阅“可用的 MCP 工具”

Homebrew(macOS 和 Linux)

brew install patrickdappollonio/tap/mcp-domaintools

Docker

MCP 服务器可以作为 Docker 镜像使用,使用stdio进行通信:

docker pull ghcr.io/patrickdappollonio/mcp-domaintools:latest docker run --rm ghcr.io/patrickdappollonio/mcp-domaintools:latest

对于使用 Docker 的 SSE 模式,公开 SSE 端口(默认3000 ):

docker run --rm -p 3000:3000 ghcr.io/patrickdappollonio/mcp-domaintools:latest --sse --sse-port 3000

检查上面的实现,了解如何配置 MCP 服务器以作为编辑器或工具中的容器运行。

GitHub 发布

GitHub 发布页面下载适合您平台的预构建二进制文件。

可用的 MCP 工具

有 3 种可用工具:

  • local_dns_query :根据操作系统的配置,对本地 DNS 解析器执行 DNS 查询
  • remote_dns_query :对远程 DNS-over-HTTPS 服务器执行 DNS 查询
  • whois_query :执行 WHOIS 查询以获取域名注册信息

运行模式

标准(stdio)模式

默认情况下, mcp-domaintools以 stdio 模式运行,适合与编辑器和其他通过标准输入/输出进行通信的工具集成。

mcp-domaintools

服务器发送事件 (SSE) 模式

或者,您可以将mcp-domaintools作为 HTTP 服务器运行,并使用 SSE 支持基于 Web 的集成:

mcp-domaintools --sse --sse-port=3000

在 SSE 模式下,服务器将监听指定端口(默认值:3000),并使用服务器发送事件通过 HTTP 提供相同的 MCP 工具。这对于 Web 应用程序或不方便使用 stdio 通信的环境非常有用。

可用的 SSE 选项:

  • --sse :启用 SSE 服务器模式
  • --sse-port=PORT :指定要监听的端口(默认值:3000)

本地 DNS 查询

使用本地操作系统定义的 DNS 服务器执行 DNS 查询。

参数:

  • domain (必填):要查询的域名(例如,example.com)
  • record_type (必需):要查询的 DNS 记录类型(A、AAAA、CNAME、MX、NS、PTR、SOA、SRV、TXT)

远程 DNS 查询

使用远程 DNS-over-HTTPS 服务器(Google 和 Cloudflare)执行 DNS 查询。

参数:

  • domain (必填):要查询的域名(例如,example.com)
  • record_type (必需):要查询的 DNS 记录类型(A、AAAA、CNAME、MX、NS、PTR、SOA、SRV、TXT)

WHOIS查询

执行 WHOIS 查找以获取域名注册信息。

参数:

  • domain (必填):要查询的域名(例如,example.com)
-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

域名工具(WHOIS + DNS)

  1. 特征
    1. 安装
      1. 编辑器配置
      2. Homebrew(macOS 和 Linux)
      3. Docker
      4. GitHub 发布
    2. 可用的 MCP 工具
      1. 运行模式
        1. 标准(stdio)模式
        2. 服务器发送事件 (SSE) 模式
        3. 本地 DNS 查询
        4. 远程 DNS 查询
        5. WHOIS查询

      Related MCP Servers

      • A
        security
        A
        license
        A
        quality
        A Model Context Protocol server that allows AI agents to perform WHOIS lookups, enabling users to directly ask the AI about domain availability, ownership, registration details, and other domain information.
        Last updated -
        4
        10
        1
        JavaScript
        MIT License
        • Linux
        • Apple
      • -
        security
        F
        license
        -
        quality
        Enables AI agents to perform WHOIS lookups to retrieve domain registration details, including ownership, registration dates, and availability status without requiring browser searches.
        Last updated -
        2
        2
        JavaScript
        • Linux
        • Apple
      • -
        security
        -
        license
        -
        quality
        An MCP server that enables users to buy and manage domains through Claude.
        Last updated -
        1
        Python
      • -
        security
        F
        license
        -
        quality
        A Model Context Protocol server that enables AI assistants to check domain name availability using WHOIS lookups.
        Last updated -
        15
        1
        TypeScript

      View all related MCP servers

      MCP directory API

      We provide all the information about MCP servers via our MCP API.

      curl -X GET 'https://glama.ai/api/mcp/v1/servers/patrickdappollonio/mcp-domaintools'

      If you have feedback or need assistance with the MCP directory API, please join our Discord server