mcp-dns
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mcp-dns
Model Context Protocol server for DNS lookups — gives AI agents two tools: resolve_dns (A, AAAA, CNAME, MX, TXT, NS, SOA, SRV, CAA) and reverse_dns (PTR). Built on node:dns only: no external APIs, no keys, no telemetry.
Playground
No install needed — try live DNS lookups in the browser at https://yeeeeezus.github.io/mcp-dns/ (DNS-over-HTTPS queries go straight from your browser to Google Public DNS). The server below is the same idea for AI agents.
Related MCP server: iDig DNS MCP Server
Why
Agents doing web work, security review, infrastructure debugging or mail deliverability checks constantly need DNS facts: where does this domain point, what are its nameservers, does it have SPF/DMARC records, what does this IP reverse to. Instead of hoping the model remembers a shell one-liner, give it typed tools that return structured answers over the MCP stdio transport.
Tools
resolve_dns
parameter | type | description |
| string | domain to resolve, e.g. |
| enum |
|
For SRV, pass the full query name (e.g. _xmpp-server._tcp.gmail.com).
reverse_dns
parameter | type | description |
| string | IPv4 or IPv6 address, e.g. |
Example exchange
Request:
{ "name": "resolve_dns", "arguments": { "domain": "gmail.com", "recordType": "MX" } }Response:
[
{ "exchange": "gmail-smtp-in.l.google.com", "priority": 5, "type": "MX" },
{ "exchange": "alt1.gmail-smtp-in.l.google.com", "priority": 10, "type": "MX" },
{ "exchange": "alt2.gmail-smtp-in.l.google.com", "priority": 20, "type": "MX" },
{ "exchange": "alt3.gmail-smtp-in.l.google.com", "priority": 30, "type": "MX" },
{ "exchange": "alt4.gmail-smtp-in.l.google.com", "priority": 40, "type": "MX" }
]Install
Run directly without cloning:
$ npx github:yeeeeezus/mcp-dnsor from a checkout:
$ git clone https://github.com/yeeeeezus/mcp-dns
$ cd mcp-dns && npm install && npm run build
$ node dist/index.jsClaude Desktop / any MCP client
{
"mcpServers": {
"mcp-dns": {
"command": "npx",
"args": ["github:yeeeeezus/mcp-dns"]
}
}
}Behavior notes
ENOTFOUND/ENODATAare mapped to clean tool errors ("no MX records found for …") instead of stack traces.Hostnames are validated before resolution; URLs and paths are rejected up front.
TXT record chunks are joined into single strings (the DNS wire format splits long TXT values).
Output is pretty-printed JSON text, one record set per call.
Development
$ npm install
$ npm test8 tests, including a full integration test that spawns the built server and speaks MCP JSON-RPC over stdio: initialize handshake, tools/list, two real tools/call resolutions, and an error-path check.
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
29 DNS, SEO, SSL, security, WHOIS & mail tools for AI agents. Pay per call (x402) or card API key.
Free, no-API-key network lookups for AI agents — IP geolocation, DNS, WHOIS, HTTP and SSL/TLS certificate checks, and full domain health reports.
A domain's DNS records and RDAP registration per call for AI agents. Paid per domain, no run.
Look up DNS information for any domain to troubleshoot issues and gather insights. Get fast, relia…
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables AI agents to manage DNS records through the Spaceship API, with specialized tools for common record types like A, AAAA, CNAME, MX, SRV, and TXT.1013MIT
- FlicenseNot gradedqualityDmaintenanceExposes 19 professional DNS diagnostic tools from the iDig API, enabling AI clients to perform DNS lookups, email security audits, DNSSEC validation, propagation checks, and more through natural language.-
- AlicenseAqualityDmaintenanceEnables AI agents to perform real-time WHOIS and RDAP lookups, domain availability checks, and TLD infrastructure exploration using native protocols without API keys.8MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to perform pay-per-call DNS record lookups (A, AAAA, MX, TXT, CNAME, NS, SOA, SRV) via Cloudflare DNS-over-HTTPS, with x402 micropayments and no API key or signup.MIT