Sign in
← Back to the blog

How to give Claude Code and Cursor an email address

Add an email MCP server and give the coding agent an address of its own. In Claude Code it is one command, in Cursor one entry in mcp.json, and a sign-in where you choose what it may do.

Why a coding agent needs email

Coding agents hit email more often than you would think:

  • Testing a sign-up flow. The app under development emails a confirmation link. The agent needs an address that receives it, and a way to wait for it.
  • Signing up for a service. A new API, a staging dashboard, a package registry. Each sends a code.
  • Checking the app's own mail. Does the password-reset email render, does the link work, is the from address right.
  • Reporting back. A long job finishes overnight and the agent emails a summary.

Using your own address for these means you fetch every code. Using a throwaway means the account's later mail goes nowhere. An address the agent owns fixes both.

Claude Code

One command adds the hosted server:

claude mcp add --transport http zurchin https://zurchin.com/mcp --scope user

--scope user makes it available in every project; --scope project writes it to .mcp.json to share with the repository. Then open /mcp, pick zurchin and sign in in the browser. The consent screen asks what the agent may do: look, prepare drafts, act, or everything. Claude Code then holds a token with that access to your account, and disconnecting it in Settings ends it.

For an agent with nobody there to sign in, such as one in CI, pass a key instead:

claude mcp add --transport http zurchin https://zurchin.com/mcp \
  --header "Authorization: Bearer $ZURCHIN_API_KEY"

Cursor

Add the server by hand to ~/.cursor/mcp.json (or .cursor/mcp.json for one project):

{
  "mcpServers": {
    "zurchin": {
      "url": "https://zurchin.com/mcp"
    }
  }
}

Cursor signs you in on the first call. To use a key instead, add "headers": { "Authorization": "Bearer ${env:ZURCHIN_API_KEY}" } beside the URL, and Cursor fills it from your environment.

Codex takes the same server with codex mcp add zurchin --url https://zurchin.com/mcp, and any other MCP client with the URL https://zurchin.com/mcp.

What it looks like in use

Ask Claude Code to "test the sign-up flow on localhost:3000 and confirm the email arrives". With Zurchin connected it will:

  1. create an address such as test-7c1e@zurchin.email;
  2. fill in the form, with a browser tool or a request;
  3. wait for the email to land and read the code or the confirmation link from it;
  4. follow the link, or type the code, and report what the email said.

The email the agent reads is cleaned of hidden text first, and checked by Zurchin Firewall, because the agent is about to act on text somebody else wrote. If you want the agent to write mail but not send it, choose Look and prepare at the consent screen: it writes drafts, and a person approves and sends them.

Other options

Any MCP server that can send and receive email works the same way in both clients. Email MCP servers compared sets out what to check: whether it can wait for mail, whether replies stay in the thread, and what it does about injection. If you would rather the agent worked in your own Gmail, Google's official Gmail MCP server writes drafts for you to send; Gmail MCP server vs an inbox of the agent’s own compares the two approaches.

Start

Sign up and add the server. Every account comes with a free @zurchin.email inbox.

For the one-line setup in Claude Code, Cursor and Codex, see Zurchin Email.

Questions

How do I add email to Claude Code?

Run claude mcp add --transport http zurchin https://zurchin.com/mcp, then open /mcp and sign in. Claude Code then has tools to create an address, wait for mail and send.

How do I add email to Cursor?

Put {"mcpServers": {"zurchin": {"url": "https://zurchin.com/mcp"}}} in ~/.cursor/mcp.json. Cursor signs you in on the first call.

Can a coding agent test my app’s sign-up emails?

Yes. It creates an address, signs up with it, waits for the confirmation email and reads the code or link from it, so it can finish the flow and report what the email said.