API & MCP
Everything a person can do on E-mail Infrastructure Explorer, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://emailinfrastructureexplorer.usefulweb.site/api/v1/calculate– run E-mail Infrastructure ExplorerGET https://emailinfrastructureexplorer.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
E-mail Infrastructure Explorer
Checks how a domain receives and protects e-mail: MX hosts with priorities and addresses, SPF with a recursive DNS-lookup count across include: chains, DMARC policy and reporting, DKIM keys at ten common selectors, MTA-STS record and policy file, TLS-RPT and BIMI. Produces a transparent 100-point score and concrete DNS fixes. Works live or on pasted zone records.
| Field | Type | Default | Description |
|---|---|---|---|
mode | select (live, paste) | "live" | Mode |
domain (required) | text | — | Domain |
records | textarea | — | DNS records (paste mode). Zone-file lines: name [ttl] [IN] TYPE value. Use @ for the domain, relative names like _dmarc or selector1._domainkey, and a trailing dot for other domains (e.g. include targets). |
mtaStsPolicy | textarea | — | MTA-STS policy file (paste mode, optional) |
Example request
Pasted records for a typical business domain
curl -X POST https://emailinfrastructureexplorer.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"mode":"paste","domain":"example.org","records":"; pasted DNS for example.org\n@ MX 10 mx1.example.net.\n@ MX 20 mx2.example.net.\nmx1.example.net. A 192.0.2.10\nmx2.example.net. A 192.0.2.20\n@ TXT \"v=spf1 include:_spf.example.net include:sendgrid.net ip4:198.51.100.0/24 ~all\"\n_spf.example.net. TXT \"v=spf1 ip4:192.0.2.0/24 include:_spf2.example.net -all\"\n_spf2.example.net. TXT \"v=spf1 a mx -all\"\n_dmarc TXT \"v=DMARC1; p=quarantine; pct=100; rua=mailto:dmarc@example.org\"\nselector1._domainkey TXT \"v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvO65ahmEjafCxJBT+BnCuE+pM97kMp7njI4Na2g3vJ3AIqbUS2lTQVRlUng5T7BKOAHVmKUnj2fWM+iRt5mQAZ649dKjdQwOPULKmoVMjGMH8SB3P6CYaxJrVgS+PGVtEFgcj8UADfED2ylfiZgAPw7Fx3PQxyfWbenvdEsLyjSyl/2fr/stYzeGvaRDjKd91UoPqZEBC3fyw5Eloyq5L/U2yCSJypPpFe04kC6i4OcIlx6bJUkJWMaodPyFd3x1wuS9jklXaF+yyZhBMIdQzNCyf20QM4lf/SjmyzMsyYs5ILkH4548cgWHuM+wGdGHf5GwI6dTFv0a90bL3hlLdQIDAQAB\"\n_mta-sts TXT \"v=STSv1; id=20261001T000000\"\n_smtp._tls TXT \"v=TLSRPTv1; rua=mailto:tlsrpt@example.org\"","mtaStsPolicy":"version: STSv1\nmode: testing\nmx: mx1.example.net\nmx: *.example.net\nmax_age: 604800"}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://emailinfrastructureexplorer.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
email_infrastructure_explorer - Local stdio connector:
node src/mcp-stdio.ts --tool=email-infrastructure-explorer
{
"mcpServers": {
"email-infrastructure-explorer": { "type": "http", "url": "https://emailinfrastructureexplorer.usefulweb.site/mcp" }
}
}