Integrations
Claude Code
Connect Loomal to Claude Code
Add Loomal as an MCP server in Claude Code to give it email, vault, 2FA, calendar, and identity capabilities.
Setup
CLI (recommended)
claude mcp add loomal --scope user --transport stdio -e LOOMAL_API_KEY=loid-your-api-key -- npx -y @loomal/mcpManual config
Add to ~/.claude.json (global) or .claude/settings.json (project):
{
"mcpServers": {
"loomal": {
"command": "npx",
"args": ["-y", "@loomal/mcp"],
"env": {
"LOOMAL_API_KEY": "loid-your-api-key"
}
}
}
}Restart Claude Code after adding.
Verify
Run /mcp to check the connection status, then ask:
"Who am I?"
Claude will call identity.whoami and return your agent's name, email, and scopes.
Available tools
| Category | Tools |
|---|---|
| Identity | identity.whoami, identity.sign, identity.verify |
mail.send, mail.reply, mail.list_messages, mail.get_message, mail.get_attachment, mail.list_threads, mail.get_thread, mail.update_labels, mail.update_thread_labels, mail.delete_message, mail.delete_thread | |
| Vault | vault.list, vault.get, vault.store, vault.delete, vault.totp |
| Calendar | calendar.create, calendar.update, calendar.list, calendar.get, calendar.delete, calendar.set_public |
Tools only appear if your identity has the required scopes.
Usage examples
> Send an email to john@acme.com about the Q4 report
> Check my inbox for unread emails
> Reply to the latest email from Sarah
> Store my Stripe API key in the vault
> Get the TOTP code for my AWS account
> Create a calendar event for tomorrow at 2pmMultiple inboxes
claude mcp add loomal-sales --scope user --transport stdio -e LOOMAL_API_KEY=loid-sales-key -- npx -y @loomal/mcp
claude mcp add loomal-support --scope user --transport stdio -e LOOMAL_API_KEY=loid-support-key -- npx -y @loomal/mcpOr in config:
{
"mcpServers": {
"loomal-sales": {
"command": "npx",
"args": ["-y", "@loomal/mcp"],
"env": { "LOOMAL_API_KEY": "loid-sales-key" }
},
"loomal-support": {
"command": "npx",
"args": ["-y", "@loomal/mcp"],
"env": { "LOOMAL_API_KEY": "loid-support-key" }
}
}
}Claude will see loomal-sales:mail.send and loomal-support:mail.send as separate tools.
Platform mode
Use a platform key (lopk-) to manage all identities in your org:
claude mcp add loomal-platform --scope user --transport stdio -e LOOMAL_API_KEY=lopk-your-platform-key -- npx -y @loomal/mcpThis exposes identities.list, identities.create, identities.delete, identities.rotate_key, and identities.update_scopes.
Remove
claude mcp remove loomal