Skip to content

Integrations

Google Workspace

Connect Gmail, Google Drive and Google Calendar through Google's remote MCP servers and choose the permissions for each service.

  • 4 min read
  • 4 sections

Google Workspace ​

Gmail, Google Drive and Google Calendar use Google's remote MCP servers. Choose read-only or read and write access for each service. Google requires separate account consent for each connection. The task's mode, Project access, and the connector's Agent access choice still apply.

Prepare your project ​

In your Google Cloud project, enable the API and MCP service for the product you intend to connect. Your project administrator controls which accounts can consent to the app.

ServiceAPIMCP serviceRead permission
Gmailgmail.googleapis.comgmailmcp.googleapis.comhttps://www.googleapis.com/auth/gmail.readonly
Google Drivedrive.googleapis.comdrivemcp.googleapis.comhttps://www.googleapis.com/auth/drive.readonly
Google Calendarcalendar-json.googleapis.comcalendarmcp.googleapis.comhttps://www.googleapis.com/auth/calendar.calendarlist.readonly, https://www.googleapis.com/auth/calendar.events.readonly

Create an OAuth client with application type Desktop app and select Use this client for an AI-powered agent when creating it. Copy its client ID. Octant uses a public native client, a browser sign-in, PKCE S256, and a loopback reply address on this computer. It does not need a client secret or another application's hosted callback. See Google's Desktop client instructions and native OAuth flow.

Configure the consent screen for your intended audience. External apps in Testing must list the intended test users. Google Workspace administrators can deny an application or individual scopes. Gmail and Drive reading use restricted scopes; public applications may require OAuth verification, and restricted data sent to servers may require a security assessment. The use of a third-party model provider is relevant to that review. See Gmail scope requirements and Drive scope requirements.

Open the service's detail in Library or Connectors and save your client ID in Client setup. Octant suggests a saved Google Desktop client when all eligible registrations on this host agree. Save the client for each service and choose how to sign in.

  • Gmail can search and read mail. Read mail, create drafts and send adds gmail.compose.
  • Drive can search and read eligible files. Read Drive files and edit files authorized for this app adds drive.file for eligible files. Google decides which files the app can change.
  • Calendar can list calendars and read events. Read calendars and edit events uses calendar.events for event access and keeps the read-only calendar list permission.

Existing read-only connections keep their scope. To add writes, sign out and sign in with the write option. Use a read-only connection in Plan. Google can require its own confirmation for a specific action, even with standing Allow in Octant. Review the choices in the confirmation before continuing. See Google Workspace tool confirmations.

Select the intended Google account in the browser. Declining consent or an administrator's denial leaves the task and its draft intact. A connection is usable only where the task, Project, provider, mode, and component activation already permit the tools. A listed tool is not permission to run it.

Persistence and recovery ​

Octant asks for offline access with Google's access_type=offline parameter; the OIDC offline_access scope is not a substitute. Access and refresh tokens remain in the existing host credential broker, not in the journal, exported task, package, or model context. A supported refresh grant renews an expired access token without hourly sign-in.

New consent is needed when a refresh token is missing or no longer valid. Ordinary reuse does not request consent again. Google's External Testing projects normally issue refresh tokens that expire after seven days. A password change involving Gmail, revocation, administrator policy, and token limits can also end a grant. See Google's refresh-token expiration rules.

If sign-in fails, check API enablement, the agentic-client setting, test-user membership, and administrator restrictions. If the local callback port is busy, close the conflicting listener or choose another port in setup. Return to the existing task after connecting. A provider that cannot update its active tool set needs an explicit continuation or restart that retains the draft.

Verify a connection ​

Use test data with the connected account. Read a known message, find an eligible Drive file, and list a private Calendar event. With write access, create a draft or send to your own test inbox, change an app-authorized Drive file, and update the private event. Restart Octant and repeat an allowed read.

Endpoint discovery, token exchange, and a tool list are setup evidence. They do not prove that one of these workflows succeeded. Google's Workspace MCP setup guide documents the endpoints and representative tool workflows.

Octant documentation · local-first by design