Google Drive
v2.6.2Google 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.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Email 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.
| Parameter | Type | Description |
|---|---|---|
alias | string | Optional alias for easy identification |
email | string | Email 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.
| Parameter | Type | Description |
|---|---|---|
destinationFolderId * | string | Destination folder ID (use "root" for My Drive root) |
fileIds * | File or folder ID(s) to move. Single ID or array (max 100 for batch) | |
returnOldParents | boolean | Include 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).
| Parameter | Type | Description |
|---|---|---|
ids * | array | File 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.
| Parameter | Type | Description |
|---|---|---|
sourceUri * | string | File URI to upload (file://, http://, https://) |
description | string | Description to store in the file metadata |
mimeType | string | MIME type, e.g. application/pdf (defaults to the Content-Type header or detection from the file extension) |
name | string | File name in Drive, including extension (defaults to the source file name) |
parentId | string | Parent folder ID (omit to upload to My Drive root) |
files-search Search Drive Files
Search Google Drive files with flexible field selection for optimal performance.
| Parameter | Type | Description |
|---|---|---|
query * | Structured Drive query object or JSON string. Use rawDriveQuery for raw Drive syntax. | |
fields | string | Comma-separated fields to return. Omit for all fields. Available: id, name, mimeType, webViewLink, modifiedTime, parents, shared, starred, owners |
pageSize | integer | Number of items per page (default: 50, max: 1000). Accepts numbers or numeric strings. |
pageToken | string | Token for retrieving the next page of results (drive format). Omit for first page. |
shape | string | Response shape: objects (keyed) or arrays (columnar, matching fields order) |
folder-contents List Folder Contents
List files and folders in a specific folder with field selection.
| Parameter | Type | Description |
|---|---|---|
folderId * | string | Folder ID to list contents (use "root" for Drive root) |
fields | string | Comma-separated fields to return. Omit for all fields. Available: id, name, mimeType, webViewLink, modifiedTime, parents, shared, starred, owners |
pageSize | integer | Number of items per page (default: 50, max: 1000). Accepts numbers or numeric strings. |
pageToken | string | Token for retrieving the next page of results (drive format). Omit for first page. |
shape | string | Response 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name for the new folder |
parentId | string | Parent 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.
| Parameter | Type | Description |
|---|---|---|
folderId * | string | Folder ID to get path for (or "root") |
folder-search Search Folders
Search Google Drive folders with flexible field selection and optional path resolution.
| Parameter | Type | Description |
|---|---|---|
fields | string | Comma-separated fields to return. Omit for all fields. Available: id, name, mimeType, webViewLink, modifiedTime, parents, shared, starred, owners, path |
pageSize | integer | Number of items per page (default: 50, max: 1000). Accepts numbers or numeric strings. |
pageToken | string | Token for retrieving the next page of results (drive format). Omit for first page. |
query | Structured Drive query object or JSON string. Use rawDriveQuery for raw Drive syntax. | |
resolvePaths | boolean | Resolve full folder paths like /Work/Projects/2024 (requires additional API calls per result) |
shape | string | Response shape: objects (keyed) or arrays (columnar, matching fields order) |