Skip to content

Build an Inbox-Triage Agent over MCP

To build an inbox-triage agent, give it a real mailbox over Sairaph Mail's native MCP server, then loop: read inbound, classify each message, and act - reply, escalate, or ignore. Point any MCP-capable runtime at https://mail.sairaph.com/mcp/v1/mcp with a read_write mailbox key as a Bearer token, and the mailbox's read and send actions appear as tools. Per-mailbox suppression keeps the agent from re-emailing addresses that have bounced or unsubscribed.

Last updated June 30, 2026

This guide builds the triage loop in four steps.

Step 1 - Provision the mailbox and a read_write key

Create the triage mailbox in the dashboard and issue a read_write key - the agent needs to both read inbound and send replies. Give the key an expiry so a leaked secret ages out on its own. Issuance is dashboard-only:

Shell

Step 2 - Register the MCP server with your runtime

Any MCP-capable agent runtime connects the same way - streamable-HTTP transport, mailbox key as the Bearer token:

YAML

For an MCP-capable client generally:

Shell

Once connected, the mailbox's actions are tools the agent can call (sending mail, and listing/reading inbound).

Step 3 - Read inbound and classify

The triage loop starts by reading inbound. Use the cache for routine sweeps and a live, on-demand fetch when you need the freshest state. Over REST the read leg is:

cURL

Feed each message to the model with a tight classification instruction, for example:

Text

Because the inbox is two-way and owned, the agent has the full thread for context - not just a single webhook payload.

Step 4 - Act, and respect suppression

For REPLY, the agent sends through the same MCP tool (or REST). Idempotency keeps a retried run from double-sending:

cURL

Per-mailbox suppression is isolated to this mailbox, so a bounce or unsubscribe on the triage inbox never affects another mailbox in your tenant - important when one tenant runs many agents.

How Sairaph Mail fits a triage agent

A triage agent is only as good as the inbox behind it. Sairaph Mail gives the agent a real, owned, two-way mailbox over a native MCP server - scoped, expiring keys, per-mailbox suppression, EU-hosted by default, and a dashboard to watch every classification and reply. See the inbox-triage use case for the product framing and the MCP email server pillar for the full tool surface.

Next step: get started with a mailbox and a read_write key, then follow the quickstart and MCP docs.

  • Inbox Triage Agent

    Learn more.

    Learn more
  • MCP Email Server: Give Your Agent Email as Native Tools

    An in-depth guide.

    Learn more
  • MCP

    Connect over the MCP server.

    Learn more
  • Quickstart

    Zero to send + receive in minutes.

    Learn more

Give your agent a real mailbox

Two-way email over REST and a native MCP server, EU-resident by default.

EU data residencyPer-customer encryptionNative MCP