Claude+Gmail

Claude and Gmail: Setup, Attachments and Fixes

How to turn on Google's Gmail connector for Claude, what it can and cannot do, how to fix it when it stops working, and how to have every attachment saved, named and filed for you.

The short answer

Claude connects to Gmail through a connector Google makes for it: open the + menu in a chat, choose Connectors, turn on Gmail and sign in with Google. It searches and reads mail, drafts, sends, replies and forwards (asking first by default), and manages labels and filters. It sees an attachment's name but not its contents, and cannot save an attachment to a folder. To have every attachment saved, renamed and filed in Google Drive, OneDrive or Dropbox as it arrives, a Drive AI workflow does that.

Set up

How to connect Claude to Gmail

01

Turn it on in a chat

Open the + menu, choose Connectors, switch on Gmail and sign in with the Google account to use. You can also connect it under Customize, Connectors.

02

Team or Enterprise: the owner enables it

An owner turns Gmail on in Organization settings, Connectors, and decides whether members may let sending run without asking each time.

03

Workspace accounts: trust the app

If Google says your admin needs to review Claude, a Google Workspace admin marks the Claude app as Trusted under Security, Access and data control, API controls.

04

Claude Code: connect it on claude.ai

Gmail cannot be added from inside Claude Code. Connect it at claude.ai, then sign in to Claude Code with that claude.ai account and it loads on its own.

What it does

What Claude's Gmail connector can and cannot do

It can

  • Search and read mail and threads
  • Draft, send, reply and forward, asking before each by default
  • Forward a message with its original attachments, and attach files Claude has made
  • Create and apply labels and filters, and move mail to the trash or spam

It cannot

  • Open an attachment's contents: Anthropic says it gets attachment details, not content
  • Save an attachment to Google Drive or any folder
  • Connect more than one Google account at a time, by third-party reports
  • Read images embedded in an email
  • Be added from inside Claude Code; it is connected on claude.ai

Troubleshooting

Claude's Gmail connector not working?

"Access blocked: your institution's admin needs to review Claude"

Your Google Workspace blocks third-party apps by default. A Workspace admin opens admin.google.com, then Security, Access and data control, API controls, Manage third-party app access, and marks the Claude app as Trusted. Allow about 15 minutes.

"Please try again. You may need to reconnect"

Disconnect Gmail under Customize, Connectors and connect again. If it keeps failing, remove Claude at myaccount.google.com/connections first, then reconnect from Claude.

Connecting a second Gmail account replaced the first

The connector holds one Google account at a time, by third-party reports; Anthropic's docs refer to "the Google account you connected". Switch accounts by disconnecting and connecting the other one.

"Is Anthropic-hosted and doesn't support local OAuth" in Claude Code

Remove the entry you added with claude mcp remove, connect Gmail at claude.ai instead, and sign in to Claude Code with the same claude.ai account. With an API key or a cloud provider configured, claude.ai connectors do not load at all.

Gmail is missing in Claude Code while Google Drive shows up

Users report this on open GitHub issues in 2026, even after reconnecting. Check /mcp and /status, sign in again with your claude.ai account, and use Gmail from claude.ai or Claude Desktop meanwhile.

Bigger jobs

Where it stops, and what The Drive AI adds

Claude's connector works with the messages. Getting each attachment out of the inbox and into the right folder is a workflow, which runs on every email as it arrives.

JobClaude's connectorWith The Drive AI
Save every attachment to Google DriveNo tool for it.A workflow saves each attachment as the email arrives.
Read an invoice attached to an emailSees the file name only.Each attachment is read on arrival, and what it says decides where it goes.
Name and file attachments consistentlyNo.Renamed from its contents, date first, and filed by sender, client or type.
Several Gmail accountsOne at a time, by reports.More than one account of each.
Search mail, draft and send repliesYes.No. The Drive AI handles attachments, not mail. Keep Claude's connector for that.

Set it up once

It sits beside Google's Gmail connector for Claude rather than replacing it. Connecting Gmail to The Drive AI comes with Max and Team; files in The Drive AI workspace work on every plan.

Claude.ai and Claude Desktop

Settings → Connectors → Add custom connector, then paste the server URL. Connectors are on your account, so the desktop app gets it too.

Claude Code

claude mcp add --scope local --transport http thedriveai https://thedriveai.fastmcp.app/mcp

Server URL

https://thedriveai.fastmcp.app/mcp

Try it

Prompts for Gmail

When an email with an attachment arrives in Gmail, save each attachment to my Google Drive, rename it date-first from what it says, and file it in a folder for its document type.

Every attachment ends up named and filed without anyone opening the email.

When an invoice arrives as a Gmail attachment, read the vendor, number, date and total off it, rename it date-first, and file it in Google Drive under Invoices by vendor.

Invoices are filed by vendor the moment they arrive, with the details read from the invoice itself.

When an attachment arrives in Gmail, save it to Dropbox, read the client name off it, and file it under that client, renamed date-first with the document type.

Client paperwork lands in the client's folder in Dropbox, whoever it was sent to.

Can Claude read Gmail attachments?

Not through the Gmail connector. Anthropic says it receives attachment details but not their content. Users save the attachment to Google Drive and have Claude read it there; a Drive AI workflow does that saving automatically for every email.

Can Claude send emails from Gmail?

Yes. Since August 2026 the Gmail connector can send, reply and forward, and by default it asks for your approval before each one. On Team and Enterprise plans, owners decide whether members may skip the approval.

Can I connect more than one Gmail account to Claude?

Not at the same time, according to third-party guides: connecting another account replaces the first. Anthropic's documentation refers to a single connected Google account.

Which Claude plans include the Gmail connector?

Anthropic's help centre lists Google Workspace connectors for all users, while its connector documentation lists Pro, Max, Team and Enterprise, and sending was announced for paid plans.

How do I save Gmail attachments to Google Drive automatically?

With a workflow: connect Gmail and Google Drive to The Drive AI and describe what to do, for example save each attachment, rename it from its contents and file it by type. It runs on every email from then on.

Every attachment, filed as it arrives.

Describe it once and a workflow saves, renames and files each attachment in the drive you choose. Build it here, or ask for it from Claude with The Drive AI connector added.