Set-up guide

How to connect Claude to Gmail, with an app password.

About 2 minutes, if Google shows you the app password setting. The same password connects your Gmail to ChatGPT, Cursor or any other MCP client. And if Google refuses to show the setting, which is more common than it looks, this guide explains why. The screen where you meet it doesn't.

  • Time About 2 minutes
  • You will need An app password
  • IMAP setting Nothing to switch on
Connecting Gmail to Mailbox MCP with a Google app password: a robot holding up a key beside a mailbox with a keyhole on its front.
One key, made by you, that you can take back

The short version

Create an app password in your Google Account, then paste it into the control panel with your Gmail address.

If the app password page says the setting isn't available, jump to the section on that. The cause is almost never what the message suggests.

Your Google Calendar and your Google contacts connect afterwards, each with a Google sign-in of its own.

Before you start

What you need before you start

2 of these 6 rows are things other guides will tell you to do that you should not.

  • A Gmail or Workspace account any plan
  • 2-Step Verification, switched on phone or authenticator
  • An app password 16 characters
  • IMAP enabled in Gmail settings always on since Jan 2025
  • Your normal Google password never asked for
  • Time to allow about 2 minutes

Walkthrough

Connect Gmail, step by step

4 steps, about 2 minutes. The first one decides whether the second will work, so don't skip it.

A phone or an authenticator app as the second step Gmail app passwords need: the robot holding up a phone on a chain to a padlock, a key in his other hand, beside a mailbox.
The second step first, then the key
  1. Check how your 2-Step Verification is backed

    Open your Google Account, go to Security, and look at 2-Step Verification. You're checking for one thing: that it lists a phone number or an authenticator app.

    Do this first, even though it feels like a detour. It's the one thing that decides whether the next step works. Checking now takes 10 seconds; finding out later costs an hour.

    The Second steps card on the 2-Step Verification page of a Google Account, September 2026: Passkeys and security keys showing 3 passkeys, Google prompt showing 1 device, Authenticator showing added 262 days ago, Phone number showing a number, and Backup codes with an orange mark reading Get backup codes.
    What you are looking for: an Authenticator row or a Phone number row with a green tick. Passkeys alone, however many, do not count.
  2. Create an app password

    Go to the app passwords page in your Google Account. Give the password a name you'll recognise in a year, such as Mailbox MCP, and create it.

    The App passwords page of a Google Account, September 2026: two paragraphs about what app passwords are for, a Learn more link, and a card headed Your app passwords listing one existing password named Mailbox MCP Demo with a bin icon, the line To create a new app specific password, type a name for it below, an App name field and a Create button.
    The App passwords page. Type a name in the field and press Create; anything already made is listed above it with a bin to revoke it.

    Google shows the 16 characters once, so copy them before you close the dialog. If you lose it, nothing is broken: delete that app password and make another.

    The Generated app password dialog from a Google Account, September 2026: the heading, the line Your app password for your device above a pale box holding the 16-character password in four groups of four, blurred here, a How to use it paragraph, a warning that it grants complete access to the account, and a Done button.
    The dialog Create opens, and the only time the password is shown. Copy it before Done; this one was revoked a minute after the picture.

    If the page will not let you

    If you're told the setting isn't available for your account, don't start changing security settings at random. The next section explains what's actually happening, and the fix is small.

  3. Paste it into Mailbox MCP

    In the control panel choose Add mailbox, pick Gmail or Google Workspace, enter your Gmail address, and paste the app password.

    Google displays it in 4 groups of 4. The spaces make no difference either way.

    The Add a mailbox page of the Mailbox MCP control panel at its Details step for Gmail, September 2026: a blue note headed You need an app password, not your Google password, explaining where to make one and what to do if Google says the setting is not available, with a link to the full guide; a Gmail address field holding ann.example@gmail.com; an App password field with its sixteen characters hidden; a grey note headed Nothing to switch on saying IMAP is always on in Gmail now; and a Test this mailbox button.
    The Details step for Gmail in the control panel. Address, app password, Test this mailbox; the connection is checked before anything is stored.
  4. Add the connector to Claude or ChatGPT

    In Claude: open Mailbox MCP in Claude's directory (or Customize, then Connectors, and search for it) and press Connect to Claude. Sign in to Mailbox MCP when it asks, and choose your Gmail mailbox.

    Want one connector per mailbox, or no directory in your organisation? Add a custom connector: Customize, Connectors, + Add, Add custom connector. Give it a name, paste the connector URL from the mailbox's Connector tab in the control panel and press Continue, then Add without changing anything. Then press Connect and choose your Gmail mailbox. The Claude.ai set-up guide has every screen.

    Claude starts a new connector's tools at Needs approval, so it asks before every step. We set ours to Always allow (open the connector under Customize, Connectors) and let the level you chose in the control panel be the limit.

    In ChatGPT: select Plugins in the sidebar, find Mailbox MCP in the plugin directory, select Install plugin, then Continue to Mailbox MCP, and sign in. For a second mailbox, open the plugin again and press Connect another account. The ChatGPT set-up page covers developer mode too.

  5. Check it from Claude or ChatGPT

    Start a new chat and ask: Using Mailbox MCP, list my 5 most recent emails. If they're the messages you expect, you're connected.

    Reading them hasn't marked anything as read. Then try a morning brief from your Gmail, set once and run by your own AI.

