How to Use the Mailosaur MCP in Claude Code
Run headless email and SMS verification directly from your terminal or CI/CD pipelines using Claude Code and this MCP server.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Mailosaur MCP to Claude Code
Create your Vinkius account to connect Mailosaur to Claude Code and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Pipe Mailosaur outputs in Claude Code
The `get_message_content` tool allows Claude Code to fetch raw email payloads and pipe them directly into terminal utilities. You can query a specific message and have Claude Code parse the HTML or text body using standard command-line tools. This works perfectly with `search_server_messages`, letting you filter incoming emails by sender or subject directly from your shell. It eliminates the need to open a browser or write complex API wrapper scripts just to check a verification code.
Headless inbox management via MCP Server
The `clear_server_inbox` tool allows Claude Code to reset your testing environments during automated deployment scripts. You can trigger a purge of all virtual inbox contents before running a new suite of integration tests. If your script needs a brand-new environment, Claude Code calls `create_virtual_server` to provision one instantly. It then outputs the new server ID to stdout, allowing you to pass it directly to downstream test runners.
Verify server statuses in Claude Code
The `list_virtual_servers` tool lets you inspect your entire testing infrastructure from a single terminal command. Claude Code lists all active servers, allowing you to quickly audit which environments are currently running. You can then query `get_server_details` to inspect specific server configurations or find active SMTP endpoints. This makes debugging broken mail relays during an SSH session incredibly fast and straightforward.
Set up Mailosaur MCP in Claude Code
Prerequisites
- Claude Code CLI installed (
npm install -g @anthropic-ai/claude-code) - Active Vinkius subscription with a valid endpoint token
- 1
Run the add command
Open your terminal and run the command shown on the right. Replace
[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. Use--scope userto make it available across all projects. - 2
Verify the connection
Start a Claude Code session and type
/mcpto list connected servers. You should seemailosaur-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest Mailosaur transactions." It will automatically discover and invoke the available Mailosaur tools.
claude mcp add --transport http mailosaur-mcp https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Mailosaur MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Mailosaur MCP today
We host it, we monitor it, we maintain it. You just paste one token.