You need a Google Workspace account enrolled in the Google Workspace Developer Preview Program and a Google Cloud project registered through that program. If you do not already have a project, ask your organization’s Google Cloud administrator for an existing project, its project number, and permission to enable services. Open the Google Workspace Developer Preview Program page, submit its enrollment form with your Google Workspace account and the Google Cloud project number, and wait for Google to verify the account, add you to the program Google Group, and register the project before continuing. In the project, you need permission to enable services, such as the Service Usage Admin role; a project creator already has the required permission. Sign in at console.cloud.google.com and select the registered project in the resource selector.
Enable the Gmail API
- Open APIs & Services > API Library.
- Confirm that the registered project is selected in the resource selector.
- In Search for APIs & Services, enter
Gmail API. - Select Gmail API.
- Click Enable.
Enable the Gmail MCP API
- Return to APIs & Services > API Library.
- In Search for APIs & Services, enter
Gmail MCP API. - Select Gmail MCP API.
- Click Enable.
If the service is unavailable, confirm that the selected project is the project registered through the Google Workspace Developer Preview Program.
Configure the OAuth consent screen
- Open Google Auth Platform > Branding.
- If Google Auth Platform not configured yet appears, click Get Started.
- Under App Information, enter
Gmail MCP Serverin App name. - In User support email, choose your email address or an appropriate Google group.
- Click Next.
- Under Audience, choose Internal. If Internal is unavailable, choose External.
- Click Next.
- Under Contact Information, enter an Email address for project notifications.
- Click Next.
- Under Finish, review the Google API Services User Data Policy.
- If you accept the policy, select I agree to the Google API Services: User Data Policy.
- Click Continue.
- Click Create. This returns you to the configured Google Auth Platform.
- If you selected External, open Audience.
- Under Test users, click Add users.
- Enter the email addresses that will authorize the first connection.
- Click Save.
- Open Data Access.
- Click Add or Remove Scopes.
- Under Manually add scopes, paste these scopes:
https://www.googleapis.com/auth/gmail.readonlyhttps://www.googleapis.com/auth/gmail.compose- Click Add to Table.
- Click Update to return to Data Access.
- Click Save.
If Google Auth Platform is already configured, retain your organization’s approved branding and audience. Use Audience to add test users when applicable, then use Data Access to add the required scopes.
Create the OAuth client
- From Google Auth Platform, open Clients.
- Click Create Client.
- Set Application type to Web application.
- Enter an organization-approved Name, such as
Speakeasy Gmail MCP. - Under Authorized redirect URIs, click + Add URI.
- Enter:
https://app.getgram.ai/mcp/remote_login_callbackBefore you click Create, prepare to save the secret in an approved secret manager. Google shows and permits downloading the full client secret only at creation.
- Click Create.
- Copy the Client ID for the Speakeasy setup.
- Copy the Client Secret for the Speakeasy setup, and store it securely before closing the creation result.
If you closed the creation result without saving the full secret:
- Reopen Google Auth Platform > Clients.
- Confirm that the same project is selected.
- Under OAuth 2.0 Client IDs, click the client you created.
- Under Client secrets, find the missed secret.
- Click Disable.
- Click the delete button next to the disabled secret.
Prepare the approved secret manager before the next action. The new secret is visible only when it is created.
- Click Add Secret.
- Immediately copy the new secret to the approved secret manager.
- Use the new value in Speakeasy.
Add the server in Speakeasy
- In the Speakeasy AI Control Plane sidebar, under Connect, select Sources.
- Click Add Source.
- Choose Custom remote server.
- On the Add a custom remote MCP server page, paste this value into Remote MCP server URL:
https://gmailmcp.googleapis.com/mcp/v1- Click Add server. This creates the hosted MCP server and opens its Overview page.
Connect your credentials
- From the server’s Overview, open Settings.
- Under Authentication, click Configure Manually.
- In the Attach Remote Identity Provider sheet, set Client Type to Manual.
- Locate the displayed Redirect URI and its copy button.
- Paste the Client ID from Create the OAuth client into Client ID.
- Paste the Client Secret from Create the OAuth client into Client Secret (optional). The Gmail setup requires this value despite the generic optional label.
- Click Attach Identity Provider.
- Confirm that the sheet’s Redirect URI matches the
https://app.getgram.ai/mcp/remote_login_callbackvalue registered under Authorized redirect URIs.
This guide covers setup only. For anything beyond it — billing, tool behavior, limits — see Gmail’s MCP documentation.