Google Drive

v1.3.0
io.github.domdomegg/google-drive-mcp Checked 14 hours ago Published 5 months ago

Allow AI systems to list, search, upload, download, and manage files and folders in Google Drive.

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

files_list List files

List files in Google Drive. Use query parameter to filter results using Drive search syntax.

ParameterTypeDescription
fieldsstringFields to include in response. Defaults to common fields.
includeItemsFromAllDrivesbooleanInclude files from shared drives
orderBystringSort order (e.g., "modifiedTime desc", "name")
pageSizenumberMaximum number of files to return (1-1000)
pageTokenstringToken for pagination
qstringSearch query using Drive search syntax (e.g., "name contains 'report'" or "mimeType='application/pdf'")
spacesstringSpaces to search
supportsAllDrivesbooleanSupport shared drives

file_get Get file metadata

Get metadata for a specific file by ID. Use file_download to get the file content.

ParameterTypeDescription
fileId *stringThe ID of the file to retrieve
fieldsstringFields to include in response. Defaults to all common fields.
supportsAllDrivesbooleanSupport shared drives

file_download Download file content

Download the content of a file. Text files are returned as plain text; binary files (images, PDFs, etc.) are returned base64-encoded with isBase64: true. For Google Docs/Sheets/Slides, use exportMimeType to specify the format (e.g., "text/plain" for Docs, "text/csv" for Sheets).

ParameterTypeDescription
fileId *stringThe ID of the file to download
exportMimeTypestringFor Google Docs/Sheets/Slides, the MIME type to export as (e.g., "text/plain", "application/pdf", "text/csv")

file_upload Upload file

Upload a new file to Google Drive.

ParameterTypeDescription
content *stringThe content of the file. For binary files (images, PDFs, etc.), provide base64-encoded content.
mimeType *stringThe MIME type of the file (e.g., "text/plain", "image/jpeg", "application/pdf")
name *stringThe name of the file
descriptionstringDescription of the file
isBase64booleanSet to true if content is base64-encoded (required for binary files like images)
parentsarrayParent folder IDs. If not specified, file is created in root.

file_update Update file

Update a file's content or metadata. Provide content to update file content, or just metadata fields to update metadata only.

ParameterTypeDescription
fileId *stringThe ID of the file to update
contentstringNew content for the file
descriptionstringNew description for the file
mimeTypestringMIME type of the content (required if content is provided)
namestringNew name for the file
starredbooleanStar or unstar the file
supportsAllDrivesbooleanSupport shared drives
trashedbooleanMove to trash (true) or restore from trash (false). Trashed files can be restored within 30 days.

file_copy Copy file

Create a copy of a file.

ParameterTypeDescription
fileId *stringThe ID of the file to copy
namestringName for the copy. If not specified, uses "Copy of [original name]"
parentsarrayParent folder IDs for the copy
supportsAllDrivesbooleanSupport shared drives

file_move Move file

Move a file to a different folder by changing its parents.

ParameterTypeDescription
addParents *arrayFolder IDs to add as parents (where to move the file)
fileId *stringThe ID of the file to move
removeParentsarrayFolder IDs to remove as parents (current locations)
supportsAllDrivesbooleanSupport shared drives

file_delete Delete file permanently

Permanently delete a file. This cannot be undone. In almost all cases, you should use file_update with trashed:true instead, which moves the file to trash where it can be restored within 30 days.

ParameterTypeDescription
fileId *stringThe ID of the file to permanently delete
supportsAllDrivesbooleanSupport shared drives

folder_create Create folder

Create a new folder in Google Drive.

ParameterTypeDescription
name *stringThe name of the folder
descriptionstringDescription of the folder
parentsarrayParent folder IDs. If not specified, folder is created in root.

comments_list List comments

List comments on a file. Works with Google Docs, Sheets, Slides, and other Drive files.

ParameterTypeDescription
fileId *stringThe ID of the file
includeDeletedbooleanInclude deleted comments
pageSizenumberMaximum number of comments to return (1-100)
pageTokenstringToken for pagination
startModifiedTimestringOnly return comments modified after this time (RFC 3339)

comment_get Get comment

Get a specific comment and its replies.

ParameterTypeDescription
commentId *stringThe ID of the comment
fileId *stringThe ID of the file
includeDeletedbooleanInclude deleted replies

comment_create Create comment

