# Domain Security

> Domain Security is an open-source MCP server for security. Audit a domain's SPF, DKIM, DMARC, DNSSEC, TLS and WHOIS from your AI client, no keys. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, self-hosted, API
- **Repository:** https://github.com/ortamarco/domain-security-mcp-server
- **MCP Registry name:** io.github.OrtaMarco/domain-security-mcp-server
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-18

## About

Domain Security packs 19 read-only checks into one stdio MCP server that needs Node.js 20.18 or newer and no API keys. The headline tool, email_auth_audit, runs SPF, DKIM, DMARC and MX checks together and returns a 0 to 100 score, an A to F grade and prioritised fixes. The other tools go deeper on single topics, from recursive SPF lookup counting against the RFC 7208 limit of 10 to HTTP security header grading and raw email header analysis.

Every tool declares an output schema and returns structured content alongside Markdown or JSON text. Because the tools connect to hosts the caller names, outbound connections are screened against server-side request forgery at connect time, redirects are re-checked on each hop, and bodies and timeouts are capped.

Besides stdio, it can serve stateless streamable HTTP, bound to localhost by default, with optional allowed hosts, allowed origins and a bearer token for exposing it.

## Features

- **One-call email audit:** email_auth_audit combines SPF, DKIM, DMARC and MX into a graded report.
- **Wide DNS coverage:** Checks MTA-STS, TLS-RPT, BIMI, DNSSEC, CAA and general record lookups.
- **Certificate and WHOIS:** Reports TLS certificate issuer and expiry and raw WHOIS data.
- **Header analysis:** Parses raw email headers into authentication verdicts and a hop chain.
- **SSRF protection:** Refuses private and reserved addresses at connect time.
- **Optional HTTP mode:** Serves streamable HTTP with host, origin and bearer-token controls.

## Good for

- Check whether a domain can be spoofed
- Find SPF records that exceed the 10-lookup limit
- Review a site's security headers
- See when a TLS certificate expires
- Trace delays in a suspicious email's headers

## Install

### Claude Code (Terminal)

```sh
claude mcp add domain-security-mcp-server -- npx -y domain-security-mcp-server
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "domain-security-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "domain-security-mcp-server"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "domain-security-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "domain-security-mcp-server"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "domain-security-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "domain-security-mcp-server"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "domain-security-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "domain-security-mcp-server"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "domain-security-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "domain-security-mcp-server"
      ]
    }
  }
}
```

## Tools

- `email_auth_audit`: One-call SPF, DKIM, DMARC and MX audit with score, grade and prioritised fixes.
- `spf_check`: Parses SPF and counts DNS lookups against the RFC 7208 limit.
- `dmarc_check`: Parses the DMARC record and flags weak or missing settings.
- `dkim_check`: Probes DKIM selector keys.
- `mta_sts_check`: Validates the MTA-STS TXT record and policy file.
- `tls_rpt_check`: Checks the TLS-RPT record.
- `bimi_check`: Checks the BIMI record.
- `dnssec_check`: Checks DS and DNSKEY presence and DNSSEC validation.
- `dns_lookup`: Looks up A, AAAA, CNAME, MX, NS, TXT and SOA records.
- `ssl_certificate`: Reports TLS certificate issuer, validity, SANs and fingerprint.
- `whois_lookup`: Returns registrar, dates, name servers and status.
- `reverse_dns`: Returns PTR records for an IP.
- `ip_geolocation`: Offline IP geolocation plus reverse DNS.
- `mx_lookup`: Lists mail servers with priority and IPs.
- `caa_check`: Shows which CAs may issue certificates.
- `blacklist_check`: Checks an IP or domain against open email DNSBLs.
- `dns_propagation`: Compares a record across five public resolvers.
- `http_security_headers`: Grades HSTS, CSP and other security headers.
- `analyze_email_headers`: Parses raw headers into authentication verdicts and a hop chain.

## FAQ

### Does it need API keys?

No.

### Is anything written or changed?

No. Every tool is read-only.

### How do I add it to Claude Code?

Run claude mcp add domain-security -- npx -y domain-security-mcp-server.

### Can I host it remotely?

Yes, with TRANSPORT=http; it binds to 127.0.0.1 unless you set HOST, and MCP_AUTH_TOKEN adds bearer auth.

### Is Domain Security free?

Yes. Domain Security is open source, so you can use and self-host it for free.

### How do I add Domain Security to Claude Code?

Run this command in your terminal: claude mcp add domain-security-mcp-server -- npx -y domain-security-mcp-server

### What are the best alternatives to Domain Security?

The closest alternatives to Domain Security are REA, AiSOC, redamon, x64dbg-mcp-server and Agent Roast.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [AiSOC](https://ai-powered.com/mcp/aisoc): AiSOC is an open-source MCP server for ai models and llm tooling.
- [redamon](https://ai-powered.com/mcp/redamon): redamon is an open-source MCP server for ai models and llm tooling.
- [x64dbg-mcp-server](https://ai-powered.com/mcp/x64dbg-mcp-server): x64dbg-mcp-server is an open-source MCP server for ai models and llm tooling.
- [Agent Roast](https://ai-powered.com/mcp/agent-roast): Agent Roast is an open-source MCP server for developer tools.
- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.
- [Leash](https://ai-powered.com/mcp/leash): Leash is a free MCP server for security.
- [Cisa Kev](https://ai-powered.com/mcp/cisa-kev): Cisa Kev is a freemium MCP server for security.

---
Source: https://ai-powered.com/mcp/domain-security
