# DNS Lookup MCP: Bulk DNS, MX, SPF and DMARC

> DNS Lookup MCP: Bulk DNS, MX, SPF and DMARC is a paid MCP server for email validation. Bulk DNS, MX, SPF and DMARC lookups for lists of domains, exposed as an MCP server. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Paid
- **Platforms:** API, Web
- **Website:** https://apify.com/publicrecords/dns-lookup
- **Repository:** https://github.com/geminigeorge22/publicrecords-mcp/tree/HEAD/servers/dns-lookup-mcp
- **MCP Registry name:** io.github.GeminiGeorge22/dns-lookup-mcp
- **Categories:** [email validation](https://ai-powered.com/categories/email-validation)
- **Listing updated:** 2026-11-27

## About

Hands a list of domains, URLs or email addresses to a DNS lookup run and returns one structured row per domain. Each row covers A, AAAA, CNAME, MX, NS, TXT, SOA and CAA records along with TTLs, and flags domains that do not exist so dead entries can be removed from a list.

Beyond raw records, the lookup reads the SPF and DMARC policies, names the email provider from MX hosts, and reports whether the answer was DNSSEC-validated. Queries go to Cloudflare's 1.1.1.1 resolver over HTTPS, with Google Public DNS as a fallback when Cloudflare fails or times out.

The server is hosted by Apify's MCP gateway and runs the underlying Actor on the caller's own Apify account, so it is billed per domain looked up. It suits deliverability and IT teams auditing email setup across many domains, and sales or data teams cleaning lead lists.

## Features

- **Bulk record lookup:** Checks thousands of domains in one run, returning one row per domain with the requested record types.
- **SPF and DMARC checks:** Reads the SPF record and its include domains and parses the DMARC policy, subdomain policy and report addresses.
- **Email provider detection:** Identifies the mail provider from MX host names and reports whether the domain accepts email.
- **Non-existence flagging:** Marks domains that return NXDOMAIN so dead entries can be filtered out of a list.
- **DNSSEC status:** Reports whether the resolver validated the answer with DNSSEC.
- **Standard MCP connection:** Connects to MCP clients over Streamable HTTP with Apify OAuth or an API token.

## Good for

- Auditing SPF, DMARC and MX configuration across a portfolio of domains
- Removing non-existent or non-mail domains from a sales lead list
- Checking which mail provider a prospect's domain uses
- Monitoring name server and CAA changes for a set of sites
- Letting an AI assistant answer DNS questions about a batch of domains

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http dns-lookup-mcp 'https://mcp.apify.com?tools=publicrecords/dns-lookup'
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "dns-lookup-mcp": {
      "type": "http",
      "url": "https://mcp.apify.com?tools=publicrecords/dns-lookup"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://mcp.apify.com?tools=publicrecords/dns-lookup
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "dns-lookup-mcp": {
      "url": "https://mcp.apify.com?tools=publicrecords/dns-lookup"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "dns-lookup-mcp": {
      "type": "http",
      "url": "https://mcp.apify.com?tools=publicrecords/dns-lookup"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://mcp.apify.com?tools=publicrecords/dns-lookup
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add dns-lookup-mcp --url 'https://mcp.apify.com?tools=publicrecords/dns-lookup'
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.dns-lookup-mcp]
url = "https://mcp.apify.com?tools=publicrecords/dns-lookup"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "dns-lookup-mcp": {
      "httpUrl": "https://mcp.apify.com?tools=publicrecords/dns-lookup"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http dns-lookup-mcp 'https://mcp.apify.com?tools=publicrecords/dns-lookup'

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "dns-lookup-mcp": {
      "serverUrl": "https://mcp.apify.com?tools=publicrecords/dns-lookup"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "dns-lookup-mcp": {
      "url": "https://mcp.apify.com?tools=publicrecords/dns-lookup",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "dns-lookup-mcp": {
      "type": "streamableHttp",
      "url": "https://mcp.apify.com?tools=publicrecords/dns-lookup"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "dns-lookup-mcp": {
      "url": "https://mcp.apify.com?tools=publicrecords/dns-lookup"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "dns-lookup-mcp": {
      "url": "https://mcp.apify.com?tools=publicrecords/dns-lookup"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "dns-lookup-mcp": {
      "url": "https://mcp.apify.com?tools=publicrecords/dns-lookup"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "dns-lookup-mcp": {
      "url": "https://mcp.apify.com?tools=publicrecords/dns-lookup"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://mcp.apify.com?tools=publicrecords/dns-lookup
```

Enter a Name (for example "DNS Lookup MCP: Bulk DNS, MX, SPF and DMARC"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin. When we checked, this server asked for a bearer token. Add it under HTTP headers as Authorization: Bearer <your token>.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "dns-lookup-mcp": {
      "type": "http",
      "url": "https://mcp.apify.com?tools=publicrecords/dns-lookup"
    }
  }
}
```

## FAQ

### Can I check only MX records?

Yes. Setting the record types to MX returns only those records, and the SPF and DMARC fields are still filled when email checks are on.

### Does DNS Lookup MCP: Bulk DNS, MX, SPF and DMARC work for subdomains?

Yes. Enter the full name, such as mail.example.com, and DMARC is read at _dmarc. followed by the name entered.

### What does dnssecValidated mean?

The resolver validated the answer with DNSSEC. A false value usually means the domain is not signed.

### Which record types are not included?

PTR, SRV and other rarer record types are not included, and no WHOIS or IP registry data is returned.

### Is DNS Lookup MCP: Bulk DNS, MX, SPF and DMARC free?

No. DNS Lookup MCP: Bulk DNS, MX, SPF and DMARC is a paid product.

### How do I add DNS Lookup MCP: Bulk DNS, MX, SPF and DMARC to Claude Code?

Run this command in your terminal: claude mcp add --transport http dns-lookup-mcp 'https://mcp.apify.com?tools=publicrecords/dns-lookup'

### What are the best alternatives to DNS Lookup MCP: Bulk DNS, MX, SPF and DMARC?

The closest alternatives to DNS Lookup MCP: Bulk DNS, MX, SPF and DMARC are Bulk DNS, SSL & Email Security (Apify) by Dataset Works, Outbound Domain Preflight, DMARC, SPF & DKIM Checker by Signalloom (via Apify MCP), Dns Check and MCP Email Auditor.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Status: checked automatically by AIPoweredBot on 29 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Bulk DNS, SSL & Email Security (Apify) by Dataset Works](https://ai-powered.com/mcp/bulk-dns-ssl-and-email-security-apify-by-dataset-works): Bulk DNS, SSL & Email Security (Apify) by Dataset Works is a paid MCP server for communication.
- [Outbound Domain Preflight](https://ai-powered.com/mcp/outbound-domain-preflight): Outbound Domain Preflight is a paid MCP server for email testing.
- [DMARC, SPF & DKIM Checker by Signalloom (via Apify MCP)](https://ai-powered.com/mcp/dmarc-spf-and-dkim-checker-by-signalloom-via-apify-mcp): DMARC, SPF & DKIM Checker by Signalloom (via Apify MCP) is a paid MCP server for communication.
- [Dns Check](https://ai-powered.com/mcp/dns-check): Dns Check is an MCP server for network diagnostics.
- [MCP Email Auditor](https://ai-powered.com/mcp/mcp-email-auditor): MCP Email Auditor is an open-source MCP server for communication.

---
Source: https://ai-powered.com/mcp/dns-lookup-mcp-bulk-dns-mx-spf-and-dmarc
