productivity
Google Drive MCP, CLI, and Lua Integration for AI Agents
Google Drive integration docs for AI agents: MCP gateway setup, Google Drive CLI commands, Lua API reference, credentials, and function schemas.
6 functions 4 read 2 write Manual OAuth token auth
Google Drive for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Machine-Readable Metadata
- integration_slug
google-drive- route_slug
google-drive- package
google-drive- auth_strategy
oauth2_manual_tokenManual OAuth token- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. Google Drive CLIHeadless setup and direct function calls. Google Drive MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
Google Drive MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Google Drive.
Claude Code Google Drive MCP setup for Claude Code. Cursor Google Drive MCP setup for Cursor. Codex Google Drive MCP setup for Codex. OpenAI Agents Google Drive MCP setup for OpenAI Agents SDK. Claude Agent SDK Google Drive MCP setup for Claude Agent SDK. Vercel AI SDK Google Drive MCP setup for Vercel AI SDK. LangChain Google Drive MCP setup for LangChain. LangGraph Google Drive MCP setup for LangGraph. CrewAI Google Drive MCP setup for CrewAI. MCP clients Google Drive MCP setup for Generic MCP Clients.
Google Drive CLI Matrix
Use these pages for direct Google Drive CLI workflows in scripts, CI, cron, and agent wrappers.
CI Google Drive CLI for CI. Cron Jobs Google Drive CLI for cron jobs. Shell Scripts Google Drive CLI for shell scripts. Headless Automation Google Drive CLI for headless automation. Coding Agents Google Drive CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
google-drive.gdrive_list_files | Read read | 7 | List files and folders in Google Drive. Supports search queries (q), pagination, spaces (drive, appDataFolder, photos), and trashed filtering. |
google-drive.gdrive_get_file | Read read | 2 | Get metadata for a specific file or folder in Google Drive by its ID. Returns properties like name, mimeType, size, createdTime, modifiedTime, and parents. |
google-drive.gdrive_create_file | Write write | 4 | Create a new file in Google Drive. Creates the file metadata (name, mimeType, parent folder). For simple file creation without content upload, use uploadType "resumable" or "multipart" via the Google Drive API directly. |
google-drive.gdrive_create_folder | Write write | 2 | Create a new folder in Google Drive. Optionally specify a parent folder to nest it inside. |
google-drive.gdrive_list_changes | Read read | 3 | List changes to files and folders in Google Drive. Use pageToken from the initial startPageToken to begin tracking, then pass the returned next page token for subsequent requests. |
google-drive.gdrive_get_current_user | Read read | 1 | Get information about the authenticated Google Drive user, including display name, email address, and storage quota (usage, limit). |