Why Mailbox MCP

What Mailbox MCP adds to Gmail in Claude

Claude has a Gmail connector of its own, so why add this one? Connect Gmail through Mailbox MCP for these 3 jobs:

  • What's inside an attachment, or sending one. Anthropic's page says attachment content is "metadata only" through its connector. In our test it couldn't open a 1.6 MB PDF, and attached a new file only by writing it out as base64.
  • The same Gmail in ChatGPT, Cursor or another AI. One connection here works in any MCP client.
  • A second Google account. Anthropic's page doesn't describe connecting more than one; here each mailbox is a connector of its own, so you can connect multiple Gmail accounts side by side.

If Claude's own Gmail connector is switched on too, name this one in your request ("Using Mailbox MCP, ...") so Claude knows which to use. The control panel says the same when the connector is added. How Mailbox MCP compares with Claude's and ChatGPT's own Gmail connectors is set out job by job.

The Mailbox MCP control panel once a Gmail mailbox is connected: Connected. Now ask your AI something, a first request to copy, a note headed If your AI answers from its own Gmail, and the connector URL with its key hidden.
What the control panel shows once Gmail is connected, with the request to try and what to do if Claude answers from its own Gmail. The connector key is hidden here.

ChatGPT

Connect ChatGPT to Gmail

ChatGPT has a Gmail app of its own as well. When you want this connection, with its filing and attachments, install Mailbox MCP from the ChatGPT plugin directory and type @ in the message box to pick it.

Connect ChatGPT to Gmail, Outlook or IMAP has every screen, and can ChatGPT read my email compares the 2 routes.

The trap

If Google says the app password setting isn't available

The fix is small: add a phone number or an authenticator app to 2-Step Verification. Then the app passwords page appears.

The Gmail app password setting not available for your account: the robot looking at a screen where the option is greyed out, a question mark above him.
The setting Google will not show you, and why

You go to create an app password, and Google tells you:

The setting that you are looking for is not available for your account

The App passwords page of a Google Account as it appears when the setting is unavailable: the App passwords heading with a back arrow, a small line drawing of a robot that has come apart, the sentence The setting that you are looking for is not available for your account, and a link reading Go to your Google Account.
The page that refuses: a recreation of Google's screen as it appears in September 2026.

It doesn't mean app passwords are switched off for you. Your account almost certainly has 2-Step Verification through a passkey or a security key alone, and app passwords also need a phone number or an authenticator app. Adding one doesn't remove your passkey or make the account less safe.

On a work or school account, an administrator can also switch app passwords off for everyone. Send them the page written for Google Workspace administrators, which names the 2 Admin console settings involved.

Why Google says the setting you are looking for is not available has every cause and its fix.

Provider change

You don't need to turn on IMAP in Gmail

Nearly every Gmail connection guide starts by telling you to open Gmail settings, find Forwarding and POP/IMAP, and enable IMAP. Skip that step.

  • Google removed that toggle in January 2025.

    IMAP is now always on for every Gmail account, so there's nothing to switch. Go looking for it and you won't find it.

    After 5 minutes of searching, the reasonable conclusion is that something is wrong with your account. That's exactly the wrong conclusion.

  • A guide that still has the step is out of date.

    It was written before the change and hasn't been revisited since. That's a useful test of whether the rest of what you're reading has been checked recently.

Troubleshooting

