Google Drive
Connect Google's hosted Drive MCP server to read and create files under each user's existing Drive permissions.
The Drive MCP server is available only through the Google Workspace Developer Preview Program, so the Google Cloud project must be registered in it. Use a Google Cloud project where you can enable services, configure the Google Auth platform, create credentials, and grant project roles. You need Service Usage Admin or Owner to enable the APIs and appropriate IAM administration access to grant MCP Tool User. Every connecting user needs a Google Account with access to the intended Drive files.
Sign in at console.cloud.google.com and select the project registered in the Developer Preview Program. It owns the APIs and credentials. If your organization restricts high-risk Drive scopes, arrange access to a Service Settings administrator and obtain an approved app-access setting from the application or cloud security owner.
Join the Google Workspace Developer Preview Program
- Open developers.google.com/workspace/preview.
- Review the Developer Preview Program Terms with the application or security owner.
- Click Apply to join the Developer Preview Program.
- In the application form, enter the requested Google Workspace account and Google Cloud project information.
- Agree to the terms only with organizational approval.
- Submit the form with the visible or equivalent submission control.
- Wait for Google’s project-registration confirmation at the submitted email address. Google says this should complete within a couple of days.
Use the registered project for every Google Cloud step that follows.
Enable the Google Drive API
- Open console.cloud.google.com/flows/enableapi?apiid=drive.googleapis.com.
- Confirm the intended project if prompted.
- Click Enable. If the API is already enabled, continue to the next section.
Enable the Google Drive MCP API
- Open console.cloud.google.com/flows/enableapi?apiid=drivemcp.googleapis.com.
- Confirm the intended project if prompted.
- Click Enable. If the API is already enabled, continue to the next section.
Grant the MCP Tool User role
- Open console.cloud.google.com/iam-admin/iam.
- Select the same project.
- Click Grant access.
- In New principals, enter the Google Account email of a user who will connect from the Speakeasy AI Control Plane.
- Click Select a role.
- Search for
MCP Tool User. - Select MCP Tool User.
- Click Save.
- Repeat these steps for every connecting user.
Existing Drive sharing and Workspace policy determine which files each user can access.
Configure the OAuth consent screen
Google does not permit an OAuth consent screen to be removed after it is configured.
Open console.cloud.google.com/auth/branding.
If Google Auth platform not configured yet appears, complete the first-time configuration:
- Click Get Started.
- Under App Information, enter
Drive MCP Serverin App name. - Select an approved User support email.
- Click Next.
- Under Audience, select Internal if every connecting account belongs to the project’s Workspace organization. Otherwise, select External.
- Click Next.
- Under Contact Information, enter an approved Email address.
- Click Next.
- Under Finish, review the Google API Services User Data Policy.
- After obtaining organizational approval, select I agree to the Google API Services: User Data Policy.
- Click Continue.
- Click Create.
If the Google Auth platform was already configured, use its existing Branding, Audience, and Data Access pages.
-
Open Data Access.
-
Click Add or Remove Scopes.
-
Under Manually add scopes, paste these two scopes:
https://www.googleapis.com/auth/drive.readonlyhttps://www.googleapis.com/auth/drive.file -
Click Add to Table.
-
Click Update.
-
Click Save.
If you selected External and the publishing status is Testing, add every connecting user:
- Open Audience.
- Under Test users, click Add users.
- Enter every connecting user’s email.
- Click Save.
Testing authorizations expire after seven days. For durable External use, hand publication, verification, and any required security assessment to the application or cloud security owner.
Create the OAuth client
-
Set Application type to Web application.
-
In Name, enter a recognizable name such as
Speakeasy AI Control Plane. -
Under Authorized redirect URIs, click + Add URI.
-
Paste this value:
https://ai.speakeasy.com/mcp/remote_login_callback
Do not add Authorized JavaScript origins. Before the next action, prepare an approved secret store: the next dialog permits the client secret to be copied only once.
- Click Create.
Copy the client credentials
- In OAuth 2.0 client created, copy the Client ID to your approved secret store.
- Under Client secrets, copy the Client secret to the same location.
- Keep both values ready for Speakeasy setup.
If you lose the client secret before connecting, delete it and create a new one.
Permit the OAuth app under Workspace policy if required
Complete this section only if Workspace app-access restrictions require approval of the OAuth client.
- Sign in at admin.google.com as a Service Settings administrator.
- Go to Security > Access and data control > API controls.
- Click Manage App Access.
- Under Configured apps, click Configure new app.
- Enter the Client ID from Copy the client credentials.
- Click Search.
- Select the matching result.
- Under Scope, keep the top-level organization selected, or use Select org units > Include organizations to select the covered units.
- Click Continue.
- Under Access to Google data, have the application or cloud security owner choose the approved setting. Trusted permits all requested services, Specific Google data limits access to selected scopes, and Limited cannot permit the required
drive.readonlyscope. - Click Continue.
- Review the setting.
- Click Finish.
Add the server in Speakeasy
-
In the Speakeasy AI Control Plane sidebar, under MCP Gateway, select MCP.
-
Click Add new to open Add MCP server.
-
Choose Hosted remotely.
-
On New remote MCP server, paste this URL into MCP server URL:
https://drivemcp.googleapis.com/mcp/v1 -
Leave User session issuer at its default.
-
Click Verify connectivity.
-
Under Identity, select User Identity. The page preselects No Identity for this server, so change it.
-
If Guardrails appears, leave it off.
-
Click Save.
Speakeasy saves the server as Disabled and says to finish setup in Settings > Identity. This is expected; the next section completes it.
Connect your credentials
-
Open the server’s Settings and find the Identity section.
-
Confirm that User Identity is selected.
-
In Choose an identity provider, confirm that the preselected provider is Google (
https://accounts.google.com/). If another provider is shown, open the picker, search in Search identity providers…, and choose the Google provider. A provider badged Will be created is created when you save. -
Choose Manual.
-
In Client ID, paste the Client ID from Copy the client credentials.
-
In Client secret, paste the Client secret from the same section. Google requires it even though the field says “Optional”.
-
Open Advanced. In Scope, enter this value on one line:
https://www.googleapis.com/auth/drive.readonly https://www.googleapis.com/auth/drive.fileDo not leave Scope blank. A blank value requests every scope the server advertises, including full Drive access, which the consent screen does not grant.
-
Click Save.
-
Open Settings > Danger Zone > Server Availability and turn on Enable MCP server so it shows Enabled.
When a person first uses the server, Google’s browser authorization prompt appears. They must sign in with an account granted MCP Tool User. If the app’s audience is External and in Testing, the account must also be listed under Test users.
This guide covers setup only. For anything beyond it — billing, tool behavior, limits — see Google’s Drive MCP documentation.