mailfact-mcp
OfficialA read-only Mailfact MCP server for inspecting DMARC domains, counts, records, reports, and token/plan identity.
List domains or fetch one domain by id, including its published DMARC policy snapshot and RUA tag.
View per-day DMARC alignment summaries with pass/fail counts and disposition breakdowns.
See reporter coverage by receiving mailbox provider, sorted by volume.
List sending sources grouped by source IP, ASN, or From domain, including SPF/DKIM pass counts.
Query day-aggregated fact rows with filters such as domain, day range, source IP, alignment outcomes, disposition, reporter org, ASN, country, and sender/AS names.
List ingested aggregate reports and fetch per-record rows inside one report.
Introspect the token’s organisation and resolved plan features via
whoami.Use cursor/offset pagination and truncation signaling; fact-table tools return at most 50 rows and cap third-party strings.
It is read-only: no token minting, billing checkout, forensic message bodies, policy recommendations, scoring, or model calls.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mailfact-mcp show DMARC alignment summary for example.com"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mailfact-mcp
Read-only MCP server for a Mailfact tenant. Tools return DMARC counts and rows. They do not recommend a policy, score a domain, or call a model.
The server speaks Authorization: Token to the Mailfact API and
identifies itself with User-Agent: mailfact-mcp/<version>.
Configure
Variable | Required | Default |
| yes | — |
| no |
|
Mint the token in the product (POST /api/v1/tokens/). A read scope
is enough. The raw value is shown once.
Self-hosted and external_billing deployments use the same server:
set MAILFACT_API_URL to that origin (https://api.example.com, with
or without a trailing /api/v1).
npx -y mailfact-mcpRelated MCP server: Zimbra MCP
Cursor
Add the token in Cursor after installing. The deeplink does not carry it.
Or ~/.cursor/mcp.json:
{
"mcpServers": {
"mailfact": {
"command": "npx",
"args": ["-y", "mailfact-mcp"],
"env": {
"MAILFACT_API_TOKEN": "dmr_…",
"MAILFACT_API_URL": "https://api.mailfact.app"
}
}
}
}Claude Desktop and Claude Code
Same mcpServers block, in claude_desktop_config.json or the project's
.mcp.json.
Tools
Tool | API |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Fact-table tools return at most 50 rows. truncated: true means the
response was cut. Paginated tools also return next_cursor; pass it
back as cursor. They do not follow further pages themselves.
reporter_org, header_from, and the other third-party name fields
are cut at 120 characters.
Not exposed: token minting, billing checkout, forensic message bodies.
Tests
npm testnpm test checks row caps and error details. It does not call the API.
npm run test:e2e rebuilds the sibling dmarc-reporting web image,
ingests a real aggregate report, and calls the tools over stdio. It
needs Docker. GitHub Actions does not run it.
GitHub Actions runs npm test on every push and pull request.
Available Tools
9 toolsget_alignment_summaryAlignment by dayARead-only
Per-day message counts: total, DMARC pass, DMARC fail, and disposition (none, quarantine, reject). Counts are message-weighted. Default window is 30 days, clamped at 365. If the window has more than 50 days, the most recent 50 are returned and truncated is true. Pass an earlier day_before to see the days before those.
Inputs: domain, day_after, day_before.
get_domainGet domainBRead-only
One domain by id, including its published DMARC policy snapshot and the RUA tag to publish.
Inputs: id (required).
get_reporter_coverageReporter coverageARead-only
One row per receiving mailbox provider (the DMARC reporter_org), with message-weighted pass/fail counts and sources_seen. Sorted by volume descending. At most 50 rows.
Inputs: domain, day_after, day_before.
get_report_recordsRecords inside one aggregate reportARead-only
Re-parses one aggregate XML into per-record rows (source, count, alignment, disposition, identifiers). Third-party strings are length-capped. At most 50 rows. When truncated is true, pass next_offset back as offset.
Inputs: id (required), offset.
list_aggregate_reportsList aggregate reportsARead-only
One row per ingested aggregate XML. Use the id with get_report_records. Does not follow pagination: when truncated is true, pass next_cursor back as cursor. The cursor carries the filters.
Inputs: cursor, domain, reporter_org, date_end_after, +1 more.
list_domainsList domainsARead-only
Domains registered on this token's organisation. Pass fqdn for an exact hostname match (case-insensitive, trailing dot stripped). Returns ids the other tools take as domain.
Inputs: fqdn.
list_sending_sourcesSending sourcesARead-only
One row per sending IP (default), autonomous system, or From domain. Counts are message-weighted, including spf_passed and dkim_passed. Identity strings are the greatest value seen in the window and are length-capped. Sorted by volume descending. At most 50 rows; truncated is true when more existed.
Inputs: domain, group_by, day_after, day_before.
query_recordsQuery fact rowsARead-only
Day-aggregated fact rows. Use this to drill into one IP, day, or alignment outcome. Does not follow pagination: when truncated is true, pass next_cursor back as cursor. The cursor carries the filters, so the follow-up does not need to restate them. Rows are narrowed and third-party strings are length-capped.
Inputs: day, cursor, domain, day_after, +11 more.
whoamiToken identityBRead-only
The organisation this token is bound to, and the resolved plan features (api_tokens_enabled, retention_days, and the rest). user is null for an API token.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Most tools target distinct resources (domains, summaries, reporter orgs, sending sources, raw reports), and descriptions clarify boundaries. However, the record-oriented trio (query_records, get_report_records, list_aggregate_reports) plus get_alignment_summary overlap conceptually, so an agent may hesitate between drilling into records versus reports.
Names follow a clean verb_noun pattern (list_domains, get_domain, get_alignment_summary, list_sending_sources, query_records). The only deviation is whoami, which is idiomatic but breaks the pattern slightly.
Nine tools is well-scoped for a DMARC aggregate-reporting server, with each tool earning its place across domains, summaries, coverage, sources, and raw records.
The read-only reporting surface is broadly complete: domains, policy snapshots, daily summaries, reporter coverage, sending sources, and raw report access are all present. Minor gap: no mutation tools (e.g. registering a domain or publishing a DMARC policy), though read-only may be the intended scope.
Related MCP Connectors
Read-only MCP access to sessions, funnels, campaigns, errors, live visitors, and anomalies.
Read-only access to a Lumin project's logs, metrics, uptime checks, alerts and infrastructure.
Read-only MCP access to a documented IT fleet: state, changes, posture. 15 tools.
Read-only access to your KollGuard SOC 2 / HIPAA findings, posture, scans and tickets.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables read-only inspection of Google Ads accounts through MCP, including account inventory, reporting, metadata, change history, and safe GAQL queries.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables authenticated, read-only access to mailbox folders, tags, message metadata, and message text via MCP, while preventing send, draft, delete, move, tag-change, contact/calendar changes, and attachment downloads.MIT
- AlicenseAqualityBmaintenanceEnables read-only lookup and analysis of SaaS applications, transactions, invoices, spend, renewals, and people, including spend summaries, upcoming renewals, and missing-invoice checks, through an MCP client.7MIT
- AlicenseBqualityBmaintenanceEnables read-only access to Google Marketing Platform data across GMP Admin, Display & Video 360, Campaign Manager 360, and Search Ads 360 through OAuth-authenticated MCP tools for discovering accounts, campaigns, reports, and performance metrics.33MIT