If something goes wrong

  • The app password is rejected.

    Check you pasted the app password, not your ordinary Google password. They look nothing alike, but the field accepts either and only one of them works.

    Still failing? Delete that app password in your Google Account and create a new one. Copying from Google's dialog occasionally picks up a stray character.

  • You want to disconnect.

    Delete the app password in your Google Account. Access ends immediately, and you don't need to tell us, ask us, or wait for us.

    Removing the mailbox in the control panel does the same thing from this side, and doing both is reasonable.

  • Your account uses Advanced Protection.

    Google's Advanced Protection Programme blocks app passwords by design. It's aimed at people at high risk of targeted attack.

    If you're enrolled in it on purpose, this connection isn't available to you. That's the programme working as intended, not a fault.

Mechanics

Why Gmail needs an app password

It's a password you make for one app, and can take back on its own.

  • Your Google password stops being enough on its own.

    Once 2-Step Verification is on, anything signing in also needs the second factor, and a mail connection has no way to prompt you for a code.

  • An app password stands in for it.

    It's Google's answer: a 16 character password tied to your account. You can revoke it on its own at any moment, without changing your Google password or disturbing anything else you're signed in to.

  • Taking it back is the point.

    To disconnect Mailbox MCP, delete that one app password in your Google Account. Access ends immediately, from your side, without asking us. That's why this is a better arrangement than it first appears.

The diary

Google Calendar connects too, and it is its own sign-in

The app password opens your mail and nothing else. So a Google calendar is a second permission, with a button for it in the control panel next to the mailbox you've just connected.

A Google Calendar permission you can withdraw: the robot holding a key out on an open palm, unbothered, a closed mailbox behind him with its cable unplugged and coiled on the ground.
A second key, and yours to take back

That's what makes the app password safe to hand over. It opens IMAP and SMTP and nothing else, so it can't reach your Drive, your contacts or your diary even if something tried.

Google's calendar address refuses the app password too. Google does run a CalDAV endpoint, the same protocol every other calendar here connects with. There was never an address to paste that would have worked, which is why this route is a sign-in and not a field.

What connecting it looks like

Press Connect Google Calendar and choose an account. Google shows you exactly what's being asked for before you approve anything.

The permission covers the diary and never the mail. You can withdraw it from your Google account whenever you like, and disconnecting it here hands it back rather than leaving it on your account page for years. Nothing about how your mail is opened changes.

The Google account doesn't have to be the mailbox address. Plenty of people keep the diary and the mail in different places: a personal Gmail mailbox beside a Workspace calendar is an ordinary arrangement, not an edge case.

The control panel shows which account the calendar came back as. So if you pick the wrong one in Google's chooser, you find out immediately rather than a fortnight later.

What your assistant can then do with the diary

  • Read and search the diary.

    Read the week and search it by subject, location or organiser. Open one event with everybody who was invited and how each of them answered.

  • Find out who's free.

    Ask when a group of people are free and get back busy blocks, not the contents of their diaries.

    Somebody whose calendar can't be read comes back as unknown, never as free. That's the difference that decides whether a meeting gets booked over their afternoon.

  • Book your own time.

    Book it, move it, repeat it weekly. A recurring meeting appears on every date it falls on, not once as a rule nobody can read.

    Times come back in your calendar's own timezone rather than assumed.

  • Meet other people.

    Invite people to a meeting, reschedule it and tell everybody, or cancel it with a message. Accept, tentatively accept or decline an invitation that has come in.

3 things Outlook does that Google has no equivalent of

These are missing on this route rather than offered and refused, which is the same rule the rest of this product follows.

  • Declining with a counter-proposal.

    In Outlook this is a structured message the organiser accepts or rejects. Google has no public API for one, and emailing the organiser instead would have an assistant report a proposal nobody will ever see.

  • Forwarding an invitation.

    This means something different on Google. Adding somebody to the attendee list makes you appear to have invited them, and on an event you don't organise it's usually refused outright.

  • The out-of-office, the one most worth knowing about.

    Google Calendar has something called an out-of-office event, and it isn't what you'd assume. It declines meetings and emails nobody.

    The real equivalent of an Outlook automatic reply is Gmail's vacation responder. It sits behind a restricted Google permission that requires an annual third-party security assessment, so it isn't something we hold.

    An assistant that quietly set a calendar event when you asked for an out-of-office would leave you looking rude to everybody who wrote while you were away, and neither you nor we would see it happen.

If a tool you wanted is missing

If you untick a box on Google's consent screen, the tools that needed it are absent afterwards, rather than present and failing. Connect the calendar again and leave everything ticked.

How to connect a calendar, on all 3 routes, and what an assistant can safely be trusted with once one is connected.

