Skip to main content
Glama
MCP DNS

MCP DNS

by glucn

MCP DNS

A Model Context Protocol (MCP) tool that provides DNS querying capabilities. This tool allows you to perform DNS lookups for various record types through a standardized MCP interface.

Features

  • DNS querying for various record types (A, AAAA, MX, TXT, CNAME, NS, etc.)

  • Simple and standardized MCP interface

  • Built with TypeScript for type safety

  • Uses Node.js native DNS module

Related MCP server: Lookup-Domain

Usage

The tool provides a dns-query command that accepts two parameters:

  • name: The domain name to query

  • type: The DNS record type (A, AAAA, MX, TXT, CNAME, NS, etc.)

Development

Prerequisites

  • Node.js (latest LTS version recommended)

  • npm

Setup

  1. Clone the repository:

git clone https://github.com/glucn/mcp-dns.git
cd mcp-dns
  1. Install dependencies:

npm install
  1. Build the project:

npm run build

Project Structure

  • src/ - Source code directory

    • server.ts - Main server implementation

  • build/ - Compiled JavaScript output

  • package.json - Project configuration and dependencies

Dependencies

  • @modelcontextprotocol/sdk - MCP SDK for server implementation

  • zod - TypeScript-first schema validation

  • TypeScript - For type safety and modern JavaScript features

Available Tools

1 tool
dns-queryC

Make a DNS query for a given name and type

Inputs: name (required), type (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of confusion or overlap between tools. The tool's purpose is clearly defined as making DNS queries, leaving no ambiguity for an agent to misselect among alternatives.

    Naming Consistency5/5

    A single tool inherently has perfect naming consistency, as there are no other tools to compare against. The tool name 'dns-query' follows a clear and descriptive pattern, using a hyphen to separate domain and action.

    Tool Count2/5

    A single tool is generally too few for a DNS server's scope, which typically involves operations like querying, resolving, or managing DNS records. This minimal set feels thin and may limit functionality for agents needing more comprehensive DNS interactions.

    Completeness2/5

    The tool surface is severely incomplete for a DNS domain. While 'dns-query' covers basic lookups, there are obvious gaps such as reverse DNS lookups, record management (e.g., adding or deleting records), or handling different DNS server configurations, which could cause agent failures in broader DNS-related tasks.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that provides comprehensive domain analysis capabilities including WHOIS lookups, DNS record queries, and DNS health checking.
      14
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      A Model Context Protocol (MCP) server that provides comprehensive domain name research tools, including RDAP, WHOIS, and DNS query functionality.
      1
      2
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables DNS record lookups for types like A, MX, TXT, and CNAME, bulk queries of all major record types, and reverse DNS resolution from IP addresses to hostnames.
      94 npm
      MIT