Mailgent

Mailgent for Cursor

Add Mailgent to Cursor over MCP and your coding agent gets an inbox and identity — handy for testing signup flows, reading verification emails, and clearing 2FA.

Cursor supports MCP servers, so Mailgent plugs in as a tool source. That gives the agent in your editor a real inbox and identity without leaving the development loop.

It's especially useful while building and testing: the agent can run a signup flow, receive the verification email, and clear a 2FA gate using a TOTP code from the vault — all from inside Cursor.

Add the MCP server

Register Mailgent in Cursor's MCP configuration with an agent key. The mail, vault, and TOTP tools become available to the agent right away.

Use a scoped key so the agent only gets the capabilities your task needs.

.cursor/mcp.json
{ "mcpServers": { "mailgent": {
  "command": "npx",
  "args": ["-y", "@mailgent-dev/mcp"],
  "env": { "LOOMAL_API_KEY": "mgnt-..." } } } }

Great for testing flows

When you're building auth, signup, or notification features, the agent can exercise the real path: fill the form with its Mailgent address, read the confirmation email, enter the generated 2FA code, and confirm the flow works end to end.

FAQ

Can it read real verification emails?

Yes. The agent receives real mail at its address and parses links or codes from the message.

Does it handle authenticator 2FA?

Store the TOTP secret in the vault and the agent generates valid codes with vault_totp.

Give your agent an inbox.

A real email address, a vault, 2FA, and an identity in one API call.

Get started