LoomalLoomal
Integrations

Claude Code

Connect Loomal to Claude Code

Add Loomal 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": {
    "loomal": {
      "url": "https://api.loomal.ai/mcp",
      "headers": {
        "LOOMAL_API_KEY": "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": {
    "loomal-sales": {
      "url": "https://api.loomal.ai/mcp",
      "headers": {
        "LOOMAL_API_KEY": "mgent-sales-key"
      }
    },
    "loomal-support": {
      "url": "https://api.loomal.ai/mcp",
      "headers": {
        "LOOMAL_API_KEY": "mgent-support-key"
      }
    }
  }
}

Claude will see loomal-sales:mail.send and loomal-support:mail.send as separate tools.

On this page