Skip to main content
Glama
mailfact-mcp

mailfact-mcp

Official
by thenewit-eu

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

MAILFACT_API_TOKEN

yes

—

MAILFACT_API_URL

no

https://api.mailfact.app

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-mcp

Related MCP server: Zimbra MCP

Cursor

Add the token in Cursor after installing. The deeplink does not carry it.

Install in Cursor

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

list_domains

GET /domains/?fqdn=

get_domain

GET /domains/{id}/

get_alignment_summary

GET /reports/records/summary/?group_by=day

get_reporter_coverage

GET /reports/records/summary/?group_by=reporter_org

list_sending_sources

GET /reports/records/summary/?group_by=source_ip (also source_ip_asn, header_from)

query_records

GET /reports/records/

list_aggregate_reports

GET /reports/aggregate/

get_report_records

GET /reports/aggregate/{id}/records/

whoami

GET /me/ and GET /billing/entitlement/resolved/

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 test

npm 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 tools
get_alignment_summaryAlignment by dayA
Read-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 domainB
Read-only

One domain by id, including its published DMARC policy snapshot and the RUA tag to publish.

Inputs: id (required).

get_reporter_coverageReporter coverageA
Read-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 reportA
Read-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 reportsA
Read-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 domainsA
Read-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 sourcesA
Read-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 rowsA
Read-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 identityB
Read-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

    A3.7/5.0

    Scored across 9 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables read-only inspection of Google Ads accounts through MCP, including account inventory, reporting, metadata, change history, and safe GAQL queries.
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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
    • A
      license
      A
      quality
      B
      maintenance
      Enables 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.
      7
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables 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.
      33
      MIT