Google Drive MCP server

Connect Google Drive to Claude, ChatGPT, Cursor, Claude Code, Codex, Gemini, GitHub Copilot and any other MCP client, for your whole team. Metorial adds security, governance, and tracing, and gives everyone one Magic MCP URL to connect.

What you can do with the Google Drive MCP server

Ask your agent in plain language. Each of these maps to a real tool on the server.

  • Use the update permission tool in Google Drive
  • Use the export file tool in Google Drive
  • Use the delete comment tool in Google Drive
  • Use the reply to comment tool in Google Drive
  • Use the upload file tool in Google Drive
  • Use the list permissions tool in Google Drive

How teams use Google Drive with agents

Drive is where finished work ends up: specs, decks, contracts and exports. Connecting it lets an agent find the right file, read it, and file new output in the right shared drive with the right sharing settings.

Find the source document

Search by name, owner, type or modified date to locate the current version of a spec or contract.

File agent output

Upload reports or exports into the team folder instead of leaving them in a chat transcript.

Sharing audits

List who has access to a folder and remove permissions that should have expired.

Review loops

Read comments on a document, reply to open threads, and summarise what is still unresolved.

Tools to start with

  • Search Files: Accepts Drive query syntax for MIME type, owner and dates.
  • List Permissions: Shows exactly who can open a file before you share it.
  • Export File: Turns Docs, Sheets and Slides into PDF or Office formats.

Sign-in and permissions

Drive uses OAuth on each person's account, so results follow that person's own sharing. Google treats full Drive access as a restricted scope, which is why Workspace admins may need to approve the app before employees can connect it.

Sign-in options on Metorial: OAuth.

Supported Tools

update_permission

Update Permission

Change the role of an existing permission on a file or folder. Use **List Permissions** to find the permission ID.

export_file

Export File

Export a Google Workspace file (Docs, Sheets, Slides, Drawings) to a standard format such as PDF, DOCX, XLSX, CSV, or plain text. Only works with Google Workspace native formats — for regular files use the **Get Download URL** tool.

delete_comment

Delete Comment

Delete a comment from a file. This removes the comment permanently.

reply_to_comment

Reply to Comment

Add a reply to an existing comment thread on a file. Can also resolve or reopen the comment thread by setting the action field.

upload_file

Upload File

Upload a file with content to Google Drive. Provide file content as plain text or base64-encoded string. The file will be created with the given name, metadata MIME type, and optional parent folder.

list_permissions

List Permissions

List all permissions (sharing settings) for a file or folder. Shows who has access and their role (owner, writer, commenter, reader).

create_comment

Create Comment

Add a comment to a file. Optionally quote specific content from the file that the comment relates to.

copy_file

Copy File

Create a copy of an existing file in Google Drive. Optionally provide a new name and destination folder for the copy.

share_file

Share File

Share a file or folder with a user, group, domain, or make it accessible to anyone with a link. Assigns a specific role (reader, commenter, writer, or owner) to the grantee.

create_shared_drive

Create Shared Drive

Create a new shared drive for team collaboration. Requires Google Workspace admin privileges.

list_shared_drives

List Shared Drives

List all shared drives the authenticated user has access to. Optionally filter by name query.

create_file

Create File or Folder

Create a new file or folder in Google Drive. To create a folder, set `mimeType` to `application/vnd.google-apps.folder`. To create a Google Doc, Sheet, or Slides, use the appropriate Google Workspace MIME type. Specify parent folder IDs to place the file in a specific location.

list_comments

List Comments

List all comments on a file, including threaded replies. Shows comment content, author, timestamps, and resolution status.

remove_permission

Remove Permission

Remove a permission (revoke access) from a file or folder. Use **List Permissions** to find the permission ID.

list_revisions

List Revisions

List the revision history of a file. Shows all saved versions with timestamps, who modified them, and file sizes.

download_file

Get Download URL

Get a downloadable **non–Google Workspace** file from Drive, along with its browser download URL. For Docs, Sheets, or Slides, use **Export File** instead.

get_file

Get File

Retrieve detailed metadata for a specific file or folder by its ID. Returns comprehensive information including name, MIME type, size, ownership, timestamps, sharing status, and links.

update_file

Update File

Update a file or folder's metadata in Google Drive. Can rename, change description, star/unstar, trash/restore, or move between folders. To move a file, specify both `addParentIds` and `removeParentIds`.

search_files

Search Files

Search for files and folders in Google Drive using queries. Supports filtering by name, MIME type, parent folder, ownership, modification date, shared status, and trashed state. Use the `query` field with Google Drive query syntax (e.g. `name contains 'report'`, `mimeType = 'application/pdf'`, `'folderId' in parents`). Results can be ordered and paginated.

delete_file

Delete File

Permanently delete a file or folder from Google Drive. This action is irreversible. To move a file to trash instead (recoverable), use the **Update File** tool with `trashed: true`.

delete_shared_drive

Delete Shared Drive

Delete a shared drive. The shared drive must be empty before it can be deleted.

update_shared_drive

Update Shared Drive

Update a shared drive's name or restrictions.

update_comment

Update Comment or Reply

Update the text of an existing Google Drive comment. Provide replyId to update a reply in that comment thread instead.

get_about

Get Drive Account Information

Get information about the authenticated Google Drive user and the user's storage quota.

list_changes

List Changes

Get a fresh Google Drive changes page token or list file and shared-drive changes after a previously returned token.

get_drive_app

Get Drive App

