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
Find in guide
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
- Select the correct Google identity, organization and target folder/shared drive.
- For a built-in connector, check Claude organization approval and Google Workspace app restrictions.
- 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.
| Route / permission | Purpose | Boundary |
|---|---|---|
| drive.readonly | Read authorized Drive files | Broad read access can be sensitive; inspect consent |
| drive.file | Access files allowed to the app | Not equivalent to unrestricted access to all Drive |
| Permission/share operations | Change audience | Require explicit approval and inspect external recipients |
- For the native route, enable Google Drive from Claude connectors and authorize the intended Google account.
- For custom MCP only, configure Google Auth Platform and the scopes required by the official guide, including authorized test users where applicable.
- 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.
- Add the official remote MCP URL, complete sign-in and test a known non-sensitive file.
- 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.
# 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_idSupported operations & boundaries
| Operation | Route | Important boundary |
|---|---|---|
| Search and retrieve context | Built-in connector / MCP | Read relevant content before summarizing |
| Upload, move, share or trash | Supported connector/tools | These change state or audience; require review |
| Edit a Google-native document | Dedicated Docs/Sheets/Slides connector | Do not confuse file management with format-specific editing |
| List file metadata | Drive REST API | Content retrieval/export is a separate request |
Make a bounded first request
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.
- GET
/drive/v3/filesList files with a query, selected fields and pagination on www.googleapis.com.
API reference for /drive/v3/files (opens in a new tab) - GET
/drive/v3/files/{fileId}Read file metadata or supported media content with the appropriate parameters.
API reference for /drive/v3/files/{fileId} (opens in a new tab) - MCP
https://drivemcp.googleapis.com/mcp/v1Official remote MCP using Google authorization, separate from REST and custom community servers.
API reference for https://drivemcp.googleapis.com/mcp/v1 (opens in a new tab)
A practical workflow
- For a customer briefing, agree on folder/shared drive, customer and date range.
- Search metadata, resolve duplicate titles and read only selected relevant files. Preserve source IDs, URLs and available modification dates.
- Separate source statements from your synthesis. A filename containing final is not evidence that it is the latest approved document.
- If saving a briefing, preview filename, folder, file type and sharing. Default to a private draft rather than changing source file permissions.
- 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.
| Boundary | Required context |
|---|---|
| Required inputs | Google identity; Folder/shared drive and file IDs; Topic/date window; Allowed audience |
| Approval required | Uploads, moves, sharing and trash; Creating folders or changing permissions |
| Stop conditions | Ambiguous file identity; Unexpected external sharing; Content not retrieved or extraction incomplete |
| Return to the user | Sources and coverage; Facts versus inference; Saved file receipt only if actually created |
- Resolve file IDs and duplicate names.
- Read selected content and track dates.
- 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
- Disconnect the native/custom connector and review Google account third-party access.
- Revoke custom OAuth grants and clean up unused Cloud credentials separately.
- 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.
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.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
Official repository
Google APIs Node.js clientOfficial Google API client library, not the hosted MCP source.
References used in this guide
- Google Drive custom MCP configuration (opens in a new tab)
- Claude built-in Workspace connector behavior (opens in a new tab)
- Drive file list API (opens in a new tab)
- Drive file get API (opens in a new tab)
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