Claude.ai connects to remote MCP servers that support OAuth 2.1 with dynamic client registration.
# .env
OAUTH=true
TOKEN_SECRET_FILE=/etc/mcp-mail/token-secret # openssl rand -hex 32 > ...
mcp-mail clients add claude --for claude --preset read-draft
# prints a username and password once
Emailhttps://mail.example.com/mcpTo let Claude send mail, use --preset full-no-delete, and consider sendRecipientAllowlist
in clients.json. Revoke at any time with mcp-mail clients revoke claude.