Connector guide6-minute read13 MCP tools7 languages

How to Connect Google Drive to ChatGPT via MCP

Let your AI work in Google Drive: search files and folders in My Drive and shared drives, read Google Docs, Sheets and Slides as text, see details, comments and who has access, create folders and text files (or new Docs and Sheets from text), copy, rename, move, share and trash. Personal Google accounts and Google Workspace.

HCBy HelpCode teamUpdated 6 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

Google Drive

Google Drive

Let your AI work in Google Drive: search files and folders in My Drive and shared drives, read Google Docs, Sheets and Slides as text, see details, comments and who has access, create folders and text files (or new Docs and Sheets from text), copy, rename, move, share and trash. Personal Google accounts and Google Workspace.

tools

13

Region

INTL

Category

File Storage

Authentication

OAuth 2.0

Required env vars

GOOGLE_CLIENT_IDGOOGLE_CLIENT_SECRET
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Skip the install. Get this working in under 2 minutes.

Start a free trial on cloud.anythingmcp.com, add the Google Drive in one click, then point your AI client (Claude, ChatGPT, Copilot or Cursor) at the generated MCP endpoint. No Docker, no git clone, zero engineering experience required.

Start free trial

Summary

Let your AI work in Google Drive: search files and folders in My Drive and shared drives, read Google Docs, Sheets and Slides as text, see details, comments and who has access, create folders and text files (or new Docs and Sheets from text), copy, rename, move, share and trash. Personal Google accounts and Google Workspace.

Try asking

Example prompts for Google Drive

Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.

Google Drive · live via MCP
Share
Opus 4.7

Claude is AI and can make mistakes. Please double-check responses.

💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Google Drive, paste your credentials, mint an MCP API key and you're done. No Docker, no git clone, no local server.

Google Drive + ChatGPT

Let your AI work in Google Drive: search files and folders in My Drive and shared drives, read Google Docs, Sheets and Slides as text, see details, comments and who has access, create folders and text files (or new Docs and Sheets from text), copy, rename, move, share and trash. Personal Google accounts and Google Workspace.

Prerequisites

See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:

GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET

Step 1 — Get credentials

  1. Open console.cloud.google.com, pick or create a project, then go to APIs & Services → Library and enable the Google Drive API.
  2. Open APIs & Services → OAuth consent screen. Choose Internal if you are on Google Workspace (the simplest option), otherwise External. For External, set the publishing status to In production: while the app is in Testing, Google revokes its refresh tokens after 7 days and the connector stops working every week. For your own account you can click through the "unverified app" warning.
  3. Open APIs & Services → Credentials → Create credentials → OAuth client ID, choose the application type Web application and add the authorized redirect URI https://cloud.anythingmcp.com/api/mcp-oauth/callback. If you host AnythingMCP yourself, enter https://your-anythingmcp-host/api/mcp-oauth/callback instead.
  4. Paste the client ID into GOOGLE_CLIENT_ID and the client secret into GOOGLE_CLIENT_SECRET, then install the connector.
  5. On the connector page, click Authorize with Provider and sign in with the Google account whose Drive the AI should use. The refresh token is stored encrypted and access tokens are renewed automatically.

One Google client for all Google connectors: the same Cloud project and OAuth client can serve every Google connector: Gmail, Google Calendar, Google Drive, Google Sheets, Google Docs, Google Tasks, Search Console, Analytics and Ads. Enable each API in that project, reuse the same client ID and secret, and authorize each connector once. Each one asks only for its own permissions.

Google verification: Google classifies full Drive access as a restricted permission. An Internal app, used only by accounts of the Workspace organization that owns the Cloud project, needs no verification. An External app that other people use shows a "Google hasn't verified this app" warning and is capped at 100 users until it passes Google's verification, which for restricted permissions includes a security assessment. For your own account, an External app In production works after you continue past the warning.

Reading files: Google Docs, Sheets and Slides are read as text (for a Sheet, its first tab; the Google Sheets connector reads any range). Uploaded files such as PDFs, Word documents or images cannot be read or downloaded through this connector: the AI gives you their link instead.

Permissions: the connector asks for https://www.googleapis.com/auth/drive, because searching and reading files it did not create itself needs full Drive access. Narrower permissions such as drive.file only see files the app created.

Read-only setup: change the scope in the connector's OAuth settings to https://www.googleapis.com/auth/drive.readonly, authorize again and disable gdrive_create_folder, gdrive_create_text_file, gdrive_copy_file, gdrive_update_file, gdrive_share_file and gdrive_trash_file.

Switched off at install: gdrive_share_file and gdrive_trash_file. Sharing is off on purpose: it gives other people access to your files, and a document the AI reads could contain text asking it to share something. Turn a tool on only if the AI really needs it. Trashed items stay restorable from Drive's trash for 30 days, and nothing in this connector deletes files permanently.

Common errors: 401 means the authorization expired or was revoked (always after 7 days while the consent screen is in Testing): click Authorize with Provider again. 403 accessNotConfigured means the Google Drive API is not enabled in the Cloud project. 403 insufficientPermissions means the scope does not allow the call (a write on a read-only setup); 403 insufficientFilePermissions means your account may not change that file. 404 notFound means the id is wrong or the file is not visible to this account.

