How to integrate Google Drive MCP with Hermes

Connect Hermes to Google Drive MCP. Create a new folder named 'invoices', share last uploaded file with your team, and more using natural language, with authentication handled for you.

Google Drive logoGoogle Drive
Oauth2

Google Drive is a cloud storage platform for uploading, sharing, and collaborating on files. It's perfect for keeping your documents accessible and organized across devices.

92 Tools7 Triggers

Introduction

Hermes is a 24/7 autonomous agent that lives on your computer or server — it remembers what it learns and evolves as your usage grows.

This guide explains the easiest and most robust way to connect your Google Drive account to Hermes. You can do this through either Composio Connect CLI or Composio Connect MCP. For personal use we recommend the CLI, but you won't go wrong with MCP either.

For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.

Also integrate Google Drive with

What is Composio Connect?

Composio Connect is a consumer offering that lets anyone plug 2,000+ applications directly into their agent harness — including Hermes. It can:

  • Search and load tools from relevant toolkits on-demand, reducing context usage.
  • Chain multiple tools to accomplish complex workflows via a remote workbench, without excessive back-and-forth with the LLM.
  • Manage app authentication end-to-end with zero manual overhead.

Integrating Google Drive with Hermes

Using Composio Connect CLI

1. Install the Composio CLI

Run the install script directly, or paste https://composio.dev/hermes into your Hermes chat box to have it installed for you.

bash
curl -fsSL https://composio.dev/install | bash
Hermes authenticating with Composio

2. Authenticate

Once the CLI is installed, ask Hermes to authenticate with Composio.

3. Connect to Google Drive

Ask your agent to connect to Google Drive, or simply request any Google Drive-related task. Hermes will prompt you to authenticate and authorize access.

4. Done. You're all set with a new Google Drive connection.


Using Composio Connect MCP

1. Get your MCP URL and API Key

Go to dashboard.composio.dev and copy your Connect MCP URL and API key.

Copy MCP URL and API key from Composio dashboard

2. Open the Hermes config file

bash
nano ~/.hermes/config.yaml

3. Add the Composio Connect MCP server

bash
mcp_servers:
  composio:
    url: "https://connect.composio.dev/mcp"
    headers:
      x-consumer-api-key: "YOUR_COMPOSIO_API_KEY"
    connect_timeout: 60
    timeout: 180

Save with Ctrl + O, Enter, then exit with Ctrl + X.

4. Restart your Hermes agent

Once restarted, ask your agent to connect to Google Drive or request any Google Drive-related task. It will prompt you to authenticate and authorize access.

5. Done!

What is the Google Drive MCP server, and what's possible with it?

The Google Drive MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Google Drive account. It provides structured and secure access to your files, folders, comments, permissions, and shared drives, so your agent can search, create, download, share, and organize content on your behalf.

  • File and folder management: Have your agent find files, create files and folders, inspect file details, add shortcuts, and download stored content.
  • Workspace file exports and spreadsheet reads: Let the agent export Google Workspace files to supported formats or read multiple ranges from a Google Spreadsheet.
  • Sharing and permission control: Direct your agent to view, add, or remove access permissions for files and shared drives.
  • Comments and collaboration: Instruct your agent to list and create file comments, reply to existing comments, or remove comments and replies.
  • Shared drives and file history: Have your agent list, create, inspect, hide, or delete shared drives, and review or download file revisions.

Way Forward

With Google Drive connected, Hermes can now act on your behalf whenever it detects a relevant task or you ask it to.

From here, you can extend Hermes further:

  • Connect more apps: Calendar, Slack, Notion, Linear, and hundreds of others are available through the same Composio Connect setup. Each new integration compounds what Hermes can do for you.
  • Build workflows across tools: Once multiple apps are connected, Hermes can chain actions together — turn an email into a calendar invite, a Slack message into a Linear ticket, or a meeting note into a follow-up draft.
  • Let it learn your patterns: The more you use Hermes, the better it gets at anticipating how you'd handle recurring tasks. Give it feedback on drafts and decisions, and it will adapt.

