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.
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
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:
- Install dependencies:
- Build the project:
Project 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
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
A Model Context Protocol tool that provides DNS querying capabilities for various record types (A, AAAA, MX, TXT, CNAME, NS, etc.) through a standardized MCP interface.
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server that enables natural language querying of the Censys Search API for domain, IP, and FQDN reconnaissance, providing information about hosts, DNS, certificates, and services in real-time.Last updated -3Python
- -securityAlicense-qualityA Model Context Protocol server that provides network analysis tools for security professionals, enabling AI models like Claude to perform tasks such as ASN lookups, DNS analysis, WHOIS retrieval, and IP geolocation for security investigations.Last updated -1PythonApache 2.0
- -securityAlicense-qualityA Model Context Protocol server that provides comprehensive domain analysis capabilities including WHOIS lookups, DNS record queries, and DNS health checking.Last updated -2PythonMIT License
- AsecurityAlicenseAqualityA comprehensive Model Context Protocol server providing access to 70+ IT tools for developers and system administrators, including encoding/decoding, text manipulation, hashing, and network utilities.Last updated -764006TypeScriptMIT License