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 ConsoleGOOGLE_CLIENT_SECRET: OAuth 2.0 Client SecretGOOGLE_REFRESH_TOKEN: Refresh token obtained via OAuth consent flow withdrivescope (use Google OAuth Playground)
Server tool list (23)
Raw names from tools/list. Only developers need these.
| 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 with pagination support. |
| 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, Slides), use gd_export_file instead. |
| gd_create_file | Create 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_file | Update file metadata — rename, change description, star/unstar, move between folders, or trash/untrash. Use add_parents/remove_parents to move files. |
| gd_copy_file | Create a copy of a file. Optionally specify a new name, destination folder, or description for the copy. |
| gd_delete_file | Permanently 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_file | Export 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_folder | Create a new folder in Google Drive. Optionally specify a parent folder to create it as a subfolder. |
| gd_empty_trash | Permanently delete ALL files in the trash. This action is irreversible. All trashed files for the authenticated user will be permanently removed. |
| gd_list_permissions | List 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_file | Share 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_file | Remove 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_comments | List comments on a file. Returns comment text, author, timestamps, resolved status, and inline replies. |
| gd_create_comment | Add a comment to a file. The comment will be attributed to the authenticated user. |
| gd_delete_comment | Delete a comment from a file. Only the comment author or file owner can delete comments. |
| gd_list_replies | List replies to a specific comment on a file. |
| gd_create_reply | Reply to a comment on a file. Optionally resolve the comment thread with action="resolve". |
| gd_list_drives | List shared drives (formerly Team Drives) that the user has access to. Supports search query for filtering by name. |
| gd_create_drive | Create a new shared drive (requires Google Workspace account). The authenticated user becomes the organizer. |
| gd_delete_drive | Permanently delete a shared drive. The drive must be empty (no files) before it can be deleted. This action is irreversible. |
| gd_list_revisions | List revision history for a file. Shows who modified the file, when, file size at each revision, and checksums. |
| gd_about | Get information about the authenticated user and their Google Drive — storage quota, import/export formats, and capabilities. |