If you run into trouble or want to share what you've built, join the community or check out the Docs for deeper configuration options.

TOOLS & TRIGGERS

Supported Tools and Triggers

Every Google Drive action and event your agent gets out of the box.

Insert File Parent (v2)

Tool to add a parent folder for a file using Google Drive API v2.

Insert Property (v2 API)

Tool to add a property to a file, or update it if it already exists (v2 API).

Batch Get Spreadsheet Values

Read multiple explicit ranges from one Google Spreadsheet in one request.

Batch Update Spreadsheet Values

Write values to multiple Google Sheets ranges in one batch request.

Clear Spreadsheet Values

Permanently clear values from one range while preserving formatting, notes, and validation.

Copy file with advanced options

Creates a copy of a file and applies any requested updates with patch semantics.

Create Comment

Tool to create a comment on a file in Google Drive.

Create Shared Drive

Creates a Google shared drive for collaboration or storage.

Create File or Folder

Creates a new file or folder in Google Drive.

Create a File from Text

Creates a Google Drive file from text, with support for Google Workspace formats and an optional parent folder.

Create a folder

Creates a Google Drive folder, optionally inside an existing parent specified by ID or exact name.

Create Permission

Tool to create a permission for a file or shared drive.

Create Permissions Batch

Creates multiple permissions for files or shared drives in a single batch request.

Create Reply

Create a plain-text reply to a comment on a Google Drive file, optionally resolving or reopening the parent comment.

Create Shortcut to File/Folder

Tool to create a shortcut to a file or folder in Google Drive.

Delete Child (v2)

Tool to remove a child from a folder using Google Drive API v2.

Delete Comment

Permanently deletes a comment thread (and all its replies) from a Google Drive file — this action is irreversible.

Delete Shared Drive

Tool to permanently delete a shared drive.

Delete Parent (v2)

Tool to remove a parent from a file using Google Drive API v2.

Delete Permission

Deletes a specified permission from a file or shared drive by permission ID; deleting other permissions does not remove an existing public-access permission.

Delete Property (v2 API)

Delete a custom property from a Google Drive file using API v2.

Delete Reply

Tool to delete a specific reply by reply ID.

Delete Revision

Tool to permanently delete a file revision.

Download a file from Google Drive

Downloads a Drive file's content and returns it in `downloaded_file_content`.

Download file via operation

Starts a long-running operation to download a Drive file, including Google Vids files, or export supported Google Workspace documents.

Download File Revision

Download the stored bytes of one blob-file revision.

Edit File

Replaces the entire content of an existing Google Drive binary file with UTF-8 text while retaining its file ID.

Empty Trash

Tool to permanently and irreversibly delete ALL trashed files in the user's Google Drive or a specified shared drive.

Export Google Workspace file

Exports a Google Workspace document to the requested MIME type and returns exported file content.

Find file

The comprehensive Google Drive search tool that handles all file and folder discovery needs.

Find folder

Finds one page of Google Drive folders by name and optional parent.

Generate File IDs

Generates a set of file IDs which can be provided in create or copy requests.

Get about

Tool to retrieve information about the user, the user's Drive, and system capabilities.

Get App

Tool to get information about a specific Drive app by ID.

Get Changes Start Page Token

Tool to get the starting pageToken for listing future changes in Google Drive.

Get Child Reference (v2)

Tool to get a specific child reference for a folder using Drive API v2.

Get Comment

Tool to get a comment by ID.

Get Document

Retrieve a native Google Docs document's structured content and metadata by ID.

Get Shared Drive

Tool to get a shared drive by ID.

Get File Metadata

Gets a Drive file's metadata by ID, optionally returning only the metadata selected by `fields`.

Get Property (v2)

Tool to get a property by its key using Google Drive API v2.

Get Google Form

Retrieve a Google Form's definition, questions, settings, and publishing state by ID.

Get Parent Reference (v2)

Tool to get a specific parent reference for a file using Drive API v2.

Get Permission

Gets a permission by ID.

Get Permission ID for Email