A diary or an address book on a CalDAV or CardDAV server elsewhere, Fastmail or iCloud say, connects to a Gmail mailbox by its address instead. The CalDAV and CardDAV page has the addresses and the app password each one wants.

The address book

Google contacts: your Gmail address book connects too

A Google sign-in of their own, from the mailbox's Connection tab. A contact is looked up when your assistant asks, and never kept.

What Mailbox MCP keeps for your Google contacts: the robot locking a single key into a small safe beside a closed mailbox.
The permission is kept. Your contacts are not

Any mailbox that connects with a password, Gmail or any other IMAP host, one with no CardDAV server included, can bring its Google contacts with a Google sign-in of their own, from the mailbox's Connection tab in the control panel: the mail keeps its password, and a Google calendar on the same account is left as it was.

It's a second sign-in for the same reason the calendar is. The app password opens your mail and nothing else, and Google's contacts are reached through its People API, which takes a Google sign-in and refuses an app password. So your Gmail contacts are a permission you give Google directly, and you can take it back the same way.

What connecting Google contacts looks like

  1. Open the mailbox in the control panel and go to its Connection tab.
  2. Under If your contacts are in Google, press Connect Google contacts.
  3. Choose an account. Google shows you what's being asked for before you approve anything.

Google verified Mailbox MCP for this permission on 24 September 2026, so the consent screen names the app as verified rather than warning you off it.

The button is offered on a mailbox that connects with a password and has no CardDAV address book connected. A mailbox has one address book at a time.

Google describes the permission, on its own list of scopes and on the consent screen, in these words:

In Google's words

"See, edit, download, and permanently delete your contacts"

That reads more alarming than what happens. Google has one read and write permission for contacts, and its description lists everything the permission could allow.

What your assistant actually does with it is decided by the permission level you give each connection. At Read only it can only find and open cards. Nothing it does deletes one until the connection is at Send and delete, and there a compliant client stops and asks you first, naming the person.

The sign-in also asks for your email address, so the control panel can show which Google account the contacts came back as. It doesn't ask for Gmail, your Drive or your calendar.

A Google calendar on the same account stays connected. Both sign-ins ask Google to add to what that account has already allowed rather than replace it, and the contacts permission is never part of the calendar's request. As with the calendar, the Google account doesn't have to be the mailbox's own address.

What your assistant can do with your Gmail contacts

  • Find a person.

    find_contact, which every mailbox has, reads your Google contacts beside the mailbox's own history from then on, using Google's own search.

    It ranks a person from the book first, with every address, the phone numbers, the postal addresses with their postcodes, the employer and the job title.

  • Open, add, correct and import cards.

    read_contact opens one card in full. create_contact adds one, update_contact corrects one and import_contacts brings a vCard export in, all at Draft and file.

  • Delete a card for good.

    delete_contact removes one, at Send and delete.

  • Every change lands in your own book.

    A change shows at contacts.google.com and on your phone exactly as if you'd typed it there.

    That's all Gmail MCP contacts support needs to mean: the connector you already use for the mail, and your own Google address book behind it.

The tool reference has each one with what it refuses.

We tested it on a real Google account before anybody else could connect one. On 22 September 2026, from an AI client, a card was found, opened, corrected, deleted and created again, and each step was checked at contacts.google.com before the next.

The correction changed the one field asked for, and left the name, the email address, the phone number and the company exactly as they were.

What is never stored

Nothing from your address book. A card is fetched from Google to answer the question asked, held in memory for about 10 minutes, and forgotten. A card you ask the assistant to add or correct is written to your Google contacts, and to nothing of ours.

No table, no file, no log line and no audit row carries a name, an address or a phone number.

What's kept is the permission: the token Google issued, encrypted exactly as the calendar's is, and which Google account gave it. Disconnect this address book, on the same tab, deletes it and hands the permission back to Google. The privacy policy carries Google's Limited Use terms for this data.

What reads differently from Outlook or a CardDAV book

  • Google contacts are one book, named Google Contacts: Google's labels are tags on a person rather than folders, so a label is not a book of its own to search or file into.
  • Google's "Other contacts", the addresses Gmail collects by itself from people you have written to, are not reached, because they sit behind a second permission that is not asked for; find_contact finds those people in the mailbox's own history instead.
  • A contact's photo is never requested on Google contacts, on a look-up or a correction, and a correction leaves the photo and the labels exactly as they were.
  • On Google contacts an imported card is skipped where the book already holds its first email address (Google mints the ids, as Microsoft does), a card with no email address is added every time, a group card is not imported, and the rest go to Google in batches rather than one at a time. So run a file once.
  • On Google contacts the same named fields come across, each email address and phone number keeping its type; a birthday, a photo, a web address or the categories in the export do not.
  • A delete reads the card again first, and is refused if it has changed since your assistant last read it, so an edit made elsewhere in the meantime stops the delete. Google has no conditional delete, so that check runs just before the delete rather than inside it. That's the one small difference from Outlook contacts and a CardDAV book.

