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 "Deploy 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 DNS query 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: Lookup-Domain
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
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
Scored across 1 tool
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
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
- AlicenseAqualityDmaintenanceA Model Context Protocol (MCP) server that provides comprehensive domain name research tools, including RDAP, WHOIS, and DNS query functionality.12Apache 2.0
- FlicenseAqualityDmaintenanceProvides DNS lookup and email authentication diagnostic tools (SPF, DKIM, DMARC, MX, etc.) for use with MCP-compatible clients. Enables natural language queries to check DNS records and email health.7-
- AlicenseNot gradedqualityCmaintenanceEnables 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 npmMIT