Tool to get the permission ID for an email address using the Drive API v2.

Get Google Slides Presentation

Retrieves a Google Slides presentation by ID, including its page structures.

Get Presentation Page Thumbnail

Generate one short-lived page thumbnail URL using an expensive Slides quota read.

Get Reply

Tool to get a specific reply to a comment on a file.

Get Revision

Tool to get a specific revision's metadata (name, modifiedTime, keepForever, etc.) by revision ID.

Get Spreadsheet

Retrieve a Google Spreadsheet's structure, metadata, and selected grid data.

Get Spreadsheet Values

Read values from one range in a Google Spreadsheet.

Delete folder or file

Tool to delete a file or folder in Google Drive.

Hide Shared Drive

Tool to hide a shared drive from the default view.

Insert Child Into Folder (v2)

Tool to insert a file into a folder using Drive API v2.

List Access Proposals

Tool to list pending access proposals on a file.

List Approvals

Lists a page of approvals associated with a Google Drive file, with pagination for browsing subsequent pages.

List Changes

Lists a page of changes for a user or shared drive; without a page token, it obtains a current start token and lists subsequent changes rather than earlier activity.

List Folder Children (v2)

Lists a page of child references for a folder using Google Drive API v2.

List Comments

Lists comments on a Google Drive file, with pagination, an option to include deleted comments, and a minimum modification-time filter.

List File Labels

Lists labels applied to a Google Drive file, including label IDs and applied field IDs.

List Properties (v2 API)

Tool to list a file's properties in Google Drive API v2.

List Google Form Responses

Return one page of submissions for a Google Form.

List Label Definitions

Lists available Google Drive labels, returning each label's ID and display name without requiring a file ID.

List Permissions

Lists a page of permissions for a file or shared drive.

List Replies to Comment

List a page of replies to a specific comment on a Google Drive file.

List File Revisions

Tool to list a file's revision metadata (not content) in Google Drive.

List Shared Drives

Tool to list the user's shared drives.

Modify File Labels

Modifies the set of labels applied to a file.

Move File

Moves a file to another Google Drive folder.

Patch Permission

Tool to update a permission using patch semantics.

Patch Property (v2 API)

Tool to update a property on a file using PATCH semantics (v2 API).

Read Spreadsheet Values

Read values from one or more ranges in a Google spreadsheet.

Resumable Upload

Upload a file to Google Drive using a resumable session, creating a new file or updating an existing file by ID.

Stop Watch Channel

Tool to stop watching resources through a specified channel.

Trash File

Tool to move a file or folder to trash (soft delete).

Unhide Shared Drive

Tool to unhide a shared drive.

Untrash File

Restore a file from Google Drive trash.

Update Comment

Tool to update an existing comment on a Google Drive file.

Update Shared Drive

Tool to update the metadata for a shared drive.

Update File Metadata (PATCH v2)

Tool to update file metadata using the Drive API v2 PATCH method.

Update Property (v2 API)

Tool to update a property on a file using Google Drive API v2.

Update File (Metadata)

Updates file metadata.

Update File Revision Metadata

Updates ONLY the metadata properties of a specific file revision (keepForever, published, publishAuto, publishedOutsideDomain).

Update Permission

Tool to update a permission with patch semantics.

Update Reply

Tool to update a reply to a comment on a Google Drive file.

Update Spreadsheet Values

Write values to one exact Google Sheets range.

Upload File

Upload a new file to Google Drive, optionally placing it in a specified folder.

Upload File from URL to Drive

Tool to fetch a file from a provided URL server-side and upload it into Google Drive.

Upload/Update File Content

Tool to update file content in Google Drive by uploading new binary content.

Watch Drive Changes

Subscribe to Google Drive changes for a user or shared drive and receive notifications at a webhook URL.

Watch File for Changes

Tool to subscribe to push notifications for changes to a specific file.

Write Spreadsheet Values

Replace values in one range of a Google spreadsheet.

FAQ

Frequently asked questions

Start with Google Drive.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Google Drive tool your agent needs.Free to start.

Start building