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
You must be authenticated.
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
- -securityAlicense-qualityA Model Context Protocol (MCP) server that provides intelligent access to PowerPlatform/Dataverse entities and records. This tool offers context-aware assistance, entity exploration and metadata access.Last updated -4661JavaScriptMIT License
- -securityAlicense-qualityA Model Context Protocol (MCP) implementation for connecting to and working with various database systems.Last updated -2317TypeScriptMIT License
- -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 -1Python
- -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