MCP Server
Connect AI agents and coding assistants to Trivumo inboxes using the Model Context Protocol (MCP).
The Trivumo MCP server lets AI agents and coding assistants generate disposable email addresses, list inbox messages, and read full message content — including extracted links, verification codes, and images.
Use it to automate email verification flows, debug signup journeys, or give an agent direct access to your team's test inboxes without writing custom API calls.
Prerequisites
Before connecting, make sure you have:
- A Trivumo account with an active team
- A Trivumo API key (available on your dashboard)
- A domain configured for your team
Authentication
All MCP requests require your Trivumo API key in the Authorization header:
Authorization: ApiKey YOUR_API_KEYThe key is scoped to your team. Every tool runs in that team's context, so messages and generated addresses belong to your configured domain.
Server URL
Trivumo exposes a streamable HTTP MCP endpoint at:
https://trivumo.com/mcp-server/mcpConnect a Client
Cursor
Add the server to your Cursor MCP configuration (.cursor/mcp.json):
{
"mcpServers": {
"trivumo": {
"url": "https://trivumo.com/mcp-server/mcp",
"headers": {
"Authorization": "ApiKey YOUR_API_KEY"
}
}
}
}Claude Desktop
For clients that only support stdio transport, use mcp-remote as a bridge:
{
"mcpServers": {
"trivumo": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://trivumo.com/mcp-server/mcp",
"--header",
"Authorization: ApiKey YOUR_API_KEY"
]
}
}
}Windsurf and other MCP clients
Any client that supports streamable HTTP can connect directly using the server URL and Authorization header shown above.
Tools
generate_email
Generate a random disposable email address on your team domain.
| Parameter | Type | Required | Description |
|---|---|---|---|
| username | string | No | Custom username prefix. A random value is used if omitted. |
Example response:
{
"email": "x7k2m9qp@sandbox.trivumo.com",
"domain": "sandbox.trivumo.com"
}get_messages
Retrieve paginated inbox messages for your team. Results can be filtered by recipient, sender, subject, and received timestamp.
| Parameter | Type | Required | Description |
|---|---|---|---|
| page | number | No | Page number. Defaults to 1. |
| from | string | No | Filter by sender email address. |
| to | string | No | Filter by recipient email address. |
| subject | string | No | Filter by subject text (partial match). |
| receivedAfter | number | No | Unix timestamp in milliseconds. Only return newer mail. |
Example response:
{
"data": [
{
"id": "...",
"referenceId": "abc123",
"subject": "Verify your account",
"from": "noreply@example.com",
"to": "x7k2m9qp@sandbox.trivumo.com",
"receivedAt": "2026-06-20T12:00:00.000Z"
}
],
"page": 1,
"totalPages": 1
}get_message
Retrieve the full content of a single message by its referenceId, including HTML and plain-text bodies, headers, extracted links, verification codes, and images.
| Parameter | Type | Required | Description |
|---|---|---|---|
| referenceId | string | Yes | The referenceId returned by get_messages. |
Example response:
{
"success": true,
"referenceId": "abc123",
"subject": "Verify your account",
"from": "noreply@example.com",
"to": "x7k2m9qp@sandbox.trivumo.com",
"receivedAt": "2026-06-20T12:00:00.000Z",
"headers": [],
"html": {
"body": "<p>Your code is <strong>482910</strong></p>",
"codes": ["482910"],
"links": [{ "href": "https://example.com/verify", "text": "Verify" }],
"images": []
},
"text": {
"body": "Your code is 482910",
"codes": ["482910"],
"links": [],
"images": []
}
}Example Workflow
A typical email verification flow with an AI agent:
- Call
generate_emailto create a disposable address. - Use that address to sign up in the application under test.
- Call
get_messageswith thetofilter set to the generated address. - Call
get_messagewith the returnedreferenceIdto read the verification link or OTP.
Error Handling
Tools return errors as MCP tool results with isError: true. Common cases:
| Message | Cause |
|---|---|
| Unauthorized: missing team context. | Missing or invalid API key. |
| No domain configured for this team. | Your team has no inbox domain set up. |
| Message not found. | The referenceId does not exist. |
Related
- Node.js SDK — programmatic access from test suites
- API Reference — REST endpoints for the same inbox data