agent-inbox
Enables AI agents to receive and verify emails from Resend, such as confirmation emails, facilitating automated sign-up and email verification workflows.
Enables AI agents to receive and verify emails from SendGrid, such as confirmation emails, facilitating automated sign-up and email verification workflows.
Enables AI agents to receive and verify emails from Supabase, such as confirmation emails, facilitating automated sign-up and email verification workflows.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agent-inbox Create an inbox for signing up to testservice.com and wait for the confirmation email"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
agent-inbox
Give any AI agent a disposable email inbox in one tool call.
Install
npx gsd-agent-inboxThe interactive installer auto-detects your AI coding agents (Claude Code, Codex CLI, Cursor, Gemini CLI, Windsurf), configures the MCP server, and installs the optional skill for each.
When launched by an MCP client (non-TTY), it starts the MCP server normally. When you run it from a terminal, you get the installer.
Related MCP server: TempMail OTP MCP Server
What it does
An MCP server that creates real, temporary email addresses on demand. Your agent can sign up for services, receive confirmation emails, extract verification links, and clean up — without you lifting a finger.
No API keys. No accounts. No configuration. Works with any email-sending service — Supabase, Resend, SendGrid, Postmark, AWS SES, whatever.
The problem
AI agents hit a wall when a service requires email verification. They can fill out a sign-up form, but they can't receive the confirmation email. So they stop and ask you to do it.
The fix
Agent: create_inbox({ prefix: "signup", name: "test" })
→ signup-1712345678@somedomain.com (name: test)
Agent: [fills sign-up form with that email]
Agent: verify_email({ address: "test", subject_contains: "confirm" })
→ Email verified successfully!
Verification URL: https://myapp.supabase.co/auth/v1/verify?token=abc123
HTTP Status: 200
Agent: delete_inbox({ address: "test" })
→ Done.Manual setup
If you prefer to configure manually instead of using the installer:
Claude Code
claude mcp add agent-inbox -- npx -y gsd-agent-inboxOr add to ~/.claude/settings.json:
{
"mcpServers": {
"agent-inbox": {
"command": "npx",
"args": ["-y", "gsd-agent-inbox"]
}
}
}Codex CLI
Add to ~/.codex/config.toml:
[mcp_servers.agent-inbox]
command = "npx"
args = ["-y", "gsd-agent-inbox"]
env = { }Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"agent-inbox": {
"command": "npx",
"args": ["-y", "gsd-agent-inbox"]
}
}
}Gemini CLI
Add to ~/.gemini/settings.json:
{
"mcpServers": {
"agent-inbox": {
"command": "npx",
"args": ["-y", "gsd-agent-inbox"]
}
}
}Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"agent-inbox": {
"command": "npx",
"args": ["-y", "gsd-agent-inbox"]
}
}
}Any other MCP client
Any client that supports stdio transport:
{
"command": "npx",
"args": ["-y", "gsd-agent-inbox"]
}Build from source
git clone https://github.com/gsd-build/agent-inbox.git
cd agent-inbox
npm install
npm run build
npm startTools
Tool | What it does |
| Spin up a temporary email address. Optional |
| Check for messages. Returns subjects, bodies, and auto-extracted verification links. |
| Poll until a matching email arrives. Filters by sender and subject. Auto-retries with backoff. |
| One-shot verification: polls for confirmation email, extracts the link, visits it via HTTP. Three steps in one tool call. |
| Show all active inboxes with names and providers. |
| Destroy an inbox and its backing account. |
Named inboxes
Give inboxes a name for easy reference across multiple tool calls:
create_inbox({ prefix: "signup", name: "main" })
wait_for_email({ address: "main", subject_contains: "confirm" })
delete_inbox({ address: "main" })Skill
The installer can optionally add a skill file that teaches your AI agent when and how to use agent-inbox — so it reaches for the inbox tools automatically when it encounters auth flows, email verification, or sign-up testing.
To install the skill manually:
mkdir -p ~/.claude/skills/agent-inbox
curl -fsSL https://raw.githubusercontent.com/gsd-build/agent-inbox/main/skill/SKILL.md \
-o ~/.claude/skills/agent-inbox/SKILL.mdHow it works
Uses mail.tm as the primary provider with automatic fallback to 1secmail if mail.tm is down. No API keys or accounts required.
Fallback providers — if mail.tm fails, 1secmail kicks in automatically
Cleanup on exit — inboxes are deleted when the MCP server shuts down (SIGINT/SIGTERM)
Smart polling —
wait_for_emailretries with backoff (3s → 5s → 10s → 15s)Link extraction — confirmation/verification URLs auto-detected via keyword matching
Limitations
Some services block disposable email domains. If sign-up is rejected, try a different service or provider.
Inboxes don't survive server restarts (in-memory only).
Text and HTML bodies only — no attachment support.
License
MIT
Available Tools
6 toolscheck_inboxA
Check a temporary inbox for new messages. Returns subjects, bodies, and auto-extracted confirmation links.
Inputs: address (required), wait_seconds.
create_inboxA
Create a temporary email inbox. Returns a real email address that can receive emails from any service (Supabase, Resend, etc). Uses mail.tm with automatic fallback to 1secmail if mail.tm is down.
Inputs: prefix, name.
delete_inboxA
Delete a temporary inbox and its account. Use after you're done with email verification.
Inputs: address (required).
list_inboxesA
List all active temporary inboxes created in this session.
Inputs: no named parameters.
verify_emailA
One-shot email verification: polls for a confirmation email, extracts the verification link, and visits it via HTTP GET. Combines wait_for_email + link extraction + click in one tool call. Returns the HTTP status of the verification URL.
Inputs: address (required), from, subject_contains, timeout_seconds.
wait_for_emailA
Poll an inbox until a matching email arrives. Retries with backoff. Returns the matching message with extracted links. Much better than manually calling check_inbox in a loop.
Inputs: address (required), from, subject_contains, timeout_seconds.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clear, distinct purpose: inbox lifecycle management (create, delete, list), message retrieval (check, wait, and verify). No overlap.
All tool names follow a consistent verb_noun pattern (e.g., create_inbox, wait_for_email), making it easy to predict functionality.
Six tools is well-scoped for managing temporary inboxes and email verification, covering all necessary operations without bloat.
The surface covers the full workflow: create, check, wait, verify (wait+click), delete, and list. No obvious gaps for the domain.
Maintenance
Related MCP Connectors
Disposable email inboxes for AI agents: create an address, wait for mail, read OTP codes and links.
Disposable email inboxes for AI agents: create an address, wait for the OTP or verify link.
Disposable inboxes for AI agents: create, wait for delivery, and extract email content or links.
Disposable email inboxes for AI agents — read messages and verification codes.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to create disposable email inboxes and automatically extract OTPs, magic links, and verification codes from incoming emails.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to generate temporary email addresses, receive emails, and automatically extract OTP codes and links from incoming messages for automation and testing workflows.MIT
- AlicenseAqualityBmaintenanceProvides disposable email inboxes for AI agents to automatically receive and extract OTPs and magic links, enabling seamless email verification during autonomous workflows.3262 npm1MIT
- AlicenseAqualityCmaintenanceProvides AI agents with real email infrastructure, enabling them to create inboxes, send/receive messages, and extract verification codes from incoming mail.14MIT