Agents

An MCP server for your email

Every cloudmail deployment serves the Model Context Protocol at /mcp. Claude, Cursor and other MCP clients sign in through your browser, then read, search, file, draft and send with the permissions of the person who connected them.

What an MCP client can do

Sign in with OAuth

The client opens your browser and you approve it. There is no token to paste.

Read, search, file, draft and send

Tools cover mail, labels, rules, templates, scheduled sends and agent inboxes.

The person's own permissions

A viewer can read but not send, and a client only sees the mailboxes that person can use.

Sends wait for approval

A send tool returns pending_approval and a person decides. There is no tool to approve.

Email is marked untrusted

Message content comes back wrapped as untrusted data, and a flagged read holds that session's sends for 30 minutes.

Nothing is deleted for good

Delete tools move mail to Trash, and no tool empties it.

Every way an agent can connectcloudmail and AgentMail MCP servers compared

Connect Claude Code

In the docs: MCP server: tools and client setup.

MCP over Streamable HTTP
claude mcp add --transport http cloudmail \
  https://mail.yourdomain.com/mcp

Questions about the MCP server

Which MCP clients work with cloudmail?

Claude Code, Claude Desktop, Claude.ai connectors, Cursor and any client that follows the MCP authorization spec. A headless agent can send an API token in place of OAuth.

Can an MCP client send email without me?

Not unless you allow it. Its send is held in Pending approval until a person approves it. You can let one trusted app send on its own, per mailbox, or allowlist recipients.

Does it work with Gmail or Outlook mailboxes?

No. The MCP server reads and sends the mail in your cloudmail deployment. You can import your old mail from Gmail or any IMAP account first.

One-time licence

Your mail, in your account, paid for once.