Google Drive

v2.6.2
io.github.mcp-z/mcp-drive Checked 8 hours ago Published 10 days ago

Google Drive integration with file operations, folder navigation, search, and sharing

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

account-list

List all linked mcp-drive accounts with their aliases and active status.

account-me

Show current mcp-drive user identity. Returns email, alias (if set), and session expiry information.

account-remove

Remove mcp-drive account and delete stored tokens permanently. If removing the active account, the first remaining account becomes active. Requires email or alias parameter.

ParameterTypeDescription
accountId *stringEmail address or alias of account to remove

account-switch

Use mcp-drive account (smart mode). If email/alias provided and already linked, switches to it without triggering OAuth. If not linked or no email provided, triggers OAuth browser flow to add account. Returns account email, whether it was newly added, and total account count.

ParameterTypeDescription
aliasstringOptional alias for easy identification
emailstringEmail address to link (if already linked, switches without OAuth)

file-move Move Files

Move files/folders to destination folder. Returns oldParents for undo. Use "root" for My Drive root.

ParameterTypeDescription
destinationFolderId *stringDestination folder ID (use "root" for My Drive root)
fileIds *File or folder ID(s) to move. Single ID or array (max 100 for batch)
returnOldParentsbooleanInclude old parent IDs in response for manual undo (recommended: true)

file-move-to-trash Move Files to Trash

Move files to trash (recoverable for 30 days).

ParameterTypeDescription
ids *arrayFile IDs to soft delete (move to trash)

file-upload Upload File

Upload a file to Google Drive from a file:// or http(s):// URI. Content is streamed from the source (no temp files) in a single multipart request. Returns file ID for use in other operations.

ParameterTypeDescription
sourceUri *stringFile URI to upload (file://, http://, https://)
descriptionstringDescription to store in the file metadata
mimeTypestringMIME type, e.g. application/pdf (defaults to the Content-Type header or detection from the file extension)
namestringFile name in Drive, including extension (defaults to the source file name)
parentIdstringParent folder ID (omit to upload to My Drive root)

folder-contents List Folder Contents

List files and folders in a specific folder with field selection.

ParameterTypeDescription
folderId *stringFolder ID to list contents (use "root" for Drive root)
fieldsstringComma-separated fields to return. Omit for all fields. Available: id, name, mimeType, webViewLink, modifiedTime, parents, shared, starred, owners
pageSizeintegerNumber of items per page (default: 50, max: 1000). Accepts numbers or numeric strings.
pageTokenstringToken for retrieving the next page of results (drive format). Omit for first page.
shapestringResponse shape: objects (keyed) or arrays (columnar, matching fields order)

folder-create Create Folder

Create a new folder in Google Drive. Returns folder ID for use in other operations.

ParameterTypeDescription
name *stringName for the new folder
parentIdstringParent folder ID (omit to create in My Drive root)

folder-path Get Folder Path

Get full path from folder to root. Returns human-readable path and items with IDs.

ParameterTypeDescription
folderId *stringFolder ID to get path for (or "root")