Skip to main content
Glama
glucn

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: DNS MCP Server

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

ParametersJSON Schema
NameRequiredDescriptionDefault
nameYesThe domain name to query
typeYesThe DNS record type (A, AAAA, MX, TXT, CNAME, NS, etc.)

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions making a DNS query but fails to disclose critical traits such as network dependencies, potential latency, error handling, authentication needs, or rate limits. The description is minimal and does not compensate for the absence of annotations, leaving significant gaps in understanding the tool's behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise, consisting of a single sentence that directly states the tool's function without any extraneous information. It is front-loaded and efficiently communicates the core purpose, making it easy to parse and understand quickly. Every word earns its place, adhering to best practices for brevity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (a network query with potential dependencies) and the absence of both annotations and an output schema, the description is insufficiently complete. It does not explain what the query returns, error conditions, or operational constraints. For a tool that interacts with external systems, more context is needed to ensure reliable use by an AI agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, clearly documenting both parameters ('name' and 'type') with their purposes. The description adds no additional semantic meaning beyond what the schema provides, as it only restates the parameters generically. According to the rules, with high schema coverage, the baseline score is 3, which is appropriate here since the description does not enhance parameter understanding.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Make a DNS query') and the target ('for a given name and type'), which is specific and unambiguous. It distinguishes the tool's function well, though without sibling tools, differentiation isn't applicable. The purpose is not vague or tautological, but it could be slightly more detailed about the scope (e.g., network query vs. local lookup).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives, prerequisites, or context for invocation. It simply states what the tool does without indicating scenarios, limitations, or comparisons to other methods. This lack of usage context leaves the agent without direction on optimal application.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 1 tool update
    • First observeddns-query

TDQS

B3.1/5.0
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
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

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
    Enables comprehensive DNS operations including lookups for various record types, reverse DNS queries, batch processing, and DNS resolution tracing. Supports multiple DNS servers with configurable caching and robust error handling.
    4
    64
    2
    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

Latest Blog Posts

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/glucn/mcp-dns'

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