FlowTruxFlowTrux/Docs

Google Workspace MCP Server

Use Google Sheets, Gmail, Calendar and Drive from workflows

The Google Workspace MCP server provides 15 tools for Google Sheets, Gmail, Google Calendar and Google Drive.

There are two ways to connect, and they do not expose the same tools:

  • Quick connect (when your deployment offers it): sign in with your Google account - no Google Cloud project needed. Sheets, Calendar, sending Gmail, and Drive files that FlowTrux creates.
  • Your own Google app: bring your own Google Cloud project and OAuth credentials. All 15 tools, including reading Gmail and full Drive access.

Option A - Quick connect

  1. Go to Resources > MCP Servers > Add Server (OWNER or ADMIN).
  2. Choose Google Workspace, then under Connection method pick Quick connect — sign in with your Google account.
  3. Give it a Name, pick the workspaces under Available in workspaces, and click Add Server.
  4. Click Connect on the saved server, sign in, and approve the consent screen.
  5. The server now shows Connected with the authorized email address.

Quick connect requests a lighter set of Google permissions:

  • Not available: gmail_search, gmail_read, gmail_get_attachment and gmail_modify_labels. Sending email with gmail_send works.
  • Drive limited: drive_list_files and drive_download only see files created through FlowTrux (for example with drive_upload or sheets_create), not your whole Drive.

Sheets and Calendar work in full. For reading Gmail or full Drive access, use Option B.

If the Connection method choice is not shown, your deployment offers only Option B.

Option B - Your own Google app

1. Create a Google Cloud Project

  1. Go to Google Cloud Console.
  2. Create a new project (or use an existing one).
  3. Enable the Google Sheets API, Gmail API, Google Calendar API and Google Drive API.

2. Create OAuth Credentials

  1. Go to APIs & Services > Credentials.
  2. Click Create Credentials > OAuth client ID, application type Web application.
  3. Add this authorized redirect URI:
    https://app.flowtrux.com/api/auth/google-workspace/callback
    
  4. Copy the Client ID and Client Secret.

3. Add to FlowTrux

  1. Go to Resources > MCP Servers > Add Server.
  2. Choose Google Workspace (and Your own Google app (Client ID / Secret) if a connection method is offered).
  3. Enter the Client ID and Client Secret, pick the workspaces, and click Add Server.

4. Connect Your Google Account

Saving the credentials is only the first step. Until you connect an account, every tool fails with unauthorized.

  1. Click Connect on the saved server.
  2. Sign in on Google's consent screen and approve access.
  3. You return to FlowTrux and the server shows Connected with the authorized email address.

Reconnecting

If the connection expires or you want to use a different Google account, click Reconnect on the server in Resources > MCP Servers.

Tools

Google Sheets

range is A1 notation: Sheet1!A1:B10 for a block, Sheet1!A:A for a whole column. Values are 2D arrays, row by row.

sheets_read

Read data from a Google Sheets range.

ParameterTypeRequiredDescription
spreadsheetIdstringYesSpreadsheet ID (from URL)
rangestringYesA1 notation range (e.g., Sheet1!A1:D10)

sheets_write

Write data to a Google Sheets range (overwrites existing data)

ParameterTypeRequiredDescription
spreadsheetIdstringYesSpreadsheet ID.
rangestringYesA1 notation range.
valuesarrayYes2D array of values (rows × columns). From a Wialon run_report table, pass its matrix, not its rows.

sheets_append

Append rows to the end of a Google Sheets range.

ParameterTypeRequiredDescription
spreadsheetIdstringYesSpreadsheet ID.
rangestringYesA1 notation range (e.g., Sheet1!A:D)
valuesarrayYes2D array of values to append. From a Wialon run_report table, pass its matrix, not its rows.

sheets_create

Create a new Google Spreadsheet.

ParameterTypeRequiredDescription
titlestringYesSpreadsheet title.

Gmail

gmail_send

Send an email via Gmail. Supports plain text, HTML (set isHtml: true) and file attachments (see the attachment items below).

ParameterTypeRequiredDescription
tostringYesRecipient email address.
subjectstringYesEmail subject.
bodystringYesEmail body (plain text or HTML)
isHtmlbooleanNoSend body as HTML (default: false)
ccstringNoCC recipients (comma-separated)
bccstringNoBCC recipients (comma-separated)
attachmentsarray of objectNoFile attachments. Each item takes exactly one source: s3_key or base64 content - see below.

Search emails using Gmail search syntax. Own Google app only - not available with Quick connect. For category filtering use labelIds: CATEGORY_UPDATES, CATEGORY_PROMOTIONS, CATEGORY_SOCIAL, CATEGORY_FORUMS, CATEGORY_PERSONAL.

