otpcatch
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
snagmail
Local fake SMTP server + MCP server. Your app's outgoing test mail never leaves localhost;
OTP codes and verification links are extracted for you and handed to AI agents (MCP) or test suites (REST).
Receive-only: it never sends mail. In-memory, no Docker, no database.
Quick start
npx snagmailSMTP catcher:
127.0.0.1:1025Web UI, REST API, MCP (
/mcp):http://127.0.0.1:8025
Point your app at it:
SMTP_HOST=127.0.0.1
SMTP_PORT=1025
SMTP_SECURE=falseRelated MCP server: TempMail OTP MCP Server
MCP setup
Stdio (the client launches snagmail itself; it also starts the SMTP catcher and UI):
claude mcp add --transport stdio snagmail -- npx -y snagmail --mcp-stdioClaude Code .mcp.json, Cursor .cursor/mcp.json, Claude Desktop (all use mcpServers):
{ "mcpServers": { "snagmail": { "command": "npx", "args": ["-y", "snagmail", "--mcp-stdio"] } } }VS Code .vscode/mcp.json (this file uses servers, not mcpServers):
{ "servers": { "snagmail": { "type": "stdio", "command": "npx", "args": ["-y", "snagmail", "--mcp-stdio"] } } }HTTP (run npx snagmail yourself, then connect; use this when several windows/agents share one inbox):
claude mcp add --transport http snagmail http://127.0.0.1:8025/mcpClaude Code .mcp.json:
{ "mcpServers": { "snagmail": { "type": "http", "url": "http://127.0.0.1:8025/mcp" } } }Cursor .cursor/mcp.json:
{ "mcpServers": { "snagmail": { "url": "http://127.0.0.1:8025/mcp" } } }VS Code .vscode/mcp.json:
{ "servers": { "snagmail": { "type": "http", "url": "http://127.0.0.1:8025/mcp" } } }Only one snagmail can own the SMTP port. A second instance exits with an error; connect to the first one over HTTP instead.
MCP tools
Tool | Params |
|
|
|
|
|
|
|
|
wait_for_email returns the newest matching email already in the inbox, or waits for a new one.
For repeat tests on the same address, call clear_inbox first, pass since_timestamp, or use a unique recipient.
to matches the SMTP envelope recipient (so BCC works), case-insensitive.
Result: id, from, to, envelope_to, header_to, cc, subject, extracted_otp, action_links[{type,label,url}], clean_text, received_at.
Link types: verify, reset_password, magic_link, unsubscribe, other.
CLI flags
--smtp-port <port> SMTP port (default 1025)
--http-port <port> Web UI, REST, /mcp port (default 8025)
--mcp-stdio Serve MCP over stdio (all logs go to stderr)
--no-ui Skip the HTTP server (only with --mcp-stdio)
--max-emails <n> Emails kept in memory (default 200)If the HTTP port is busy in --mcp-stdio mode, snagmail warns on stderr and keeps running without the UI.
REST API
Endpoint | |
| list (no bodies) |
| long poll; |
| full email incl. |
| clear all or filtered |
| live feed ( |
Example (CI): curl "http://127.0.0.1:8025/api/v1/emails/wait?to=qa@test.local&timeout_ms=10000"
Security
Binds to 127.0.0.1 only, validates Host/Origin, and the UI previews HTML in a script-less sandboxed iframe with remote loads blocked.
Dev
npm run dev · npm test · npm run build
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Email testing for AI agents: create test addresses and read OTP codes, magic links and app emails.
Real disposable inboxes for AI testing agents: wait for email, read OTPs and verification links.
Test inboxes for AI agents testing your app: block until the OTP or magic link arrives.
Real email inboxes for AI agents: create inboxes, catch verification codes, extract OTPs, reply.
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

Mailsac MCP Serverofficial
AlicenseAqualityCmaintenanceEnables AI coding agents to create disposable test inboxes, wait for and read incoming email, and extract confirmation links and one-time codes for sign-up, password-reset, and magic-link flows.614 npmMIT- AlicenseAqualityBmaintenanceLets AI agents create real disposable email addresses, wait for incoming mail, and get verification codes and links back, so they can complete signups, logins and email-flow tests on their own. Codes and links are detected server-side, so no HTML parsing is needed. Requires an OpenInbox API key (Pro, Business or 7-Day Pass).8113 npmMIT