An MCP (Model Context Protocol) server for temporary email management using the ChatTempMail API.
- ✅ Get available domains
- ✅ Create temporary emails
- ✅ List emails
- ✅ Delete emails
- ✅ Get email messages
- ✅ View message details
- ✅ Delete messages
- ✅ Get webhook configuration
- ✅ Set webhook configuration
- Visit chat-tempmail.com
- Register an account and login
- Create an API key in your profile page
Add the configuration to your MCP client (Claude Desktop, Cursor, etc.), make sure to set the API key in environment variables:
Install from source:
{
"mcpServers": {
"tempmail": {
"command": "npx",
"args": [
"--from",
"git+https://github.com/Selenium39/mcp-server-tempmail.git",
"mcp-server-tempmail"
],
"env": {
"TEMPMAIL_API_KEY": "your-api-key-here",
"TEMPMAIL_BASE_URL": "https://chat-tempmail.com"
}
}
}
}
Install from package manager:
{
"mcpServers": {
"tempmail": {
"command": "npx",
"args": ["mcp-server-tempmail"],
"env": {
"TEMPMAIL_API_KEY": "your-api-key-here",
"TEMPMAIL_BASE_URL": "https://chat-tempmail.com"
}
}
}
}
- Replace
your-api-key-here
with your actual API key from chat-tempmail.com TEMPMAIL_BASE_URL
is optional and defaults tohttps://chat-tempmail.com
if not specified
Restart your MCP client application after configuration.
Get all available email domains in the system.
Parameters: None
Create a new temporary email address.
Parameters:
name
(required): Email prefix namedomain
(required): Email domainexpiryTime
(required): Expiry time in milliseconds, options:3600000
- 1 hour86400000
- 1 day259200000
- 3 days0
- permanent
Get all email addresses under your account.
Parameters:
cursor
(optional): Pagination cursor
Delete the specified email address.
Parameters:
emailId
(required): Email ID
Get all messages in the specified email address.
Parameters:
emailId
(required): Email IDcursor
(optional): Pagination cursor
Get detailed content of the specified message.
Parameters:
emailId
(required): Email IDmessageId
(required): Message ID
Delete the specified message.
Parameters:
emailId
(required): Email IDmessageId
(required): Message ID
Get current webhook configuration information.
Parameters: None
Set or update webhook configuration.
Parameters:
url
(required): Webhook URL addressenabled
(required): Whether to enable webhook
Please get all available email domains.
Please create an email named "test" using domain "chat-tempmail.com" with 1 hour validity.
Please view all messages in email ID "c2c4f894-c672-4d5b-a918-abca95aff1f7".
Please view the detailed content of message ID "fd13a8df-1465-4fbc-a612-ca7311c31ff2" in email ID "c2c4f894-c672-4d5b-a918-abca95aff1f7".
- API key is configured through the
TEMPMAIL_API_KEY
environment variable, please keep it secure and do not expose it publicly - Base URL can be customized through the
TEMPMAIL_BASE_URL
environment variable (defaults tohttps://chat-tempmail.com
) - Temporary emails will automatically expire according to the set expiry time
- Use
nextCursor
for paginated queries to get more data - Make sure to set the environment variables correctly in your MCP client configuration
MIT
Issues and Pull Requests are welcome.