Integration handbook

Claude / Google Drive ยท Documentation-reviewed guide

Google Drive for Claude

Find and cite the right Drive files, distinguish search from document editing, and choose between Claude's built-in connector and Google's custom MCP.

Official setup guide (opens in a new tab)
Connection
Workspace connector / MCP / API
Access
Scoped to your account
Testing
Not account-tested
Contents & search

Connect Claude to Google Drive

Drive is a discovery and file-management layer, not just a folder full of text. Several files can share a name, and a document may be a shortcut, a binary upload or a Google-native file. Resolve the file ID and source account before summarizing or changing it.

Claude's built-in Google Workspace connector is the easiest conversational route where available. Google also documents a custom MCP configuration using your own Cloud OAuth client. These are separate setup paths; a user of the built-in connector should not be told to create a Cloud project unnecessarily.

Before you start

  1. Select the correct Google identity, organization and target folder/shared drive.
  2. For a built-in connector, check Claude organization approval and Google Workspace app restrictions.
  3. For a custom MCP client, follow Google's Cloud project, API and consent configuration. Its documented Claude custom-connector route has plan requirements distinct from the built-in Workspace connector.

Authorization & setup

Built-in connectors authorize through Google sign-in. For the custom MCP route, Google documents an OAuth web client, the Claude callback URL and the AI-powered-agent client setting. Read the official setup before creating credentials.

For custom REST code, use scoped OAuth. A Drive file ID or a public-looking URL is not an authorization token. A service account does not inherit a human user's entire Drive; sharing and any domain-wide delegation are separate administrative decisions.

Permission decisions before connecting
Route / permissionPurposeBoundary
drive.readonlyRead authorized Drive filesBroad read access can be sensitive; inspect consent
drive.fileAccess files allowed to the appNot equivalent to unrestricted access to all Drive
Permission/share operationsChange audienceRequire explicit approval and inspect external recipients
Source: Provider authorization reference
  1. For the native route, enable Google Drive from Claude connectors and authorize the intended Google account.
  2. For custom MCP only, configure Google Auth Platform and the scopes required by the official guide, including authorized test users where applicable.
  3. Create an OAuth web client with https://claude.ai/api/mcp/auth_callback and the documented AI-powered-agent setting, then enter its details in Claude custom connector advanced settings.
  4. Add the official remote MCP URL, complete sign-in and test a known non-sensitive file.
  5. Ask for source links and compare the returned file ID, title and content with the original before using broad searches.

Local environment for custom code

The hosted connector signs in through the provider; it does not read an environment file from this website. The following placeholders are only for a separate server-side project. Keep .env.local ignored by Git and configure deployment secrets separately. Never use NEXT_PUBLIC_ for these values.

.env.local - placeholders only

ENV
# Separate REST app only; not needed by the built-in connector
GOOGLE_ACCESS_TOKEN=replace_with_short_lived_oauth_access_token
GOOGLE_FOLDER_ID=replace_with_authorized_folder_id

Supported operations & boundaries

Google Drive: choose the right operation
OperationRouteImportant boundary
Search and retrieve contextBuilt-in connector / MCPRead relevant content before summarizing
Upload, move, share or trashSupported connector/toolsThese change state or audience; require review
Edit a Google-native documentDedicated Docs/Sheets/Slides connectorDo not confuse file management with format-specific editing
List file metadataDrive REST APIContent retrieval/export is a separate request
Source: Provider capability reference

Make a bounded first request

List a small Drive metadata page

CURL
curl --fail-with-body --get https://www.googleapis.com/drive/v3/files \
  --data-urlencode "q=trashed = false" \
  --data-urlencode "pageSize=5" \
  --data-urlencode "fields=nextPageToken,files(id,name,mimeType,webViewLink)" \
  --header "Authorization: Bearer $GOOGLE_ACCESS_TOKEN"

This lists selected metadata only. It neither downloads file contents nor confirms that all drives were searched. Add the appropriate folder/shared-drive constraints and follow nextPageToken within the requested budget.

