Google Drive

MCP server for Google Drive API v3 : search, read, create, share, and manage files and folders.

Community: Submitted by a user or imported; check the owner before granting accessOnlineAPI key requiredGlobalFreeCan modify data

What it can do

  • Gd Search Files: Search and list files in Google Drive. Use the q parameter for powerful search queries: name contains, mimeType, parent folder, trashed status, date filters. Returns file metadata wit
  • Gd Get File: Get detailed metadata for a specific file or folder by ID. Returns all available metadata fields including size, owners, permissions, timestamps, and links.
  • Gd Read File: Read/download file content. Returns text content for text-based files (txt, csv, json, html, xml, code). For binary files, returns file info. For Google Workspace files (Docs, Sheets, Sl

What data it sees

Do you need an account

An API key from the service settings is required

MCP server for Google Drive API v3 : search, read, create, share, and manage files and folders.

Features

  • Search files with powerful query syntax (name, type, folder, date, full-text)
  • Read text file content and export Google Workspace files (Docs, Sheets, Slides)
  • Create, copy, rename, move, star, trash, and permanently delete files
  • Share files with users, groups, domains, or make public with role-based access
  • Add comments and threaded replies on files, resolve comment threads
  • Manage shared drives (create, list, delete)
  • View file revision history and storage quota

23 Tools

  • Files (10): search, get metadata, read content, create, update, copy, delete, export, create folder, empty trash
  • Permissions (3): list permissions, share file, unshare file
  • Comments (3): list, create, delete comments
  • Replies (2): list, create replies (with resolve/reopen actions)
  • Shared Drives (3): list, create, delete shared drives
  • Revisions (1): list file revision history
  • About (1): user info, storage quota, import/export formats

Configuration

  • GOOGLE_CLIENT_ID : OAuth 2.0 Client ID from Google Cloud Console
  • GOOGLE_CLIENT_SECRET : OAuth 2.0 Client Secret
  • GOOGLE_REFRESH_TOKEN : Refresh token obtained via OAuth consent flow with drive scope (use Google OAuth Playground)
Server tool list (23)

Raw names from tools/list. Only developers need these.

gd_search_filesSearch and list files in Google Drive. Use the q parameter for powerful search queries: name contains, mimeType, parent folder, trashed status, date filters. Returns file metadata with pagination support.
gd_get_fileGet detailed metadata for a specific file or folder by ID. Returns all available metadata fields including size, owners, permissions, timestamps, and links.
gd_read_fileRead/download file content. Returns text content for text-based files (txt, csv, json, html, xml, code). For binary files, returns file info. For Google Workspace files (Docs, Sheets, Slides), use gd_export_file instead.
gd_create_fileCreate a new file or Google Workspace document (metadata only, no content upload). To create a folder, use gd_create_folder. For Google Docs, set mimeType to "application/vnd.google-apps.document".
gd_update_fileUpdate file metadata — rename, change description, star/unstar, move between folders, or trash/untrash. Use add_parents/remove_parents to move files.
gd_copy_fileCreate a copy of a file. Optionally specify a new name, destination folder, or description for the copy.
gd_delete_filePermanently delete a file or folder. This action is irreversible — the file will NOT go to trash. Use gd_update_file with trashed=true to move to trash instead.
gd_export_fileExport a Google Workspace file (Docs, Sheets, Slides, Drawings) to a standard format. Use this for Google-native files; use gd_read_file for regular files. Supported exports: Docs→text/plain,text/html,application/pdf; Sheets→text/csv,application/pdf; Slides→application/pdf,text/plain.
gd_create_folderCreate a new folder in Google Drive. Optionally specify a parent folder to create it as a subfolder.
gd_empty_trashPermanently delete ALL files in the trash. This action is irreversible. All trashed files for the authenticated user will be permanently removed.
gd_list_permissionsList all permissions (sharing settings) for a file or folder. Shows who has access, their role (owner, writer, commenter, reader), and sharing type (user, group, domain, anyone).
gd_share_fileShare a file or folder by creating a permission. Share with a specific user (email), domain, or make public (anyone). Set role to control access level.
gd_unshare_fileRemove a permission from a file or folder, revoking access for a user, group, or domain. Use gd_list_permissions to find the permission_id first.
gd_list_commentsList comments on a file. Returns comment text, author, timestamps, resolved status, and inline replies.
gd_create_commentAdd a comment to a file. The comment will be attributed to the authenticated user.
gd_delete_commentDelete a comment from a file. Only the comment author or file owner can delete comments.
gd_list_repliesList replies to a specific comment on a file.
gd_create_replyReply to a comment on a file. Optionally resolve the comment thread with action="resolve".
gd_list_drivesList shared drives (formerly Team Drives) that the user has access to. Supports search query for filtering by name.
gd_create_driveCreate a new shared drive (requires Google Workspace account). The authenticated user becomes the organizer.
gd_delete_drivePermanently delete a shared drive. The drive must be empty (no files) before it can be deleted. This action is irreversible.
gd_list_revisionsList revision history for a file. Shows who modified the file, when, file size at each revision, and checksums.
gd_aboutGet information about the authenticated user and their Google Drive — storage quota, import/export formats, and capabilities.