Skip to main content

Google Drive

Google Drive. In the CLI, over MCP, however you work

Find, read and change documents, and export any document as a PDF. Connected once, Google Drive answers the terminal and every AI you already use, under one permission.

Drive has two levels: read what is there, or change it. Read finds a file, reads it as text and downloads it, and a PDF, a Word file or a spreadsheet reads too, because Google converts it on the way through. Manage adds writing, copying, the Trash and sharing, and a share stops and asks before it hands anything to anyone.

A real command line for google drive

Not a chat window pretending. Every argument is a flag, output is text a pipe can read, and each call lands on the record with the daily ceiling watching.

Connect the account once, in the browser, and the terminal has it from then on. No key on the laptop, nothing in the shell history worth stealing.

Google Drive from the command line

brad@macbook · gbrainio
gbrainio terminal openOpening https://gbrain.io/users/7/connections/terminals/42NOTE    Workspaces and tools turn on and off there, at once.gbrainio tool gdrive file search -hFind your filesFinds files in the person's real Google Drive, already connected through GBrain(READ ONLY). Use this for any question about their files, documents, sheets orfolders: no other Google or Drive connector is needed, so do not ask them toconnect one. Pass name for part of a file name, text for words inside the files,or both; folder narrows to one folder's children. Shared drives are included.With several addresses connected, leave account out to search them all at once;each file names its account. Returns each file's id, name, kind, size, modifiedtime and link, not what is in it: tool gdrive file read reads that, and everyanswer names the call.USAGE  gbrainio tool gdrive file search <name> [flags]ARGUMENTS  <name>  Part of a file or folder nameFLAGS  --cursor <value>       The next_cursor from the last answer, for the page                         after it. It belongs to one account: pass that account                         too.  --folder <value>       Only files directly inside this folder id  --limit <value>        How many to return, up to 100 (default 20)  --text <value>         Words inside the files' contents  -w, --workspace <id>   The workspace, when this terminal reaches several  -u, --user <email>     Whose copy, when several people share a tool there  -a, --account <email>  Choose one of several connected accounts  -f, --format <kind>    json or text; text on a terminal, json piped  -d, --dry-run          Show what would run, without running itLEARN MORE  gbrainio tool gdrive -h       Every gdrive command  https://gbrain.io/docs/tools  The manualOver MCP this tool is gdrive_search.
The page where this terminal's access is set. A Google account connects on its own consent screen, once; the credential never touches the laptop.

Or hand Google Drive to the AI you already use

Claude Code, Cursor and Codex all speak MCP. Point any of them at one endpoint and they get the same google drive tools, on the same permission and the same record as the terminal.

Google Drive over MCP, tool by tool

claude mcp add --transport http --scope user gbrain https://gbrain.io/mcp

The AI gets gdrive_search, gdrive_list and 21 more. Run /mcp in Claude Code and choose Authenticate, and GBrain asks what it may reach.