If your address book lives somewhere other than Google, Fastmail or iCloud say, the CalDAV and CardDAV page connects it to this mailbox by its address instead.

Limits

What this connection does not do

  • One mailbox each

    One connection is one mailbox. Aliases send fine; a separate account needs its own connection.

  • The app password is mail only, and no Drive

    An app password opens the mail and nothing else in your Google account. Your Google contacts and your calendar each connect with a Google sign-in of their own. Until one is, people are found from the mailbox's own history, and no calendar tools are handed over rather than tools that would refuse. No connection here reaches Google Drive, and none asks for it.

  • Labels read as folders

    Gmail labels are read as folders, and a message in several labels appears in each.

  • 20 MB a message

    Attachments are capped at 20 MB a message in total, not per file, and the ceiling is ours rather than Google's. A file in your mailbox can use all of it; one the assistant writes itself is far smaller.

  • A file the assistant writes itself

    Only a file the assistant composes and has to write out itself is small. Files already in the mailbox, at a web address, uploaded through a one-off link, or in a ChatGPT conversation are streamed at send time and never pass through the model.

FAQ

Questions about connecting Gmail to Claude or ChatGPT

How do I connect Claude to Gmail?

Make an app password in your Google Account, then in the Mailbox MCP control panel add a mailbox, choose Gmail or Google Workspace, and paste it with your address. Then add Mailbox MCP to Claude from its directory under Customize, Connectors, or as a custom connector, and sign in. It takes a few minutes. If Google won't show the app password page, add a phone or an authenticator app to 2-Step Verification first.

How do I connect ChatGPT to Gmail?

Connect the Gmail mailbox in the Mailbox MCP control panel with a Google app password, as you would for any AI. Then in ChatGPT select Plugins, find Mailbox MCP, choose Install plugin and sign in, picking that mailbox. You don't paste a URL. ChatGPT has a Gmail app of its own too, so type @ and pick Mailbox MCP when you want this one.

Claude already has a Gmail connector. Why would I use this one?

For 3 jobs. Anthropic says its connector sees attachments as metadata only; Mailbox MCP reads what's inside them and attaches files. The same Gmail works in ChatGPT or any other AI. And each Google account is a connector of its own, so you can connect several. If you keep both, name Mailbox MCP in your request so Claude knows which to use.

Do I need to turn on IMAP in Gmail first?

No. Google removed that switch in January 2025, and IMAP is now on for every Gmail account. A guide that tells you to find Forwarding and POP/IMAP and enable IMAP was written before the change. You only need an app password.

Why does Google say app passwords aren't available for my account?

Because app passwords need 2-Step Verification backed by a phone number or an authenticator app, and a passkey or a security key on its own doesn't count, even though Google shows 2-Step Verification as on. Add a phone or an authenticator app and the page appears. On a work or school account, an administrator may have switched app passwords off.

Can Claude or ChatGPT send email from my Gmail?

Yes, if you let them. Each connection has a level: Read only, Draft and file, or Send and delete. At Send and delete, Claude or ChatGPT can send and reply from your own address, and the copy is filed in Sent once. A compliant AI client asks you before anything goes out. You choose the level when you connect, and can change it later.

Can Claude read my Gmail contacts?

Yes, once you connect them. Your Gmail contacts are your Google contacts, and the app password that opens your mail does not reach them, so they take a Google sign-in of their own: on the mailbox's Connection tab, under "If your contacts are in Google", press Connect Google contacts. Your assistant can then find a person with find_contact, open a card with read_contact, and add, correct, import or delete cards. ChatGPT or any other MCP client can too.

Is a copy of my Google contacts stored anywhere?

No. A card is fetched from Google to answer the question asked, held in memory for about 10 minutes, and forgotten; no database table, file, log line or audit row of ours carries a name, an address or a phone number. What is stored is the permission itself: the refresh token Google issued, encrypted as the calendar's is, and which Google account gave it.

Attribution

Sources

Connect a Gmail mailbox.

The free tier is 5 calls a day on any mailbox. Revoking access is one click in your own Google Account, which is a reasonable thing to check before you commit to anything.