MCP Hub
Back to servers

Mailgent MCP Server

Provides identity infrastructure for AI agents to manage email communications, including sending, replying, and organizing messages. It also includes a secure vault for managing credentials and generating TOTP codes.

glama
Updated
Mar 30, 2026

mailgent-mcp

MCP server for Mailgent — Identity infrastructure for AI agents.

Setup

Add to your MCP client config:

{
  "mcpServers": {
    "mailgent": {
      "command": "npx",
      "args": ["-y", "mailgent-mcp"],
      "env": {
        "MAILGENT_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

Get your API key from console.mailgent.dev.

Compatible Clients

  • Claude Code
  • Claude Desktop
  • Cursor
  • Any MCP-compatible client

Available Tools

Mail

ToolDescription
mail.whoamiGet identity info
mail.sendSend email
mail.replyReply to email
mail.list_messagesList inbox messages
mail.get_messageGet specific message
mail.update_labelsUpdate message labels
mail.list_threadsList threads
mail.get_threadGet thread with messages

Vault

ToolDescription
vault.listList credentials (metadata)
vault.getGet decrypted credential
vault.totpGet TOTP 6-digit code
vault.storeStore credential
vault.deleteDelete credential

Multiple Identities

Use separate MCP server instances per identity:

{
  "mcpServers": {
    "mailgent-sales": {
      "command": "npx",
      "args": ["-y", "mailgent-mcp"],
      "env": {
        "MAILGENT_API_KEY": "mgent-sales-key"
      }
    },
    "mailgent-support": {
      "command": "npx",
      "args": ["-y", "mailgent-mcp"],
      "env": {
        "MAILGENT_API_KEY": "mgent-support-key"
      }
    }
  }
}

Environment Variables

VariableRequiredDefaultDescription
MAILGENT_API_KEYYesYour Mailgent API key
MAILGENT_API_URLNohttps://api.mailgent.devAPI base URL

Documentation

License

MIT

Reviews

No reviews yet

Sign in to write a review