Connect a Gmail account
authenticateConnects or reconnects a Gmail account by opening Google sign-in and returning a link; the account is saved only after browser approval, then confirm with list_accounts.
Instructions
Connect (or re-connect) a Gmail account. Opens Google sign-in in the user's browser on this computer and returns immediately with the sign-in link; the account becomes available once the user approves in the browser. If a different Google account signs in than the email given, nothing is saved. Set calendar=true to also allow Google Calendar. Afterwards call list_accounts to confirm. (IMAP mailboxes are added with the CLI: gmail-mcp-multi add-imap.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Permissions to request from Google. Defaults to the server mode. Cannot exceed the server mode. | |
| alias | Yes | Short friendly name for the account, e.g. "work", "personal", "urbanstickers". | |
| No | The Gmail address. Strongly recommended: sign-ins from any other Google account are rejected. | ||
| calendar | No | Also request Google Calendar access (read; plus create events in full mode). |