KosmoKrator

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_token Manual OAuth token
cli_setup_supported
true
cli_runtime_supported
true
mcp_gateway_supported
true
lua_supported
true
supports_multi_account
true

Quick Links

Google Drive MCP Client Matrix

Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Google Drive.

Google Drive CLI Matrix

Use these pages for direct Google Drive CLI workflows in scripts, CI, cron, and agent wrappers.

Function Catalog

FunctionTypeParametersDescription
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).