Endpoint & protocol reference

These are provider API or protocol entry points, not a promise that the same named operation is exposed in every MCP client. Discover the live MCP tool schema before calling it. Follow the linked reference for request bodies, pagination, permissions and current limits.

A practical workflow

  1. For a customer briefing, agree on folder/shared drive, customer and date range.
  2. Search metadata, resolve duplicate titles and read only selected relevant files. Preserve source IDs, URLs and available modification dates.
  3. Separate source statements from your synthesis. A filename containing final is not evidence that it is the latest approved document.
  4. If saving a briefing, preview filename, folder, file type and sharing. Default to a private draft rather than changing source file permissions.
  5. After an approved save, inspect the new file metadata and audience. Return its URL and source list; do not claim public availability without checking it.

AI agent playbook

Produce a file-grounded answer or an approved private output in Drive.

Execution contract
BoundaryRequired context
Required inputsGoogle identity; Folder/shared drive and file IDs; Topic/date window; Allowed audience
Approval requiredUploads, moves, sharing and trash; Creating folders or changing permissions
Stop conditionsAmbiguous file identity; Unexpected external sharing; Content not retrieved or extraction incomplete
Return to the userSources and coverage; Facts versus inference; Saved file receipt only if actually created
Source: Handbook editorial workflow (not a provider guarantee)
  1. Resolve file IDs and duplicate names.
  2. Read selected content and track dates.
  3. Report pagination/coverage and extraction limitations.

Troubleshooting

Two files have the same name
Likely cause
Drive names are not unique.
What to do
Disambiguate by ID, parent folder, owner and modification date before reading or editing.
Custom MCP authorization is rejected
Likely cause
OAuth client settings, callback or Workspace policy may not match the documented agent setup.
What to do
Check the official setup and ask the Workspace admin to inspect OAuth events; do not switch to broad delegation as a shortcut.
Search returns incomplete coverage
Likely cause
Pagination, shared-drive parameters, permissions or query constraints may narrow results.
What to do
Report the searched scope and follow bounded pagination rather than claiming an exhaustive corpus search.

Revoke access, costs & maintenance

  1. Disconnect the native/custom connector and review Google account third-party access.
  2. Revoke custom OAuth grants and clean up unused Cloud credentials separately.
  3. Review files already uploaded or shared; revocation does not automatically restore their previous audience.

Workspace storage, API quotas and AI-client plan requirements apply. The built-in and custom MCP routes can have different eligibility; confirm the chosen path rather than making a universal free-plan claim.

Prompts to get started

Start with read-only questions. Replace placeholders with your own account context; these are examples, not live results.

Cited file briefing

PROMPTCopy into your conversation
Within [folder/shared drive], find [topic] for [date range]. Resolve duplicate names and read relevant content. Cite file URLs and dates; distinguish statements from inference. Do not upload, move, share or delete files.
Private draft save proposal

PROMPTCopy into your conversation
Prepare a briefing from these verified sources. Show the intended filename, destination folder and sharing state. Wait for approval to save it, and verify the resulting file URL and audience afterward.

Frequently asked questions

Do I need a Google Cloud project for the built-in connector?

Not for the usual built-in sign-in flow. A custom MCP/OAuth application has separate developer setup requirements.

Does connecting Drive edit every Google file?

Do not assume that. Search/file management and dedicated Docs, Sheets and Slides editing are separate surfaces with their own tools and permissions.

Is this account-tested or a working connection?

No. Official documentation was reviewed on November 17, 2026. This guide does not connect accounts or execute examples. Validate with your own permissions before adopting it in an agent.

Sources & resources

References used in this guide

Documentation-reviewed guide. Provider facts come from the linked references; workflow recommendations and agent approval boundaries are our editorial guidance. No private account, paid action or end-to-end workflow was tested.

Logos are local SVGs from Simple Icons. Brand marks belong to their respective owners; credits are not an endorsement. No provider screenshots have been copied into this preview.

Icon library & licensing