Integrations
Claude Code
Connect Mailgent to Claude Code
Add Mailgent as an MCP server in Claude Code to give it email capabilities.
Setup
Add to ~/.claude.json or your project's .claude/settings.json:
{
"mcpServers": {
"mailgent": {
"url": "https://api.mailgent.dev/mcp",
"headers": {
"Authorization": "Bearer mgent-your-api-key"
}
}
}
}Restart Claude Code.
Verify
Ask Claude:
"What mail tools do you have?"
It should list mail.send, mail.reply, mail.list_messages, etc.
Usage
Claude Code can now:
- Send emails: "Send an email to john@acme.com about the Q4 report"
- Check inbox: "Do I have any unread emails?"
- Reply: "Reply to the latest email from Sarah"
- Manage: "Mark all emails from support as read"
Multiple Inboxes
{
"mcpServers": {
"mailgent-sales": {
"url": "https://api.mailgent.dev/mcp",
"headers": {
"Authorization": "Bearer mgent-sales-key"
}
},
"mailgent-support": {
"url": "https://api.mailgent.dev/mcp",
"headers": {
"Authorization": "Bearer mgent-support-key"
}
}
}
}Claude will see mailgent-sales:mail.send and mailgent-support:mail.send as separate tools.