The connector does not upload or download binary files, never deletes permanently, cannot remove anyone's access and does not handle revisions, labels or Drive activity.

Step 2 — Install the adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

Step 3 — Add the connector in ChatGPT

Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide shows YOUR_SERVER_ID.

ChatGPT connects to MCP servers as custom apps in developer mode, available on paid plans (not on Free). On Business and Enterprise workspaces an admin may have to allow it first.

  1. In ChatGPT, open Settings → Security and login and turn on Developer mode.
  2. Go to chatgpt.com/plugins and click +.
  3. Enter a name and a short description, e.g. Name: Google Drive.
  4. Under Connection, enter the MCP server URL https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID and create the connection.
  5. When ChatGPT asks, sign in to AnythingMCP (OAuth) and allow access.

Available tools

ToolWhat it does
gdrive_aboutWho is signed in and how much storage is used: user name, email and permissionId, storage limit and usage in bytes (Drive, Gmail and Photos…
gdrive_search_filesSearch or list files and folders in My Drive, files shared with the user and shared drives, with Drive's query language, e.g. "name…
gdrive_get_fileGet one file's or folder's metadata: name, mimeType, parents, owners, last modifier, dates, size, webViewLink, what the user may do with it…
gdrive_export_fileRead the content of a Google Doc, Sheet or Slides file as text: Docs as text/plain, text/markdown or text/html, Sheets as text/csv or…
gdrive_create_folderCreate a folder, at the root of My Drive or inside the given parent folder or shared drive
gdrive_create_text_fileCreate a file from text in one call: a plain file (.txt, .md, .csv, .html, .json), or a Google Doc converted from plain text, Markdown or…
gdrive_copy_fileCopy a file (not a folder), optionally with a new name and into other folders
gdrive_update_fileRename, move, describe or star a file or folder
gdrive_trash_fileMove a file or folder to the trash (a folder takes its contents along)
gdrive_list_permissionsList who has access to a file or folder: each permission's id, type (user, group, domain, anyone), role (owner, organizer, fileOrganizer…
gdrive_share_fileShare a file or folder: give a person or group (type user/group + email_address), a whole domain (type domain + domain) or anyone with the…
gdrive_list_commentsList the comments on a file (Docs, Sheets, Slides, PDFs...): author, text, the quoted passage, created and modified time, resolved state…
gdrive_list_shared_drivesList the shared drives the user is a member of, with id and name

Example prompts

  • "Find the documents about the Acme project changed in the last two weeks and summarize what's in them."
  • "Who has access to the folder Contracts 2026?"
  • "Create a folder Q4 Reports and save this summary in it as a Google Doc."
  • "Read the comments on the proposal draft and list the questions that are still open."

FAQ

Does the free ChatGPT plan work with custom MCP connectors? No. Custom MCP connections need developer mode, which is only on paid plans.

Next steps

Was this guide helpful?

Your Google Drive agent is one click away.

Install the connector, paste the key, prompt ChatGPT. Free for 7 days, no credit card.

Related guides

Connectors

How to Connect Google Drive to Claude via MCP

Let your AI work in Google Drive: search files and folders in My Drive and shared drives, read Google Docs, Sheets and Slides as text, see details, comments and who has access, create folders and text files (or new Docs and Sheets from text), copy, rename, move, share and trash. Personal Google accounts and Google Workspace.

Connectors

How to Connect Google Drive to Cursor via MCP

Let your AI work in Google Drive: search files and folders in My Drive and shared drives, read Google Docs, Sheets and Slides as text, see details, comments and who has access, create folders and text files (or new Docs and Sheets from text), copy, rename, move, share and trash. Personal Google accounts and Google Workspace.

Connectors

How to Connect Google Drive to Gemini via MCP

Let your AI work in Google Drive: search files and folders in My Drive and shared drives, read Google Docs, Sheets and Slides as text, see details, comments and who has access, create folders and text files (or new Docs and Sheets from text), copy, rename, move, share and trash. Personal Google accounts and Google Workspace.

Connectors

How to Connect Google Drive to Meta Muse via MCP

Let your AI work in Google Drive: search files and folders in My Drive and shared drives, read Google Docs, Sheets and Slides as text, see details, comments and who has access, create folders and text files (or new Docs and Sheets from text), copy, rename, move, share and trash. Personal Google accounts and Google Workspace.

Connectors

Google Drive to MCP: Drive Google Drive from any AI Agent

Let your AI work in Google Drive: search files and folders in My Drive and shared drives, read Google Docs, Sheets and Slides as text, see details, comments and who has access, create folders and text files (or new Docs and Sheets from text), copy, rename, move, share and trash. Personal Google accounts and Google Workspace.

Connectors

How to Connect Google Calendar to ChatGPT via MCP

Let your AI work with Google Calendar: see the calendars you have, list and search events in any time range, read event details and guests, create and reschedule meetings with guests and Google Meet links, answer invitations, add events from a sentence and check when people are free. Personal Google accounts and Google Workspace.