Google Drive

Connect AI Agents to
Google Drive

Automate workflows and connect AI agents to Google Drive. Metorial is built for developers. Handling OAuth, compliance, observability, and more.

Google Drive on Metorial

The Google Drive integration lets you search, read, create, and manage files and folders in your Drive directly through AI interactions. Use it to organize documents, retrieve file contents, share files, and automate common Drive tasks without switching to your browser.

Deploy on Metorial

Combine Google Drive with other tools

Metorial has 600+ integrations available. Here are some related ones you might find interesting.

Exa

Exa

The Exa integration lets you search the web using neural search capabilities and retrieve high-quality, AI-ready content directly within your MCP-enabled applications.

Slack

Slack

The Slack integration lets you read messages, send messages to channels and users, and manage your workspace directly from your AI assistant. Use it to stay connected with your team, search conversation history, and automate routine Slack tasks without leaving your workflow.

Google Calendar

Google Calendar

The Google Calendar integration lets you view, create, and manage calendar events directly from your workflow, enabling seamless scheduling and time management without switching contexts.

Google Drive

Google Drive

The Google Drive integration lets you search, read, create, and manage files and folders in your Drive directly through AI interactions. Use it to organize documents, retrieve file contents, share files, and automate common Drive tasks without switching to your browser.

Microsoft 356

Microsoft 356

The Microsoft 365 integration lets you access and manage your emails, calendar events, documents, and collaborate across Word, Excel, PowerPoint, and Teams directly from your workspace. Use it to read and send messages, schedule meetings, edit files in OneDrive and SharePoint, and streamline your productivity workflows.

Neon

Neon

The Neon integration lets you connect to your Neon Postgres databases to query data, inspect schemas, and manage database operations directly from your AI assistant.

Supabase

Supabase

The Supabase integration lets you query and manage your database, authentication, and storage directly from your AI assistant, enabling natural language database operations and real-time data access.

Linear

Linear

The Linear integration lets you create, update, and search issues directly from your workspace, enabling seamless project management and task tracking without leaving your development environment.

Gmail

Gmail

The Gmail integration lets you read, send, and manage emails directly from your workspace, enabling you to automate email workflows and quickly access your inbox without switching applications.

Connect anything. Anywhere.

Supported tools and capabilities

Metorial helps you connect AI agents to Google Drive with various tools and resources. Tools allow you to interact with perform specific actions, while resources provide read-only access to data and information.

Help & Documentation

Find guides and articles to help you get started with Google Drive on Metorial.

More about Google Drive

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.

Ready to build with Metorial?

Let's take your AI-powered applications to the next level, together.

About Metorial

Metorial provides developers with instant access to 600+ MCP servers for building AI agents that can interact with real-world tools and services. Built on MCP, Metorial simplifies agent tool integration by offering pre-configured connections to popular platforms like Google Drive, Slack, GitHub, Notion, and hundreds of other APIs. Our platform supports all major AI agent frameworks—including LangChain, AutoGen, CrewAI, and LangGraph—enabling developers to add tool calling capabilities to their agents in just a few lines of code. By eliminating the need for custom integration code, Metorial helps AI developers move from prototype to production faster while maintaining security and reliability. Whether you're building autonomous research agents, customer service bots, or workflow automation tools, Metorial's MCP server library provides the integrations you need to connect your agents to the real world.

Star us on GitHub