How to Use the MailSlurp MCP in Cursor
Write integration tests in Cursor using real email addresses and live inbox data pulled straight into your code via this MCP Server.
Works with every AI agent you already use
…and any MCP-compatible client
Connect MailSlurp MCP to Cursor
Create your Vinkius account to connect MailSlurp to Cursor and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Provision test addresses via the MCP Server
The `create_random_inbox` tool gives your agent a working email address while you write end-to-end tests. Cursor can drop this generated address directly into your Playwright or Cypress scripts. Once the test block is written, the AI calls `delete_specific_inbox` to clean up the backend. Managing state during test development gets messy quickly. Your AI client runs `list_all_inboxes` to see what addresses are currently active. This prevents your test suite from generating hundreds of orphaned inboxes while you debug a flaky spec.
Read and extract verification codes
The `get_email_details` tool pulls the raw HTML and text content from a specific message. When you ask Cursor to write a regex for a password reset token, it tests that pattern against the actual email payload. You know the extraction logic works before you even run the test. You also need to verify the volume of messages sent. The `list_inbox_emails` tool retrieves the history for a specific inbox. This lets your agent confirm that a bulk notification script actually sent five separate messages instead of bunching them into one.
Handle async delivery in your editor
The `wait_for_latest_email` tool solves network latency by long-polling the MailSlurp API. Cursor waits for the actual message to arrive instead of generating a mock response that hides underlying delivery issues. Testing email flows becomes much less frustrating. Complex workflows might generate multiple notifications. By calling `wait_for_email_count`, the agent pauses execution until the exact number of expected emails drop. If you need to test bounce handling, `send_email_from_inbox` lets you fire messages back into your application's ingestion pipeline.
Set up MailSlurp MCP in Cursor
Prerequisites
- Cursor installed (macOS, Windows, or Linux)
- Active Vinkius subscription with a valid endpoint token
- 1
Open MCP Settings
Go to Cursor Settings → MCP or open the Command Palette (
Cmd+Shift+P/Ctrl+Shift+P) and search for "MCP: Add Server". - 2
Add the MailSlurp MCP
Cursor will create or open
.cursor/mcp.jsonin your project root. Paste the JSON snippet on the right. Replace[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. - 3
Enable Agent mode
Open Composer (
Cmd+I/Ctrl+I) and switch to Agent mode using the dropdown at the top. MCP tools are only available in Agent mode. - 4
Verify the connection
Ask Cursor something like "List my recent MailSlurp transactions." If the MCP tools are loaded correctly, Cursor will call the MailSlurp tools automatically. You can also check Settings → MCP for a green status indicator.
{
"mcpServers": {
"mailslurp-mcp": {
"url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
}
}
} Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by MailSlurp. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
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 MailSlurp MCP in Cursor
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the MailSlurp MCP today
We host it, we monitor it, we maintain it. You just paste one token.