Google Drive MCP server
24 operations1 webhook
Cloud file storage for uploading, organizing, sharing, and syncing documents online.
Try Google Drive with your agent
Connect Google Drive, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.
Using Corsair, show me what you can do in Google Drive on my account, then run one read-only example and show me the result.
Google Drive tools and triggers
Tools are what your agent can do in Google Drive through Corsair's MCP server. Triggers are the Google Drive events a routine can start from.
Files
- CopyWrite
Copy a file in Google Drive
files.copy
- Create From TextWrite
Create a new Drive file from text content
files.createFromText
- DeleteDestructive
Permanently delete a file [DESTRUCTIVE · IRREVERSIBLE]
files.delete
- DownloadRead-only
Download a file with its name, type and size. Up to about 700 KB the content comes back inline: a text file as text, any other file as base64. A larger file comes back with fileId, where the host saved it (on Corsair, a Files id to pass to another app or read with files.read_text), or with contentOmitted when the host keeps no files. Google Docs, Sheets and Slides can't be downloaded; use files.export.
files.download
- ExportRead-only
Export a Google Docs, Sheets, Slides or Drawings file to a regular format: Markdown for Docs, CSV (first sheet only) for Sheets, PDF for Slides and PNG for Drawings unless mimeType names another, such as docx, xlsx or pptx. Drive exports up to 10 MB. The result comes back like files.download: inline up to about 700 KB, otherwise as fileId where the host saved it, or with contentOmitted.
files.export
- Export TextRead-only
Google Docs only; returns the plain text of all tabs, cut at 500,000 characters. For other files use files.export or files.download.
files.exportText
- GetRead-only
Metadata of one file; set fields to choose which, e.g. "id,name,modifiedTime,owners,webViewLink,size". For content use files.download, files.export or files.exportText.
files.get
- ListRead-only
Lists files, returning only id, name and mimeType unless fields is set. Includes trashed files unless q has "trashed = false". Page with nextPageToken.
files.list
- MoveWrite
Move a file to a different folder
files.move
- ShareWrite
Share a file by granting permissions to users
files.share
- UpdateWrite
Update the content or metadata of a file
files.update
- UploadWrite
Upload a file to Google Drive
files.upload
Folders
- CreateWrite
Create a new folder
folders.create
- DeleteDestructive
Permanently delete a folder and its contents [DESTRUCTIVE · IRREVERSIBLE]
folders.delete
- GetRead-only
Get metadata for a specific folder
folders.get
- ListRead-only
Lists folders only. For what is inside a folder use files.list with q "'FOLDER_ID' in parents and trashed = false".
folders.list
- ShareWrite
Share a folder by granting permissions to users
folders.share
Shared Drives
- CreateWrite
Create a new shared drive
sharedDrives.create
- DeleteDestructive
Permanently delete a shared drive [DESTRUCTIVE · IRREVERSIBLE]
sharedDrives.delete
- GetRead-only
Get info about a shared drive
sharedDrives.get
- ListRead-only
List shared drives
sharedDrives.list
- UpdateWrite
Update a shared drive
sharedDrives.update
Search
- Files And FoldersRead-only
Files and folders matching a Drive q, returning only id, name and mimeType unless fields is set. Includes trashed files unless q has "trashed = false".
search.filesAndFolders
Storage
- Get QuotaRead-only
Get the user's Google Drive storage quota and usage
storage.getQuota
Connect Google Drive to Claude, ChatGPT or Cursor
- 1
Connect Google Drive in Corsair
Sign in to Google Drive once in Corsair. Corsair stores the credential encrypted and makes the Google Drive API calls for your agent, so it never goes into a prompt or a config file. Connect Google Drive
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs Google Drive. On a ChatGPT personal plan, connect Google Drive here first.
- 2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcpOpen Plugins → Add → Add custom connector, name it Corsair, paste the address, select Continue, then Add.Install Corsair from ChatGPT's plugin directory, connect it and sign in. A custom MCP server with the address works too, but personal plans get its read tools only.Add to Cursor / Grok BuildOr add this to~/.cursor/mcp.json. It opens Corsair to sign in the first time it connects.{ "mcpServers": { "corsair": { "url": "https://mcp.corsair.dev/mcp" } } }Run this, then run/mcpin Claude Code to sign in.claude mcp add --transport http corsair https://mcp.corsair.dev/mcpCodex, Antigravity, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client
- 3
Sign in and choose what needs your approval
Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, Google Drive's read and write operations run right away and its 3 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.
FAQ
Install corsair and @corsair-dev/googledrive, add the Google Drive plugin, and connect with OAuth. Then call methods like corsair.googledrive.api.files.copy() from your app. Corsair verifies webhooks, stores tokens, and syncs data per tenant.
Yes. Google Drive needs an OAuth app with scopes that match what you automate. Register the app in Google Drive, configure redirect URLs, then connect through Corsair or managed OAuth in Hub.
Yes. One Corsair client can hit Google Drive, GitHub, Notion, Stripe, and the rest. Trigger Google Drive from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for cloud file storage for uploading, organizing, sharing, and syncing documents online. Common builds include sync jobs, admin tooling, and agents that call Google Drive APIs from your backend. Webhook handlers react to Google Drive events and fan out to Slack, email, or other plugins in the same tenant. Local DB entities let you query synced Google Drive records without hitting the API on every read.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per Google Drive API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/googledrive in the open repo. When Google Drive ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your Google Drive data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store Google Drive data on your behalf.
Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.
Yes. Put Google Drive on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 3 destructive Google Drive operations. You can change a link's mode at hub.corsair.dev/me.