Start a project Estimate a range

Public MCP tools, Markdown pages and a project brief API. No account required.

Integration

Google Drive MCP integration with per-user consent

Document access is an authorization problem before it is a search problem. The integration should only see files the authorizing user can already open.

Request integration

In short

A Google Drive MCP integration retrieves document metadata and text using per-user OAuth grants with read-only Drive scopes. Each user consents to their own access, tokens are stored encrypted server-side, and the default profile cannot modify, delete or share files.

What the integration exposes

Default Google Drive tool surface
ToolInputReturnsScope
search_filesquery, mime type, limitFile names, owners, modified dates, URLsdrive.metadata.readonly
get_file_metadatafile IDMetadata and permission summarydrive.metadata.readonly
list_folderfolder IDDirect children with typesdrive.metadata.readonly
read_documentfile IDExtracted text for supported document typesdrive.readonly

How authorization works

Each user authorizes the integration through Google OAuth with PKCE and a narrow scope. The token is stored encrypted on the server, bound to that user, and refreshed only while the grant is active.

The MCP client never sees the Google token. It sees a tool result for a document the user could already open. When the grant is revoked, the next call fails closed.

Prerequisites

  • A Google Cloud project with an OAuth consent screen configured.
  • A verified application identity and exact redirect URIs.
  • Scopes limited to metadata and read access; no write scopes.
  • A Workspace policy review for third-party app access.
  • A staging account with representative files for testing.
  • A retention rule for extracted text and cached metadata.

Boundaries and limits

Default exclusions
ActionStatusReason
Create or edit filesNot enabledWrite access is a separate, approved capability.
Delete or move filesNot enabledDestructive actions are out of scope.
Change sharing permissionsNot enabledPermission changes must stay in Drive's admin surface.
Read trashed filesNot enabledReduces accidental exposure.
Access files the user cannot openBlockedThe user grant is the boundary.

Document extraction and citations

Google Docs and Slides are exported as text. PDFs and scanned images require an OCR step, which we scope separately because it changes data handling and cost.

Every result includes the file ID, name, owner, modified time and a canonical URL. The assistant is instructed to cite the file, not to invent a summary without a source.

Questions people ask before starting

Can one user see another user's files?

No. Each user authorizes their own grant, and the server queries with that user's token. A shared service account is used only if you explicitly choose a curated corpus instead of per-user access.

Are files downloaded and stored?

Extracted text may be cached for a short retention window to reduce API calls. The retention period, storage location and deletion rule are agreed before the integration is enabled.

Does it support Shared Drives?

Yes, within the permissions of the authorizing account. Shared Drive administration and membership changes are not part of the integration.

What about Google Workspace app approval?

Your Workspace administrator may need to approve the OAuth client. We provide the client ID, scopes and consent-screen details for review before testing.

Next step

Scope document access

Tell us whether access should be per-user or a curated corpus. That decision sets the credential model.

Last verified .

Start a project

Tell us what you need

Used only to reply. No newsletter.

System, AI client and action. Do not include secrets or personal data.

No account. A reference code is returned immediately. Prefer an agent? Use the agent hub.

Copy manually

Clipboard access was blocked. Select the text and copy it.