Skip to main content
The gmail MCP adapter wraps the Gmail REST API v1. Use it in workflow mcp_call steps to send notifications, search inboxes, and reply to threads.

Prerequisites

  • A Google account with Gmail enabled
  • project_contributor access in your workspace
  • Gmail API enabled in your Google Cloud project (handled automatically when connecting through the Console)

Connect in AgentRuntime

1

Connect Google

On Connections, use the Google account card and complete OAuth. Enable the Gmail service for your account. See Google Workspace setup and Connections.
2

Add gmail MCP instance

Go to MCP, click Add instance for gmail. Open Instance config, wire your Google connection, and set the profile active.
3

Add a workflow step

In Workflow Studio, add an mcp_call step targeting your gmail instance. Pick a tool and configure tool_args.

What you can build

  • Run notifications — On workflow success or failure, send_email to operators with run ID and a Command Center link.
  • Inbox triagesearch_emails for is:unread label:support → LLM draft → human_taskreply_to_email.
  • Lead alert — Webhook from a form → send_email to sales with submission details and CRM link.
  • Digest reports — Postgres or Sheets data → LLM summary → send_email on a schedule.

Tools

Example

Send a notification after a workflow completes:

Configuration

The instance inherits OAuth tokens from your Google connection. Optional config profile fields:

Gmail search syntax

search_emails accepts standard Gmail operators:
  • from:sender@example.com
  • is:unread
  • subject:invoice
  • after:2026/01/01
Combine operators: from:alerts@example.com is:unread newer_than:7d

Troubleshooting