MoeMail now works inside your AI assistant
MoeMail

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

MoeMail MCP connector on Glama

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.

MCP server URL
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 Code · terminal
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.

Claude Desktop · claude_desktop_config.json
{
  "mcpServers": {
    "moemail": {
      "command": "npx",
      "args": ["-y", "@moemail/mcp"],
      "env": {
        "MOEMAIL_API_KEY": "mk_••••••••••••"
      }
    }
  }
}
Cursor · .cursor/mcp.json
{
  "mcpServers": {
    "moemail": {
      "command": "npx",
      "args": ["-y", "@moemail/mcp"],
      "env": {
        "MOEMAIL_API_KEY": "mk_••••••••••••"
      }
    }
  }
}
Claude Code · terminal
claude mcp add moemail -e MOEMAIL_API_KEY=mk_•••••••••••• -- npx -y @moemail/mcp
Codex CLI · ~/.codex/config.toml
[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".

@moemail/cli · bash
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.

bash
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

Yes: https://moemail.app/mcp, over Streamable HTTP. Apps sign in with OAuth, so there is no key to paste; clients that prefer a header can send an API key as X-API-Key instead. The local npx server keeps working for clients that only run local servers.

Any MCP client that connects to remote servers: claude.ai and the Claude apps (custom connectors), Claude Code, ChatGPT on plans with custom MCP servers, Cursor and VS Code. Clients that only launch local servers use npx -y @moemail/mcp, which needs Node.js 18 or later.

The app only gets what you approve: the actions you tick and, if you choose, only the mailboxes it creates. It never sees your password or an unrestricted key, and every call is checked against your role's limits. As with any connector, start the connection yourself and only approve apps you trust.

Open your profile, API Key Management. A connected app has a key named after it with a Connected app tag. Disable it to pause the app, or delete it to remove the app's access and approval; it then has to ask again. Removing the connector inside the app alone does not revoke it on MoeMail.

Connecting is free and the packages are MIT-licensed. Tool calls are API calls, and API access is a paid add-on: the default plan includes no API calls. Buy an API-call pack or a Duke upgrade in the shop. The web inbox at moemail.app stays free.

Only if you allow it: sending is unticked on the approval page. With it ticked, send_email sends from a temporary address, provided your account has a send quota, which is separate from API calls.

Use the MCP server when an agent inside a chat app or editor should call the tools itself. Use the CLI when a shell script, CI job or terminal-based agent drives the flow; it can sign in with moemail login, and its --json output and exit codes are made for that. Both use the same API.

Yes. Every MoeMail 1.0 deployment serves /mcp: give your app https://<your domain>/mcp. For the local packages, set MOEMAIL_API_URL to your instance (it defaults to https://moemail.app).

The MCP server, the CLI and the service itself are open source in the MoeMail repository on GitHub.

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.