Get details about one Google Drive app by ID, including the file types it opens, whether it is installed and authorized, and its open and create URL templates.

list_drive_labels

List Drive Labels

List the Google Drive label definitions (taxonomies) the user can see, including each label's fields and selection choices. Use the returned field query keys in a Drive search query to find files by label.

list_drive_apps

List Drive Apps

List the Google Drive apps installed for the authenticated user, such as editors and viewers that can open or create files. Optionally filter to apps that handle given file extensions or MIME types, and see which apps the user chose as defaults.

get_drive_label

Get Drive Label

Get one Google Drive label definition by ID or resource name, including its fields, selection choices, lifecycle state, and what the user can do with it.

Connect Google Drive to your AI client

Every client uses the same Magic MCP URL, and so does any other MCP client. Add it once and sign in with SSO.

  1. Enable Google Drive in Metorial. In your Metorial portal, enable the Google Drive MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
  2. Add a custom connector. Open Customize, then Connectors. Select Add, then Custom, then Web.
  3. Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>) and continue.
  4. Sign in. Select Add and sign in to load Google Drive tools.

Run Google Drive through the Metorial gateway

One governed layer for every app your agents reach, not a separate connector per tool.

  • Give Google Drive and every other app to your whole team through one MCP gateway, behind your SSO.
  • Scope which teams and agents can use Google Drive tools with role-based access control, and trace every call.
  • Prefer to run it yourself? Metorial is open source and self-hostable.

More integrations teams use with Google Drive

Notion

Create, read, update, and archive pages and databases in a Notion workspace. Manage blocks (paragraphs, lists, headings, embeds, etc.) within pages. Query databases with filters and sorts across rich property types including text, numbers, dates, selects, relations, and formulas. Search across pages and databases by title. Add and read comments on pages and blocks. Upload files to pages. Manage workspace users and retrieve user profiles.

Google Sheets

Create, read, and update spreadsheets and their cell data. Read and write values to individual cells, ranges, or multiple ranges using A1 notation or named ranges. Apply cell formatting including text styles, backgrounds, borders, number formats, and conditional formatting. Manage sheets (tabs) within a spreadsheet—add, delete, copy, rename, and reorder them. Create and manage embedded charts, pivot tables, filter views, data validation rules, protected ranges, named ranges, and merged cells. Perform batch operations to apply multiple updates atomically.

GitHub

Manage repositories, issues, and pull requests. Create and configure branches, star repositories, review code, and merge changes. Automate CI/CD workflows with GitHub Actions, manage workflow runs, secrets, and artifacts. Track issues with labels, milestones, and assignees. Search across code, repositories, issues, and users. Manage organizations, teams, and memberships. Create and manage projects, gists, packages, deployments, and environments. Access security alerts including code scanning, secret scanning, and Dependabot alerts. Read and write file contents in repositories. Manage webhooks, notifications, and codespaces.

Slack

Slack: connect with bot OAuth or user OAuth to work with messages, conversations, search, files, Canvases, Lists, profiles, reactions, reminders, and workspace productivity settings.

Salesforce

Manage CRM data including Accounts, Contacts, Leads, Opportunities, Cases, and custom objects. Create, read, update, and delete records. Query data using SOQL and search across objects using SOSL. Perform bulk data operations for large-scale imports, exports, and migrations. Execute composite requests to batch multiple operations in a single API call. Access analytics, reports, and dashboards. Manage files and attachments associated with records. Interact with Chatter feeds, posts, and groups for social collaboration. Manage org metadata including custom objects, fields, layouts, and workflows. Query data using GraphQL for precise data retrieval across related objects.

Sharepoint

Manage SharePoint sites, document libraries, lists, and files. Create, read, update, and delete lists and list items with custom columns. Resolve site users to numeric Person/Group LookupId values. Upload, download, move, copy, and version files in document libraries. Search across sites, files, folders, lists, and list items using Microsoft Search. Manage permissions at site, list, and item levels with granular access control. Define and manage content types and site columns. Retrieve site properties and search for sites across Microsoft 365.

Technical notes for Google Drive

Upload, download, create, copy, move, rename, trash, and permanently delete files and folders in Google Drive. Search for files using complex queries filtering by name, MIME type, owner, modification date, labels, and other metadata. Share files and folders with specific users, groups, or domains with role-based permissions (owner, writer, commenter, reader). Manage shared drives and their members. Export Google Workspace files (Docs, Sheets, Slides) to standard formats like PDF, DOCX, and XLSX. Track file revision history and restore earlier versions. Create, read, update, and delete threaded comments and replies on files. Read label definitions and search files by label. Browse the Drive apps installed for your account. Store app-specific data in a hidden per-user folder.

Frequently asked questions

Common questions about connecting Google Drive to AI agents with Metorial.

  1. How many tools does the Google Drive MCP server have?
    The Google Drive MCP server exposes 29 tools, including Update Permission, Export File, Delete Comment. Each one is governed and traced through Metorial.
  2. Yes. Google Drive has 2 triggers you can use to start workflows from Google Drive events.
  3. Any MCP client, including VS Code, Windsurf, Zed, OpenCode and Grok. Each one reaches the Google Drive MCP server through the same Metorial URL.
  4. Use role-based access control to decide which teams, users, and agents can use Google Drive and which of its tools they can call.
  5. Yes. Metorial is open source, so you can run the Google Drive MCP server yourself or use the hosted gateway.

Connect Google Drive to production AI agents

See how Metorial gives your team governed access to Google Drive, with tracing and security controls built in.