certadomain MCP server
Official# certadomain MCP server
[日本語](README.ja.md)
An MCP server for the [certadomain.com](https://certadomain.com/) domain security checks. Ask your AI assistant to check a domain's email authentication (SPF / DKIM / DMARC), DNS health, phishing risk, subdomains, subdomain-takeover exposure, lookalike domains and TLS certificates.
- **Free, no sign-up.** It calls the public certadomain.com API, which needs no API key.
- **Local (stdio) only.** The server runs on your machine, so the free tier's per-IP rate limit is yours alone.
- **Shareable reports.** With `share: true`, a result is saved as a certadomain.com report page (valid 30 days) and its link is returned.
## Install
Requires Node.js 20 or later.
### Claude Code
```bash
claude mcp add certadomain -- npx -y @certadomain/mcp
```
### Claude Desktop
Add this to `claude_desktop_config.json` (Settings → Developer → Edit Config):
```json
{
"mcpServers": {
"certadomain": {
"command": "npx",
"args": ["-y", "@certadomain/mcp"]
}
}
}
```
### Cursor
Add this to `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (one project):
```json
{
"mcpServers": {
"certadomain": {
"command": "npx",
"args": ["-y", "@certadomain/mcp"]
}
}
}
```
## Tools
| Tool | What it tells you | Points |
| --- | --- | --- |
| `check_domain_overview` | Overall score (0–100) and grade (A–E) with the most important fixes. **Start here.** | 1 |
| `check_dns_health` | Name server redundancy, SOA/delegation, DNSSEC, CAA, MX | 1 |
| `check_email_auth` | SPF, DKIM (common selectors), DMARC, MX | 1 |
| `assess_phishing_risk` | Phishing risk from name patterns, DNS and registration age | 1 |
| `find_subdomains` | Subdomains from Certificate Transparency logs (first 50 listed, total shown) | 1 |
| `check_tls_certificate` | Certificate expiry/chain/key, TLS versions, HSTS, MTA-STS | 2 |
| `check_subdomain_takeover` | Dangling CNAMEs among up to 100 subdomains | 5 |
| `find_lookalike_domains` | Registered typosquatting / homograph domains (top 20 listed, total shown) | 5 |
| `get_report` | Reads a saved report by id or share URL | 1 |
Every diagnostic tool except `check_tls_certificate` takes `share` (default `false`); creating the report costs 1 more point. List tools take `limit` to change how many entries the text summary shows. The full API response is always returned as `structuredContent`.
### Free tier
The public API allows **60 points per 5 minutes per IP address** (fixed window), plus an edge limit of 100 requests per 5 minutes per IP. Report creation is limited to 20 per 5 minutes per IP. Browsing certadomain.com from the same network uses the same allowance. When the limit is reached the tool says how long to wait; the server never retries on its own.
## Configuration
| Variable | Description |
| --- | --- |
| `CERTADOMAIN_API_KEY` | API key for a paid plan. **Paid plans are in preparation** — see [pricing](https://certadomain.com/en/pricing.html). Not needed for the free tier. |
| `CERTADOMAIN_LANG` | Language of share links: `en` (default) or `ja`. |
| `CERTADOMAIN_BASE_URL` | API base URL (default `https://certadomain.com/api/v1`), for testing. Must be `https://`. |
Example with a key in Claude Code:
```bash
claude mcp add certadomain -e CERTADOMAIN_API_KEY=your-key -- npx -y @certadomain/mcp
```
## Acceptable use
Only check domains you own or are authorized to assess. See the [terms of use](https://certadomain.com/en/terms.html).
## Disclaimer
The service is provided on a best-effort basis, without warranty. Results come from DNS, registry (RDAP) and Certificate Transparency data and from third-party sources; they can be incomplete or out of date (most results are cached for about an hour), and scores are a prioritization aid, not a guarantee of security.
## Development
```bash
npm install
npm run build
npm test # unit tests (fetch is mocked)
CERTADOMAIN_LIVE=1 npm test # also calls the real API (about 17 points)
npx @modelcontextprotocol/inspector node dist/index.js
```
API reference: [OpenAPI](https://certadomain.com/api/v1/openapi.json) · [certadomain-api](https://github.com/certadomain/certadomain-api)
## License
MIT
TDQS
Scored across 9 tools
Each tool targets a clearly distinct aspect of domain security: overview, DNS health, email auth, phishing risk, subdomains, takeover, lookalikes, TLS, and saved reports. The overview tool overlaps by design with the detailed checks, but the description explicitly establishes a drill-down hierarchy rather than ambiguity.
All tools use consistent snake_case verb_noun naming: check_*, find_*, assess_*, get_*. The pattern is predictable and easy to scan.
Nine tools is well-scoped for a domain security assessment server, with each tool covering a meaningful and non-redundant capability. The rate-limit costs are also clearly marked, helping agents choose appropriately.
The surface covers the core lifecycle of domain security checks: overview, DNS, email authentication, phishing risk, subdomains, takeover, lookalikes, TLS, and report retrieval. Minor gaps exist, such as raw DNS queries or bulk/domain-monitoring operations, but these are not essential for the stated purpose.