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
- Go to Resources > MCP Servers > Add Server (OWNER or ADMIN).
- Choose Google Workspace, then under Connection method pick Quick connect — sign in with your Google account.
- Give it a Name, pick the workspaces under Available in workspaces, and click Add Server.
- Click Connect on the saved server, sign in, and approve the consent screen.
- 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_attachmentandgmail_modify_labels. Sending email withgmail_sendworks. - Drive limited:
drive_list_filesanddrive_downloadonly see files created through FlowTrux (for example withdrive_uploadorsheets_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
- Go to Google Cloud Console.
- Create a new project (or use an existing one).
- Enable the Google Sheets API, Gmail API, Google Calendar API and Google Drive API.
2. Create OAuth Credentials
- Go to APIs & Services > Credentials.
- Click Create Credentials > OAuth client ID, application type Web application.
- Add this authorized redirect URI:
https://app.flowtrux.com/api/auth/google-workspace/callback - Copy the Client ID and Client Secret.
3. Add to FlowTrux
- Go to Resources > MCP Servers > Add Server.
- Choose Google Workspace (and Your own Google app (Client ID / Secret) if a connection method is offered).
- 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.
- Click Connect on the saved server.
- Sign in on Google's consent screen and approve access.
- 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
spreadsheetId | string | Yes | Spreadsheet ID (from URL) |
range | string | Yes | A1 notation range (e.g., Sheet1!A1:D10) |
sheets_write
Write data to a Google Sheets range (overwrites existing data)
| Parameter | Type | Required | Description |
|---|---|---|---|
spreadsheetId | string | Yes | Spreadsheet ID. |
range | string | Yes | A1 notation range. |
values | array | Yes | 2D 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
spreadsheetId | string | Yes | Spreadsheet ID. |
range | string | Yes | A1 notation range (e.g., Sheet1!A:D) |
values | array | Yes | 2D array of values to append. From a Wialon run_report table, pass its matrix, not its rows. |
sheets_create
Create a new Google Spreadsheet.
| Parameter | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Spreadsheet title. |
Gmail
gmail_send
Send an email via Gmail. Supports plain text, HTML (set isHtml: true) and file attachments (see the attachment items below).
| Parameter | Type | Required | Description |
|---|---|---|---|
to | string | Yes | Recipient email address. |
subject | string | Yes | Email subject. |
body | string | Yes | Email body (plain text or HTML) |
isHtml | boolean | No | Send body as HTML (default: false) |
cc | string | No | CC recipients (comma-separated) |
bcc | string | No | BCC recipients (comma-separated) |
attachments | array of object | No | File attachments. Each item takes exactly one source: s3_key or base64 content - see below. |
gmail_search
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.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Gmail search query (e.g., 'from:user@example.com subject:invoice newer_than:1d') |
maxResults | number | No | Maximum number of results. Default: 10. |
labelIds | array of string | No | Filter 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
messageId | string | Yes | Gmail message ID. |
gmail_get_attachment
Download one attachment of an email as base64-encoded content. Own Google app only.
| Parameter | Type | Required | Description |
|---|---|---|---|
messageId | string | Yes | Gmail message ID. |
attachmentId | string | Yes | Attachment ID (from gmail_read response) |
filename | string | No | Original 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
message_ids | array of string | Yes | Gmail message ids (from gmail_search / gmail_read). Up to 1000 per call. |
add_labels | array of string | No | Labels to add, by name or label id (e.g. ['processed']). Missing user labels are created. TRASH/SPAM are rejected. |
remove_labels | array of string | No | Labels to remove, by name or label id. Use ['UNREAD'] to mark as read. |
Attachment items for gmail_send take exactly one source:
| Field | Description |
|---|---|
s3_key | The 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. |
content | Base64-encoded file content, for bytes that are not in storage (for example something just downloaded). |
filename | File name shown to the recipient (e.g., offer.pdf). Required with content; taken from the key when omitted with s3_key. |
mimeType | MIME 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
calendarId | string | No | Calendar ID (default: primary) |
timeMin | string | No | Start time (ISO 8601, e.g., 2024-01-01T00:00:00Z) |
timeMax | string | No | End time (ISO 8601) |
maxResults | number | No | Maximum events to return. Default: 10. |
calendar_create_event
Create a new calendar event.
| Parameter | Type | Required | Description |
|---|---|---|---|
summary | string | Yes | Event title. |
start | string | Yes | Start time (ISO 8601) |
end | string | Yes | End time (ISO 8601) |
description | string | No | Event description. |
attendees | array of string | No | Attendee email addresses. |
calendarId | string | No | Calendar ID (default: primary) |
calendar_delete_event
Delete a calendar event.
| Parameter | Type | Required | Description |
|---|---|---|---|
eventId | string | Yes | Event ID. |
calendarId | string | No | Calendar ID (default: primary) |
Google Drive
With Quick connect, Drive tools only see files created through FlowTrux.
drive_list_files
List files in Google Drive.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | No | Drive search query (e.g., "name contains 'report'") |
pageSize | number | No | Maximum files to return. Default: 20. |
drive_upload
Upload a text file to Google Drive.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | File name. |
content | string | Yes | File content (text) |
mimeType | string | No | MIME type (default: text/plain) |
folderId | string | No | Parent 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
fileId | string | Yes | Drive file ID. |
Example Workflow
A weekly report written to a sheet:
- Trigger - Schedule (Mondays at 8:00).
- Action - HTTP request that fetches last week's analytics.
- Action - Transform node that shapes the result into rows.
- Action - MCP tool
google-workspace:sheets_appendwithrangeReport!A:Dandvalues{{steps.rows.output.rows}}.