Add a comment to a file. For images: supports anchored comments using the anchor parameter with format [null,[null,[x,y,width,height]],null,null] where coordinates are fractions 0-1. For Google Docs/Sheets/Slides: only unanchored comments work (appear in sidebar). Anchored comments cannot be created via API due to proprietary formats. See: https://issuetracker.google.com/issues/36763384. However, you can use comment_reply to reply to existing anchored comments.

ParameterTypeDescription
content *stringThe text content of the comment
fileId *stringThe ID of the file to comment on
anchorstringJSON anchor for positioned comments on images. Format: [null,[null,[x,y,width,height]],null,null] where x,y,width,height are fractions 0-1. Example: [null,[null,[0.1,0.1,0.3,0.3]],null,null] for top-l…

comment_reply Reply to comment

Add a reply to an existing comment.

ParameterTypeDescription
commentId *stringThe ID of the comment to reply to
content *stringThe text content of the reply
fileId *stringThe ID of the file

comment_resolve Resolve or reopen comment

Resolve or reopen a comment by posting a reply with the specified action.

ParameterTypeDescription
commentId *stringThe ID of the comment to resolve or reopen
fileId *stringThe ID of the file
actionstringAction to perform: "resolve" to mark as resolved, "reopen" to unresolve
contentstringOptional message to include with the action

replies_list List replies

List replies to a comment.

ParameterTypeDescription
commentId *stringThe ID of the comment
fileId *stringThe ID of the file
includeDeletedbooleanInclude deleted replies
pageSizenumberMaximum number of replies to return (1-100)
pageTokenstringToken for pagination

reply_get Get reply

Get a specific reply to a comment.

ParameterTypeDescription
commentId *stringThe ID of the comment
fileId *stringThe ID of the file
replyId *stringThe ID of the reply
includeDeletedbooleanReturn the reply even if deleted

reply_update Update reply

Update the content of an existing reply.

ParameterTypeDescription
commentId *stringThe ID of the comment
content *stringThe updated text content of the reply
fileId *stringThe ID of the file
replyId *stringThe ID of the reply to update

reply_delete Delete reply

Delete a reply from a comment.

ParameterTypeDescription
commentId *stringThe ID of the comment
fileId *stringThe ID of the file
replyId *stringThe ID of the reply to delete

permissions_list List permissions

List all permissions on a file or shared drive. Shows who has access and their role.

ParameterTypeDescription
fileId *stringThe ID of the file or shared drive
pageSizenumberMaximum number of permissions to return (1-100)
pageTokenstringToken for pagination
supportsAllDrivesbooleanSupport shared drives
useDomainAdminAccessbooleanIssue the request as a domain administrator

permission_get Get permission

Get a specific permission by ID on a file or shared drive.

ParameterTypeDescription
fileId *stringThe ID of the file or shared drive
permissionId *stringThe ID of the permission
supportsAllDrivesbooleanSupport shared drives
useDomainAdminAccessbooleanIssue the request as a domain administrator

permission_create Create permission

Share a file or shared drive by creating a new permission. Grants access to a user, group, domain, or anyone.

ParameterTypeDescription
fileId *stringThe ID of the file or shared drive
role *stringThe role granted by this permission
type *stringThe type of grantee: user, group, domain, or anyone
domainstringDomain (required for type domain, e.g. "example.com")
emailAddressstringEmail address of user or group (required for type user/group)
emailMessagestringCustom message to include in the notification email
moveToNewOwnersRootbooleanMove the file to the new owner's My Drive root folder (only for transferOwnership)
sendNotificationEmailbooleanSend a notification email when sharing
supportsAllDrivesbooleanSupport shared drives
transferOwnershipbooleanWhether to transfer ownership to the specified user (role must be owner)
useDomainAdminAccessbooleanIssue the request as a domain administrator

permission_update Update permission

Update an existing permission on a file or shared drive. Can change role or expiration.

ParameterTypeDescription
fileId *stringThe ID of the file or shared drive
permissionId *stringThe ID of the permission to update
role *stringThe new role for the permission
expirationTimestringExpiration time in RFC 3339 format. Setting to null removes expiration.
removeExpirationbooleanRemove the expiration time
supportsAllDrivesbooleanSupport shared drives
transferOwnershipbooleanWhether to transfer ownership (role must be owner)
useDomainAdminAccessbooleanIssue the request as a domain administrator

permission_delete Delete permission

Remove a permission from a file or shared drive, revoking access for that user/group/domain.

ParameterTypeDescription
fileId *stringThe ID of the file or shared drive
permissionId *stringThe ID of the permission to delete
supportsAllDrivesbooleanSupport shared drives
useDomainAdminAccessbooleanIssue the request as a domain administrator