MCP for agents

Your coding agent can write the email. Connect Mailclutch and it can send it, read it back and tell you whether it works, without you leaving the editor.

Install it

In Claude Code:

claude mcp add --transport http mailclutch https://app.mailclutch.com/mcp

In Cursor, .cursor/mcp.json:

{
  "mcpServers": {
    "mailclutch": {
      "url": "https://app.mailclutch.com/mcp"
    }
  }
}

In VS Code, .vscode/mcp.json:

{
  "servers": {
    "mailclutch": {
      "type": "http",
      "url": "https://app.mailclutch.com/mcp"
    }
  }
}

Any other client that speaks Streamable HTTP takes the same address.

Connect it

The first time it connects, your editor opens a Mailclutch page in your browser. In Claude Code, run /mcp and authenticate the server. The page offers two ways in:

  • Without an account. A temporary sandbox, ready at once: 24 hours, 50 messages. No sign-up, no key.
  • With your account. Your agent reaches your sandboxes and asks you which one to use.

Nothing to paste. Your editor keeps the connection in its own credential store, so no secret passes through the conversation.

Then ask for things

You never name a tool, you say what you want:

Point this project at a Mailclutch sandbox.
It fetches the sandbox's SMTP settings and writes them into your configuration.
Run the signup flow and confirm the account.
It waits for the email, reads it back, and uses the link or code inside to finish.
Show me the password reset email.
It gives you a link that opens the message in your browser. Nothing gets published.
Would this land in spam?
It scores the message out of 100 and names what drags it down.
Give me a link to that receipt for the pull request.
It publishes a copy anyone with the link can open, no account needed. The link lasts seven days by default.

What it can do

Your editor lists only the tools your connection can use.

MCP tools
ToolWhat it does
get_sandbox_credentialsGives the SMTP settings of the sandbox, to point your project at.
inject_emailPuts a message in without going over the network: what your app's own mailer rendered when it cannot reach SMTP, or a sample to try the tools on.
wait_for_emailWaits for your app's email to arrive instead of polling for it.
list_emailsShows what has been caught: sender, subject, a line of the body.
get_emailReads one message in full, and gives a link that opens it in your browser.
get_attachmentReads an attachment: text and images directly, anything else through a download link valid ten minutes.
extract_links_and_codesPulls the confirmation link or the one-time code out, ready to use.
check_deliverabilityScores the message out of 100 and says what would send it to spam.
create_share_linkPublishes a copy of a message at a link anyone can open, for a pull request or a chat.
get_connection_statusSays how this connection is signed in, and what it reaches.
create_temp_sandboxStarts a new temporary sandbox when the current one has expired or is full. Without an account.
list_sandboxesLists your sandboxes, so you can say “use the staging sandbox” and be understood. With an account.
search_emailsSearches everything you have kept, not just what is in front of you. With an account.
create_sandboxCreates a permanent sandbox without leaving the editor. It counts against your plan. With an account.

What it can reach

What each kind of connection reaches
ConnectionReaches
Without an accountIts current temporary sandbox, nothing else.
Signed in, or a token for your accountEvery sandbox you can work in, across your organisations.
A token for one sandboxThat sandbox only, without the account tools.

What you can work in follows your role in each organisation, because an agent needs what a person needs to connect an application:

  • Admins and members reach every sandbox of the organisation, and can create new ones.
  • Guests with Developer access reach the sandboxes granted to them.
  • Guests with Read only access reach nothing: their agent has no sandbox to work in.

A locked sandbox is out of reach for everyone. All of this is checked on every call, not when the connection is made: lose access to a sandbox and your agent loses it at its next call. A connection never reaches billing and cannot issue other tokens.

When a connection reaches several sandboxes, your agent asks which one the mail should land in rather than picking one, and can note your answer in the project's instructions so the next conversation does not ask again.

Keeping your sandbox

A sandbox opened without an account lasts 24 hours and holds 50 messages. When it expires or fills up, your agent starts a new one on the same connection.

To keep it, ask your agent for its claim link and claim it with an account within 7 days. It becomes a permanent sandbox of your account, everything in it stays, and your editor stays connected.

Claiming widens the connection: from then on it reaches every sandbox your account can work in, not just this one. The claim page says so before you confirm, and your agent is told. The account tools appear once the editor reconnects. In Claude Code: /mcp, then mailclutch, then Reconnect.

Already have an account? Skip the claim: remove the server, add it again and choose to sign in.

If your editor cannot sign in

Some editors cannot go through a browser. Create a token in Settings → MCP instead, and choose what it reaches, all your sandboxes or just one, and how long it lasts. An ephemeral sandbox cannot be chosen: the token would die with it. The token is shown once, with the configuration for your editor, which sends it as an Authorization: Bearer header.

Anyone holding it acts as you in what it reaches, so store it where you would store a password. Where it ends up depends on the editor:

  • VS Code. The configuration declares a password input: VS Code asks for the token once and keeps it in its secret storage. The file holds no secret and can be committed.
  • Claude Code. The command adds it in local scope, in ~/.claude.json, outside your repository.
  • Cursor and others. The file holds the token in plain text. Put it in your editor's user-level configuration, never in a project file that Git tracks.

See and revoke connections

Settings → MCP lists the editors connected to your account, with their last use and number of calls. Revoking one takes effect at its next call. A connection that can no longer work shows No access and the reason, its sandbox deleted or your access lost, rather than reading as active.

A signed-in connection renews itself while in use and expires after 30 days without use. Revoked and expired connections stay listed for 90 days, so you can tell why one stopped working, then they are deleted.

Before you let an agent read your mail

A captured message is written by its sender, and your agent reads it. Mailclutch hands it over marked as something to report on, not to obey, strips anything executable and never opens its links. Still, treat an agent with a sandbox like an agent with a browser.

Looking at a message publishes nothing. Only create_share_link does, and the server tells agents to call it only when you want a message shared.

The page that opens when you connect names the client and where it will send you back. If it warns that the client registered itself and you did not just add Mailclutch to an editor, cancel.

Your app still sends real email

Your project keeps sending to smtp.mailclutch.com on port 587, as to any mail server — see SMTP setup and the framework guides. In CI, where no agent is watching, the read API does the same work with a token.