How to integrate Google Docs MCP with Hermes

Google Docs logo
Hermes logo
divider

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 Docs 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.

Also integrate Google Docs with

What is Composio Connect?

Composio Connect is a consumer offering that lets anyone plug 1,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 Docs 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 Docs

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

4. Done. You're all set with a new Google Docs 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

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

The Google Docs 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 Docs account. It provides structured and secure access to your documents, so your agent can create, copy, edit, and organize Google Docs on your behalf.

  • Automated document creation and duplication: Let your agent generate new Google Docs from scratch or copy existing documents to quickly use templates or preserve originals.
  • Rich content editing and formatting: Direct your agent to add headers, footers, footnotes, bullet lists, and more—making it easy to update and format documents programmatically.
  • Targeted content manipulation: Have your agent delete specific content ranges, paragraphs, or sections within any document to keep your files up to date.
  • Named range management: Empower your agent to create and manage named ranges for easier referencing, collaboration, and advanced document workflows.
  • Markdown-based document generation: Allow the agent to create new Google Docs directly from markdown content, streamlining content migration from other tools or sources.

Supported Tools & Triggers

Tools
Triggers
Copy Google DocumentTool to create a copy of an existing google document.
Create a documentCreates a new google docs document using the provided title as filename and inserts the initial text at the beginning if non-empty, returning the document's id and metadata (excluding body content).
Create Document MarkdownCreates a new google docs document, optionally initializing it with a title and content provided as markdown text.
Create FooterTool to create a new footer in a google document.
Create FootnoteTool to create a new footnote in a google document.
Create HeaderTool to create a new header in a google document.
Create Named RangeTool to create a new named range in a google document.
Create Paragraph BulletsTool to add bullets to paragraphs within a specified range in a google document.
Delete Content Range in DocumentTool to delete a range of content from a google document.
Delete FooterTool to delete a footer from a google document.
Delete HeaderDeletes the header from the specified section or the default header if no section is specified.
Delete Named RangeTool to delete a named range from a google document.
Delete Paragraph BulletsTool to remove bullets from paragraphs within a specified range in a google document.
Delete TableTool to delete an entire table from a google document.
Delete Table ColumnTool to delete a column from a table in a google document.
Delete Table RowTool to delete a row from a table in a google document.
Get Charts from SpreadsheetTool to retrieve a list of all charts from a specified google sheets spreadsheet.
Get document by idRetrieves an existing google document by its id; will error if the document is not found.
Insert Inline ImageTool to insert an image from a given uri at a specified location in a google document as an inline image.
Insert Page BreakTool to insert a page break into a google document.
Insert Table in Google DocTool to insert a table into a google document.
Insert Table ColumnTool to insert a new column into a table in a google document.
Insert Text into DocumentTool to insert a string of text at a specified location within a google document.
List Charts from SpreadsheetTool to retrieve a list of charts with their ids and metadata from a google sheets spreadsheet.
Replace All Text in DocumentTool to replace all occurrences of a specified text string with another text string throughout a google document.
Replace Image in DocumentTool to replace a specific image in a document with a new image from a uri.
Search DocumentsSearch for google documents using various filters including name, content, date ranges, and more.
Unmerge Table CellsTool to unmerge previously merged cells in a table.
Update Document MarkdownReplaces the entire content of an existing google docs document with new markdown text; requires edit permissions for the document.
Update Document StyleTool to update the overall document style, such as page size, margins, and default text direction.
Update existing documentApplies programmatic edits, such as text insertion, deletion, or formatting, to a specified google doc using the `batchupdate` api method.
Update Table Row StyleTool to update the style of a table row in a google document.

Way Forward

With Google Docs 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.

How to build Google Docs MCP Agent with another framework

FAQ

What are the differences in Tool Router MCP and Google Docs MCP?

With a standalone Google Docs MCP server, the agents and LLMs can only access a fixed set of Google Docs tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Google Docs and many other apps based on the task at hand, all through a single MCP endpoint.

Can I use Tool Router MCP with Hermes?

Yes, you can. Hermes fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Google Docs tools.

Can I manage the permissions and scopes for Google Docs while using Tool Router?

Yes, absolutely. You can configure which Google Docs scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

How safe is my data with Composio Tool Router?

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Google Docs data and credentials are handled as safely as possible.

Used by agents from

Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.