{
  "markdown": "# mcp-server-dns\n\n[![npm version](https://img.shields.io/npm/v/mcp-server-dns.svg)](https://www.npmjs.com/package/mcp-server-dns)\n[![npm downloads](https://img.shields.io/npm/dm/mcp-server-dns.svg)](https://www.npmjs.com/package/mcp-server-dns)\n[![CI](https://github.com/ofershap/mcp-server-dns/actions/workflows/ci.yml/badge.svg)](https://github.com/ofershap/mcp-server-dns/actions/workflows/ci.yml)\n[![TypeScript](https://img.shields.io/badge/TypeScript-strict-blue.svg)](https://www.typescriptlang.org/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nDNS lookups, reverse DNS, WHOIS, and domain checks from your AI assistant. No API keys, no config. Powered by Node.js built-in DNS.\n\n```bash\nnpx mcp-server-dns\n```\n\n> Works with Claude Desktop, Cursor, VS Code Copilot, and any MCP client. Uses Node.js native `dns` module, so there's nothing to sign up for.\n\n![MCP server for DNS lookups, WHOIS queries, and domain checks](assets/demo.gif)\n\n<sub>Demo built with <a href=\"https://github.com/ofershap/remotion-readme-kit\">remotion-readme-kit</a></sub>\n\n## Why\n\nDNS and WHOIS lookups come up more often than you'd think during development. Debugging email delivery? You need MX records. Setting up a new domain? Check the nameservers. Investigating a suspicious URL? WHOIS tells you who owns it. The existing MCP options for this require paid API keys (like WhoisXML API). This server uses Node.js built-in DNS resolution and public WHOIS servers, so it works out of the box with zero accounts or credentials.\n\n## Tools\n\n| Tool                | What it does                                           |\n| ------------------- | ------------------------------------------------------ |\n| `dns_lookup`        | Look up A, AAAA, MX, TXT, NS, CNAME, SOA, SRV, or PTR  |\n| `reverse_dns`       | Perform reverse DNS (PTR) lookup on an IP address      |\n| `resolve_all`       | Resolve A, AAAA, MX, TXT, NS, CNAME in one call        |\n| `check_nameservers` | Get nameserver (NS) records for a domain               |\n| `whois`             | Query WHOIS data (follows IANA referrals to registrar) |\n\n## Quick Start\n\n### Cursor\n\nAdd to `.cursor/mcp.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"dns\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"mcp-server-dns\"]\n    }\n  }\n}\n```\n\n### Claude Desktop\n\nAdd to `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"dns\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"mcp-server-dns\"]\n    }\n  }\n}\n```\n\n### VS Code\n\nAdd to user settings or `.vscode/mcp.json`:\n\n```json\n{\n  \"mcp\": {\n    \"servers\": {\n      \"dns\": {\n        \"command\": \"npx\",\n        \"args\": [\"-y\", \"mcp-server-dns\"]\n      }\n    }\n  }\n}\n```\n\n## Examples\n\n- \"What are the DNS records for example.com?\"\n- \"Do a reverse DNS lookup on 8.8.8.8\"\n- \"Show me the WHOIS info for github.com\"\n- \"What nameservers does cloudflare.com use?\"\n- \"Resolve all record types for google.com\"\n- \"Check the MX records for my-company.com\"\n\n## Development\n\n```bash\ngit clone https://github.com/ofershap/mcp-server-dns.git\ncd mcp-server-dns\nnpm install\nnpm test\nnpm run build\n```\n\n## See also\n\nMore MCP servers and developer tools on my [portfolio](https://gitshow.dev/ofershap).\n\n## Author\n\n[![Made by ofershap](https://gitshow.dev/api/card/ofershap)](https://gitshow.dev/ofershap)\n\n[![LinkedIn](https://img.shields.io/badge/LinkedIn-Connect-0A66C2?style=flat&logo=linkedin&logoColor=white)](https://linkedin.com/in/ofershap)\n[![GitHub](https://img.shields.io/badge/GitHub-Follow-181717?style=flat&logo=github&logoColor=white)](https://github.com/ofershap)\n\n---\n\n<sub>README built with [README Builder](https://ofershap.github.io/readme-builder/)</sub>\n\n## License\n\nMIT © 2026 Ofer Shapira\n",
  "bytes": 3735,
  "sha": "1589ed686b4ddb8d34158189e6fb2036e04c0eb840ca59e544189964df8a3af7",
  "repo_slug": "ofershap/mcp-server-dns",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_ofershap_dns_1feb0b16/readme"
}