MCP DNS
Utilizes Node.js native DNS module to perform DNS lookups for various record types (A, AAAA, MX, TXT, CNAME, NS, etc.) through a standardized MCP interface.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP DNSquery A records for example.com"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 querytype: The DNS record type (A, AAAA, MX, TXT, CNAME, NS, etc.)
Development
Prerequisites
Node.js (latest LTS version recommended)
npm
Setup
Clone the repository:
git clone https://github.com/glucn/mcp-dns.git
cd mcp-dnsInstall dependencies:
npm installBuild the project:
npm run buildProject Structure
src/- Source code directoryserver.ts- Main server implementation
build/- Compiled JavaScript outputpackage.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
Other Links
Personal Blog: Building My First MCP Server: A DNS Query Tool
Available Tools
1 tooldns-queryC
Make a DNS query for a given name and type
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The domain name to query | |
| type | Yes | The DNS record type (A, AAAA, MX, TXT, CNAME, NS, etc.) |
TDQS
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.
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.
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.
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.
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.
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 tool update
- First observed
dns-query
TDQS
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.
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.
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.
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
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
DNS MCP — DNS and network lookup tools
Look up DNS information for any domain to troubleshoot issues and gather insights. Get fast, relia…
MCP server for DNSimple — domains, DNS zone records, availability, pricing and contacts.
Remote MCP server: 19 domain-hygiene and email-auth tools (DNS, SPF, DMARC, DKIM, TLS).
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides comprehensive domain analysis capabilities including WHOIS lookups, DNS record queries, and DNS health checking.14MIT
- AlicenseAqualityDmaintenanceEnables 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.4642MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol (MCP) server that provides comprehensive domain name research tools, including RDAP, WHOIS, and DNS query functionality.12Apache 2.0
- AlicenseAqualityDmaintenanceMCP server providing DNS resolution, reverse DNS, RDAP-based WHOIS, and IP geolocation lookups. No API keys required , and all upstreams are public.4MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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