Built by Metorial, the integration platform for agentic AI.

Learn More

google-drive

Google Drive

    Server Summary

    • Manage Google Drive

    • Search and organize files

    • Share files and folders

    • Upload and edit content

Google Drive MCP Server

A powerful Model Context Protocol (MCP) server that provides seamless integration with Google Drive. This server enables AI assistants and applications to interact with your Google Drive files and folders through a comprehensive set of tools for browsing, searching, organizing, uploading, and sharing content. Whether you need to manage documents, collaborate with team members, or automate file operations, this server provides the essential capabilities to work efficiently with Google Drive.

Overview

The Google Drive MCP Server bridges the gap between AI applications and Google Drive's cloud storage ecosystem. It exposes Google Drive's core functionality through a standardized interface, allowing AI assistants to help you manage your files, search for documents, organize folders, and handle sharing permissions—all through natural language interactions.

This server is ideal for users who want to leverage AI assistance for their Google Drive workflows, from simple tasks like finding files to complex operations like batch organizing documents or managing team permissions.

Features

File and Folder Management

Browse your Google Drive hierarchy, create new folders, and organize your content with ease. The server provides intuitive tools for navigating through your Drive structure, whether you're working at the root level or deep within nested folders.

Advanced Search Capabilities

Quickly locate files using powerful search queries. Search by file name, content, MIME type, or any combination of criteria supported by Google Drive's query language. Find exactly what you need without manually browsing through countless folders.

Upload and Content Management

Upload new files directly to Google Drive with support for various MIME types and encoding options. Place files in specific folders or at the root level, making it simple to add content to your Drive programmatically.

File Operations

Perform essential file operations including copying, moving, renaming, and deleting files. Update file metadata such as names and descriptions to keep your Drive organized and well-documented.

Sharing and Permissions

Manage sharing settings for your files and folders. Create shareable links, grant specific permissions to users or groups, and review existing permissions—all critical capabilities for collaboration.

Content Access

Retrieve file content and metadata through resource templates, enabling AI assistants to read and analyze your documents when needed.

Tools

list_files

List files and folders within a specific folder or at the root of your Google Drive.

Parameters:

  • folderId (optional): The ID of the folder to list files from. Omit to list files in the root folder
  • query (optional): Query string to filter files (e.g., "name contains 'report'")
  • pageSize (optional): Maximum number of files to return, between 1 and 1000 (default: 100)

search_files

Search for files across your entire Google Drive using flexible query strings.

Parameters:

  • query (required): Search query using Google Drive query syntax (e.g., "name contains 'report'" or "fullText contains 'budget'")
  • mimeType (optional): Filter results by MIME type (e.g., "application/pdf")
  • pageSize (optional): Maximum number of results to return, between 1 and 1000 (default: 100)

create_folder

Create a new folder in Google Drive at a specified location.

Parameters:

  • name (required): Name of the folder to create
  • parentFolderId (optional): Parent folder ID where the new folder should be created. Omit to create in the root folder

upload_file

Upload a new file to Google Drive with specified content and metadata.

Parameters:

  • name (required): Name of the file
  • content (required): File content as text or base64 encoded data
  • mimeType (optional): MIME type of the file (default: "text/plain")
  • parentFolderId (optional): Parent folder ID where the file should be uploaded. Omit to upload to root

delete_file

Permanently delete a file or folder from Google Drive.

Parameters:

  • fileId (required): ID of the file or folder to delete

move_file

Move a file or folder to a different location in your Drive hierarchy.

Parameters:

  • fileId (required): ID of the file or folder to move
  • newParentFolderId (required): ID of the destination folder
  • removeFromPreviousParents (optional): Whether to remove the file from all previous parent folders (default: true)

copy_file

Create a duplicate copy of an existing file.

Parameters:

  • fileId (required): ID of the file to copy
  • name (optional): Name for the copied file. If omitted, the copy will be named "Copy of [original name]"
  • parentFolderId (optional): Destination folder ID. Omit to copy to the same location as the original

update_file_metadata

Update metadata properties for a file or folder, such as its name or description.

Parameters:

  • fileId (required): ID of the file to update
  • name (optional): New name for the file
  • description (optional): New description for the file

share_file

Share a file or folder with specific users, groups, or create public shareable links.

Parameters:

  • fileId (required): ID of the file to share
  • type (required): Type of permission - "user", "anyone", "domain", or "group"
  • role (required): Permission level - "reader", "writer", or "commenter"
  • emailAddress (optional): Email address of the user or group (required when type is "user" or "group")

list_permissions

Retrieve all existing permissions and sharing settings for a file or folder.

Parameters:

  • fileId (required): ID of the file to query

Resource Templates

file-metadata

Access detailed metadata for a specific file or folder, including creation date, modification date, owner information, size, and other properties.

URI Format: gdrive://file/{fileId}

file-content

Retrieve the actual content of a file. Supports text files and can export Google Docs formats to readable text.

URI Format: gdrive://file/{fileId}/content

folder-metadata

Access metadata information for a specific folder, including its properties and hierarchy position.

URI Format: gdrive://folder/{folderId}

folder-children

List all files and folders contained within a specific folder, providing a complete view of the folder's contents.

URI Format: gdrive://folder/{folderId}/children

root

Access information about your Google Drive root folder and list all root-level files and folders.

URI Format: gdrive://root

Use Cases

This MCP server enables a wide range of Google Drive automation and assistance scenarios:

  • Document Discovery: Ask an AI assistant to find specific documents by name, content, or type
  • File Organization: Automatically organize files into folders based on criteria or patterns
  • Content Analysis: Have AI assistants read and analyze document contents to answer questions or generate summaries
  • Batch Operations: Perform bulk operations like renaming files, moving documents, or updating metadata
  • Collaboration Management: Simplify sharing workflows by letting AI help manage permissions and access
  • Drive Maintenance: Keep your Drive tidy by identifying and handling duplicate files, old documents, or unused folders

Getting Started

Once the Google Drive MCP Server is connected to your AI assistant or application, you can immediately start issuing commands in natural language. Ask your assistant to search for files, create folders, upload documents, or any other supported operation. The server handles the technical details of interacting with Google Drive's API, allowing you to focus on what you want to accomplish rather than how to do it.

The combination of tools and resource templates provides both action capabilities (through tools) and information access (through resources), giving AI assistants complete context about your Drive contents and the ability to take meaningful actions on your behalf.