MCP Server
The Temp Mail Model Context Protocol (MCP) server connects the Temp Mail API directly to your AI assistant. Ask it in plain language to create temporary email addresses and read incoming messages — right inside coding agents like Claude Code, Cursor, or VS Code Copilot.
Endpoint
This is a remote streamable HTTP server. Point your client at:
https://api.temp-mail.io/v1/mcp
Authentication
The server uses OAuth 2.0 — there's no API key to copy or paste. The first time a client connects, it registers itself and opens your browser to sign in to Temp Mail and approve access. The client stores the token and refreshes it automatically from then on.
You need an active premium account to authorize the server. If you don't have one yet, get it on the subscription page.
Setup
Claude Code
-
Add the server:
claude mcp add --transport http temp-mail https://api.temp-mail.io/v1/mcp -
Run
/mcpinside Claude Code, select temp-mail, and choose Authenticate to sign in through your browser. -
Confirm it's connected:
claude mcp list
Cursor
Click Add to Cursor, or add it manually:
-
Press
Cmd/Ctrl + Shift + Jto open Cursor Settings. -
Go to Tools & Integrations → New MCP Server and paste:
{
"mcpServers": {
"temp-mail": {
"url": "https://api.temp-mail.io/v1/mcp"
}
}
} -
When Cursor prompts you, sign in through your browser to authorize the server.
To use it from the cursor-agent CLI instead, run cursor-agent mcp login temp-mail.
VS Code
Click Install in VS Code or VS Code Insiders (requires GitHub Copilot), or add it manually:
-
Press
Cmd/Ctrl + Shift + Pand run MCP: Add Server. -
Choose HTTP (HTTP or Server-Sent Events).
-
Enter the server URL and press Enter:
https://api.temp-mail.io/v1/mcp -
Name it
temp-mail, press Enter, and complete the browser sign-in.
This adds the server to your mcp.json:
{
"servers": {
"temp-mail": {
"type": "http",
"url": "https://api.temp-mail.io/v1/mcp"
}
}
}
Codex
-
Add the server from your terminal:
codex mcp add temp-mail --url https://api.temp-mail.io/v1/mcpOr add it to
~/.codex/config.tomlby hand:[mcp_servers.temp-mail]
url = "https://api.temp-mail.io/v1/mcp" -
Start
codex— it opens your browser to authorize the connection automatically.
Amp
-
Open your Amp settings (
amp.mcpServersin VS Codesettings.json, or~/.config/amp/settings.jsonfor the CLI) and add:{
"amp.mcpServers": {
"temp-mail": {
"url": "https://api.temp-mail.io/v1/mcp"
}
}
} -
Reload Amp and sign in through your browser when prompted.
Gemini CLI
-
Add the server to
~/.gemini/settings.json(global) or.gemini/settings.json(per-project), using thehttpUrlfield for streamable HTTP:{
"mcpServers": {
"temp-mail": {
"httpUrl": "https://api.temp-mail.io/v1/mcp"
}
}
} -
Run
/mcp auth temp-mailinside Gemini CLI to complete the browser sign-in.
OpenCode
-
Add the server to your
opencode.json:{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"temp-mail": {
"type": "remote",
"url": "https://api.temp-mail.io/v1/mcp",
"enabled": true
}
}
} -
Restart OpenCode and authorize the server in your browser when prompted.
Warp
-
Open Settings → AI → Manage MCP servers → + Add and choose JSON.
-
Paste the configuration:
{
"temp-mail": {
"url": "https://api.temp-mail.io/v1/mcp"
}
} -
Start the server — Warp opens your browser to authorize it on first use.
Windsurf
-
Open
~/.codeium/windsurf/mcp_config.jsonand add the server, using theserverUrlfield for remote servers:{
"mcpServers": {
"temp-mail": {
"serverUrl": "https://api.temp-mail.io/v1/mcp"
}
}
} -
Open Windsurf → Settings → Cascade → MCP servers, click Refresh, then Login to authorize.
Zed
-
Press
Cmd/Ctrl + ,to open Zed settings and add the server undercontext_servers:{
"context_servers": {
"temp-mail": {
"url": "https://api.temp-mail.io/v1/mcp",
"settings": {}
}
}
} -
Save the file — Zed opens your browser to authorize the connection.
Verifying the connection
Once the server is authorized, ask your assistant:
Create a temporary email address and tell me when a message arrives.
If everything is wired up, it will use the Temp Mail tools to create an address and check for incoming messages.