tmpmail
by ishaanbedi
README.md
# tmpmail
Disposable inboxes your AI agents can use. Connect tmpmail over MCP and an agent can make an email address, sign up for something, wait for the verification email and use the code, with nobody copying and pasting. People get the same inboxes on the web at [tmpmail.lol](https://tmpmail.lol).
Mail deletes itself after 1 hour, and the whole thing runs on one Cloudflare Worker.
## Connect your agent
The server lives at `https://tmpmail.lol/mcp`. It uses Streamable HTTP and needs no sign-up or key.
**Fastest: let your agent install it.** Paste this into Claude Code, Cursor or any agent that can edit its own settings:
```text
Install the tmpmail MCP server for me. It's a remote MCP server at https://tmpmail.lol/mcp using the Streamable HTTP transport, with no authentication. Name it "tmpmail".
If you're Claude Code, run: claude mcp add --transport http tmpmail https://tmpmail.lol/mcp
Otherwise, add it to this app's MCP configuration (for example ~/.cursor/mcp.json for Cursor or .vscode/mcp.json for VS Code).
Then confirm it works by listing its tools (you should see create_inbox and wait_for_email), and tell me if I need to restart anything.
```
Or set it up yourself:
**Claude Code**
```bash
claude mcp add --transport http tmpmail https://tmpmail.lol/mcp
```
**Cursor** (`~/.cursor/mcp.json`)
```json
{ "mcpServers": { "tmpmail": { "url": "https://tmpmail.lol/mcp" } } }
```
**VS Code** (`.vscode/mcp.json`)
```json
{ "servers": { "tmpmail": { "type": "http", "url": "https://tmpmail.lol/mcp" } } }
```
**Claude apps:** go to Settings → Connectors → Add custom connector, and paste the URL.
Then ask something like:
> Make a tmpmail inbox, sign up for a test account at my staging site with it, then wait for the verification email and enter the code.
| Tool | What it does |
| --- | --- |
| `create_inbox` | Gets a fresh, hard-to-guess address |
| `wait_for_email` | Waits up to 2 minutes for new mail and returns it with the code and links |
| `read_email` | Reads one message as plain text, with code, links and attachment names |
| `list_emails` | Lists an inbox, newest first |
| `delete_email`, `delete_inbox` | Cleans up when the agent is done |
Setup for every client is also on the site: [tmpmail.lol/#mcp](https://tmpmail.lol/#mcp).
> [!WARNING]
> **tmpmail is a testing tool, not a personal inbox.** Every inbox is public, including ones your agent creates, and all mail is deleted after 1 hour with no way to get it back. Use it for test accounts only. You use tmpmail entirely at your own risk; see [SECURITY.md](SECURITY.md).
## On the web

- Any address works instantly. Use a random one or pick your own.
- Codes and verify links show up as one-click buttons.
- New mail appears the moment it arrives, no refresh.
- Trackers and remote images stay blocked until you allow them.
## Host your own
You need a free Cloudflare account and a spare domain on Cloudflare. Follow [docs/self-hosting.md](docs/self-hosting.md); it takes about 10 minutes. Your copy serves the same MCP server at `https://<your-site>/mcp`.
## Develop
```bash
npm install
npm run db:migrate:local
npm run dev # http://localhost:5173
npm run send-sample # drop sample emails into the local inbox
npm test
```
[MIT license](LICENSE)
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues