MoeMail

MoeMail gives an AI agent a real temporary inbox. Add https://moemail.app/mcp to Claude, ChatGPT, Claude Code or Cursor and sign in: the agent can create a mailbox, wait for the verification email, read the code and delete the mailbox. You choose which actions it may use and can revoke it at any time.

Hosted MCP Server

npx add-mcp 'https://moemail.app/mcp'

Installs into Claude Code, Codex, Cursor and more

Documentation

Temporary email MCP server for AI agents

Add moemail.app/mcp to Claude, ChatGPT or Claude Code and your agent gets a real inbox: it creates a mailbox, waits for the verification email, reads the code and deletes the box. You sign in once, pick what it may do, and can switch it off from your profile.

Remote MCP · OAuth sign-in, no key to copy · claude.ai, ChatGPT, Claude Code, Cursor · or run it locally with npx

Connect in one step

MoeMail serves its MCP tools over Streamable HTTP at https://moemail.app/mcp. Give that address to your AI app; the first time it calls a tool, a browser window opens where you sign in to MoeMail and approve it. Nothing to install and no API key to paste.

https://moemail.app/mcp

claude.ai, Claude Desktop and mobile

In Claude, open Customize → Connectors, click + Add, then Add custom connector. Name it MoeMail, paste the address and keep the suggested sign-in settings. Click Connect and approve the request. On Team and Enterprise plans an owner adds the connector in the organization settings first; members then connect it.

The app's own guide

claude mcp add --transport http moemail https://moemail.app/mcp
# then, inside Claude Code: /mcp → moemail → Authenticate

ChatGPT

ChatGPT connects custom MCP servers on its Business, Enterprise and Edu plans (Pro: read and fetch tools only). An admin, owner or authorized member goes to Plugins, chooses Add custom MCP server, enters the address with OAuth as the authentication and creates the plugin.

The app's own guide

Cursor, VS Code and other MCP clients · mcp.json

{
  "mcpServers": {
    "moemail": { "url": "https://moemail.app/mcp" }
  }
}

claude.ai and ChatGPT reach the server from their own cloud. A self-hosted MoeMail works the same way at https://<your domain>/mcp, as long as the address is public HTTPS.

You decide what the agent can do

When an app connects, MoeMail shows an approval page instead of handing out a key:

  1. Check the app. Its name is shown, and whether its details are verified. Continue only if you started the connection yourself.
  2. Pick the actions. Read mail and create mailboxes are on; sending mail and deleting need a tick of their own.
  3. Fence it in. With Only the mailboxes it creates, the agent never sees the mailboxes you already have.
  4. Revoke anytime. The app works through an API key named after it in your profile. Disable the key to pause the app, delete it to disconnect.

Other ways in

Local MCP server

npx -y @moemail/mcp. The same eight tools over stdio, for clients that only start local servers. It authenticates with an API key from your profile.

@moemail/mcp

CLI

npm i -g @moemail/cli. Nine commands, every one with --json output and meaningful exit codes — built for shell-driven agents and CI jobs.

@moemail/cli

Agent skill

moemail skill install drops a SKILL.md into Claude Code or Codex, so the agent already knows the create → wait → read → delete workflow before it is asked.

SKILL.md

The tools

Names are exactly what the server registers. wait_for_email is the one that makes agents work: it blocks for up to 90 seconds and returns status: "timeout" instead of failing, so the agent simply calls it again.

create_email

Create a mailbox; returns its id and address. Lifetime 1h, 24h, 3d or permanent.

wait_for_email

Poll until a new message arrives (≤ 90 s per call), or time out gracefully.

list_messages

Newest-first list of what a mailbox has received.

read_message

Full text and HTML of one message.

list_emails

Every mailbox this API key owns.

send_email

Reply from the temporary address (needs a send quota).

delete_message

Remove one message.

delete_email

Remove the mailbox and everything in it.

What a session looks like

The verification-code loop, as the tool calls the agent actually makes: four calls, plus however many polls the mail takes to arrive.

You

Sign up for the beta at example.com with a throwaway address and tell me the code.

The agent creates a mailbox and types the address into the signup form.

