What the integration exposes
| Tool | Input | Returns | Scope |
|---|---|---|---|
| search_files | query, mime type, limit | File names, owners, modified dates, URLs | drive.metadata.readonly |
| get_file_metadata | file ID | Metadata and permission summary | drive.metadata.readonly |
| list_folder | folder ID | Direct children with types | drive.metadata.readonly |
| read_document | file ID | Extracted text for supported document types | drive.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
| Action | Status | Reason |
|---|---|---|
| Create or edit files | Not enabled | Write access is a separate, approved capability. |
| Delete or move files | Not enabled | Destructive actions are out of scope. |
| Change sharing permissions | Not enabled | Permission changes must stay in Drive's admin surface. |
| Read trashed files | Not enabled | Reduces accidental exposure. |
| Access files the user cannot open | Blocked | The 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 .