Skip to content

Google Drive API and MCP

Google Drive lets applications search, read and manage files in an authorized user's Drive. An agent can find files, read file information and create folders in the connected account. Connect your Google Drive account once with OAuth in Longwave; agents act only on that account.

Add to Longwave

Add Google Drive to your agent

Paste this into Claude Code or a terminal. Then run /mcp to sign in.

functions
6
access
Connect account
tasks
1

Use Google Drive on Longwave

  1. Download Longwave or open app.longwave.run.
  2. Connect your Google Drive account once. Agents then act on that account, and only that account.
  3. Ask for the result in any thread, for example: “Find files for a project research brief”. The agent picks the Google Drive function and calls it.

Use Google Drive in Claude Code, Codex, Cursor or ChatGPT

Add the Longwave MCP server once. It carries 2,593 functions across 103 tools, including Google Drive, and asks you to sign in on first use.

Why call Google Drive through Longwave

  • One sign-in to Google Drive, shared by every harness and device you use.
  • One MCP server for 103 tools, so your agent setup does not grow a key and a server per vendor.
  • Spending limits per key and per account, checked before a paid call is made.
  • Each call is recorded with the provider, the cost and the result, and can be read again from another device.

Google Drive functions

Google Drive 3

Every function here: Included within the connected account's API quota or product plan; no separate per-call fee published. Included within the connected account's API quota or product plan; no separate per-call fee published.

Function
List Google Drive files List one bounded page of file metadata visible to the connected Google account. google-drive.files.list
Get Google Drive file metadata Read metadata for one file; this operation does not download file content. google-drive.files.get
Create a Google Drive folder Create one folder; a parent folder must be accessible under the drive.file grant. google-drive.folders.create

Functions 3

Function Price
google-drive.files.update google-drive.files.update
See vendor pricing
google-drive.files.copy google-drive.files.copy
See vendor pricing
google-drive.permissions.list google-drive.permissions.list
See vendor pricing

Prices are Google Drive's published rates. Source: Google Drive pricing.

Use cases

Questions people ask

How do I search files with the Google Drive API?

Use the files.list q parameter to filter files by properties such as name, MIME type and parent folder. The API returns a page of matching file records. Google Drive documentation

Does a Drive file listing include file contents?

A file listing returns file information. Download binary file contents with files.get using alt=media; export Google Workspace documents with files.export. Google Drive documentation

How does Longwave access my Google Drive account?

You sign in to Google Drive once and approve the permissions the functions need. Longwave stores the token encrypted and uses it only for calls you or your agents make. Disconnect it at any time in settings.

How do I use Google Drive in Claude Code?

Add the Longwave MCP server once with claude mcp add --transport http longwave https://api.longwave.run/v1/mcp/tasks, sign in, and ask for what you need. Claude finds the right Google Drive function and calls it.

Use Google Drive in Longwave

Ask any Longwave thread for the result, or add Longwave to Claude Code, Codex, Cursor or ChatGPT.

Add to Longwave