→ create_email { "expiry": "1h" }
← { "id": "k3f…", "address": "x7q2m9@moemail.app", "expiresAt": "…T15:04:05.000Z" }

Then it waits. Each poll is one API call; here the mail landed after twelve seconds.

→ wait_for_email { "emailId": "k3f…", "timeoutSec": 90 }
← { "status": "received", "elapsedSec": 12,
  "message": { "messageId": "m81…", "from": "no-reply@example.com",
               "subject": "Your code is 482913", "receivedAt": "…" } }

It reads the message and picks the code out of the body.

→ read_message { "emailId": "k3f…", "messageId": "m81…" }
← { "id": "m81…", "from": "no-reply@example.com", "subject": "Your code is 482913",
  "content": "Enter 482913 to finish signing up. …", "html": "…", … }

And deletes the box, so nothing is left behind.

→ delete_email { "emailId": "k3f…" }
← { "success": true, "deleted": "k3f…" }

Agent

Done — the code was 482913. I have deleted the mailbox.

Run the server locally

For a local stdio server, paste your API key where the bullets are. The mcpServers block is identical for Claude Desktop, Cursor and Windsurf; Claude Code and Codex take the same command in their own format.

{
  "mcpServers": {
    "moemail": {
      "command": "npx",
      "args": ["-y", "@moemail/mcp"],
      "env": {
        "MOEMAIL_API_KEY": "mk_••••••••••••"
      }
    }
  }
}
{
  "mcpServers": {
    "moemail": {
      "command": "npx",
      "args": ["-y", "@moemail/mcp"],
      "env": {
        "MOEMAIL_API_KEY": "mk_••••••••••••"
      }
    }
  }
}
claude mcp add moemail -e MOEMAIL_API_KEY=mk_•••••••••••• -- npx -y @moemail/mcp
[mcp_servers.moemail]
command = "npx"
args = ["-y", "@moemail/mcp"]
env = { MOEMAIL_API_KEY = "mk_••••••••••••" }

Self-hosting MoeMail? Add MOEMAIL_API_URL pointing at your instance — both packages default to moemail.app.

Or drive it from a shell

Same API, no agent runtime. Every command accepts --json; exit code 1 is a runtime error and 2 is a configuration or auth error, so a script can tell "no mail yet" from "wrong key".

npm i -g @moemail/cli
moemail config set api-key mk_••••••••••••

# 1. a mailbox that lives for an hour
moemail create --expiry 1h --json
# {"id":"k3f…","address":"x7q2m9@moemail.app","expiresAt":"2026-09-02T15:04:05.000Z"}

# 2. block until the verification mail lands (exit 1 on timeout)
moemail wait --email-id k3f… --timeout 120 --json
# {"messageId":"m81…","from":"no-reply@example.com","subject":"Your code is 482913","receivedAt":"…"}

# 3. read it, then clean up
moemail read --email-id k3f… --message-id m81… --json
moemail delete --email-id k3f…

Teach the agent once

The CLI ships a skill file. Once installed, Claude Code or Codex reaches for moemail on its own whenever a task needs a throwaway inbox, instead of you explaining the workflow each time.

moemail skill install                    # auto-detects Claude Code and Codex
moemail skill install --platform claude  # ~/.claude/skills/moemail/SKILL.md
moemail skill install --platform codex   # ~/.codex/skills/moemail/SKILL.md

Keys, quota and price

The remote server, the local packages and the REST API all call the same API under your account, so they share one monthly API quota. A connected app uses its own restricted key; the local packages use a key you create in your profile.

API access is a paid add-on: the default plan has no free call allowance. Buy an API-call pack or a Duke upgrade in the shop with MoeCoin. The web inbox itself stays free, so you can see what the mailboxes do before paying for the API.

Budget for polling: every wait_for_email poll and every CLI wait tick is one call. A typical verification round trip — create, wait, read, delete — is four calls plus the polls.

Open profile → API keys

Frequently asked questions

Give your agent an inbox

Add moemail.app/mcp to your AI app, approve it once, and the next sign-up flow your agent runs will finish on its own.