ParameterTypeRequiredDescription
querystringYesGmail search query (e.g., 'from:user@example.com subject:invoice newer_than:1d')
maxResultsnumberNoMaximum number of results. Default: 10.
labelIdsarray of stringNoFilter by label IDs (e.g., ['CATEGORY_UPDATES', 'UNREAD', 'INBOX'])

gmail_read

Read a specific email by message ID. Returns the body text and attachment metadata (attachmentId, filename, mimeType, size) - download attachments with gmail_get_attachment. Inline images are left out. Own Google app only.

ParameterTypeRequiredDescription
messageIdstringYesGmail message ID.

gmail_get_attachment

Download one attachment of an email as base64-encoded content. Own Google app only.

ParameterTypeRequiredDescription
messageIdstringYesGmail message ID.
attachmentIdstringYesAttachment ID (from gmail_read response)
filenamestringNoOriginal filename (for reference in output)

gmail_modify_labels

Change labels on Gmail messages - the way to mark mail as processed. Mark as read by removing UNREAD; add or remove your own labels by name (a missing label is created). Labels only: it cannot delete or trash messages (TRASH/SPAM are rejected). Own Google app only.

ParameterTypeRequiredDescription
message_idsarray of stringYesGmail message ids (from gmail_search / gmail_read). Up to 1000 per call.
add_labelsarray of stringNoLabels to add, by name or label id (e.g. ['processed']). Missing user labels are created. TRASH/SPAM are rejected.
remove_labelsarray of stringNoLabels to remove, by name or label id. Use ['UNREAD'] to mark as read.

Attachment items for gmail_send take exactly one source:

FieldDescription
s3_keyThe key of a file stored in FlowTrux, returned by the Files or PDF Generator tools. The recommended way to attach a generated file - no need to read it first.
contentBase64-encoded file content, for bytes that are not in storage (for example something just downloaded).
filenameFile name shown to the recipient (e.g., offer.pdf). Required with content; taken from the key when omitted with s3_key.
mimeTypeMIME type (e.g., application/pdf). Required with content; optional with s3_key.
{
  "to": "candidate@example.com",
  "subject": "Your offer letter",
  "body": "Please find your offer letter attached.",
  "attachments": [
    { "s3_key": "{{steps.make_pdf.output.response.key}}", "filename": "offer-letter.pdf" }
  ]
}

Processing incoming mail once. For a recurring mail watcher: gmail_search with is:unread → process each message → gmail_modify_labels with remove_labels: ["UNREAD"] (or add_labels: ["processed"] - a missing label is created). The tool changes labels only; it cannot delete or trash mail.

Google Calendar

start and end are RFC 3339 / ISO 8601 times, e.g. 2026-04-27T09:00:00Z or with a time zone offset. To compute a time, use a Transform node and reference its output.

calendar_list_events

List upcoming calendar events.

ParameterTypeRequiredDescription
calendarIdstringNoCalendar ID (default: primary)
timeMinstringNoStart time (ISO 8601, e.g., 2024-01-01T00:00:00Z)
timeMaxstringNoEnd time (ISO 8601)
maxResultsnumberNoMaximum events to return. Default: 10.

calendar_create_event

Create a new calendar event.

ParameterTypeRequiredDescription
summarystringYesEvent title.
startstringYesStart time (ISO 8601)
endstringYesEnd time (ISO 8601)
descriptionstringNoEvent description.
attendeesarray of stringNoAttendee email addresses.
calendarIdstringNoCalendar ID (default: primary)

calendar_delete_event

Delete a calendar event.

ParameterTypeRequiredDescription
eventIdstringYesEvent ID.
calendarIdstringNoCalendar ID (default: primary)

Google Drive

With Quick connect, Drive tools only see files created through FlowTrux.

drive_list_files

List files in Google Drive.

ParameterTypeRequiredDescription
querystringNoDrive search query (e.g., "name contains 'report'")
pageSizenumberNoMaximum files to return. Default: 20.

drive_upload

Upload a text file to Google Drive.

ParameterTypeRequiredDescription
namestringYesFile name.
contentstringYesFile content (text)
mimeTypestringNoMIME type (default: text/plain)
folderIdstringNoParent folder ID (optional)

drive_download

Download a file's content from Google Drive (up to 10 MB). Text-like files come back as content, binary ones (PDF, images, archives) as contentBase64.

ParameterTypeRequiredDescription
fileIdstringYesDrive file ID.

Example Workflow

A weekly report written to a sheet:

  1. Trigger - Schedule (Mondays at 8:00).
  2. Action - HTTP request that fetches last week's analytics.
  3. Action - Transform node that shapes the result into rows.
  4. Action - MCP tool google-workspace:sheets_append with range Report!A:D and values {{steps.rows.output.rows}}.