Google Drive
Connect Google's hosted Drive MCP server to read and create files under each user's existing Drive permissions.
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 that will own 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.
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://app.getgram.ai/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 -
Click Verify connectivity, then Save.
This creates the hosted MCP server and opens its Overview page.
Connect your credentials
Open the server’s Settings (from Overview for a hosted remote server, or Configure MCP settings after a catalog addition).
Choose an authentication provider
- If Authentication is unconfigured, choose Use Discovered when available; otherwise choose Configure Manually.
- If authentication is configured but no provider is attached, use Connected services > Add provider.
- If the intended provider is already attached, use its existing controls. Do not attach a duplicate; check its client against the requirements below and skip Verify and attach.
In Attach Remote Identity Provider, the provider selector defaults to Select existing when the project has issuers. Select the appropriate existing Google provider and skip new-provider setup.
New provider only
-
Choose Add new and enter Issuer URL:
https://accounts.google.com/ -
Confirm the auto-derived Slug is unique in the project.
-
Discovery runs automatically for a seeded issuer URL. After typing or changing the URL, click Discover only if offered.
-
Review the endpoints, or enter these Google OAuth values if discovery does not populate them.
Authorization endpoint:
https://accounts.google.com/o/oauth2/v2/authToken endpoint:
https://oauth2.googleapis.com/token
Choose a session client
- Reuse: Under Session Client, choose Select existing when available and select the appropriate Google OAuth client. Skip credential entry; continue to Check client requirements.
- Create: Choose Add new when available and set Client Type to Manual. For a new provider, complete the new-client form below.
New session client only
- Paste the Client ID from Copy the client credentials.
- Paste the Client Secret (optional) from the same section. Google’s Web application flow requires the generated secret despite the optional field label.
Check client requirements
For both new and reused clients, verify the Google app’s approved audience and publishing status. An External app in Testing must list each connecting account under Test users. Reusing a client does not require entering its credentials again.
Confirm the selected client includes the required scopes below. For a new client, configure Scope (override); for a reused client, inspect the read-only Scope value. If it does not match, choose Add new to create a correctly scoped client; the attach sheet cannot edit a reused client.
Configure these two scopes as required:
https://www.googleapis.com/auth/drive.readonlyhttps://www.googleapis.com/auth/drive.fileVerify and attach
- Confirm that the callback URL registered with the provider is
https://app.getgram.ai/mcp/remote_login_callback. For a new manual client, also compare it with the sheet’s displayed Redirect URI. The existing-client selection does not display that field; check the registered callback in the provider’s app settings instead. - Click Attach Identity Provider.
For the provider-side callback setting, see Create the OAuth client.
For more information, see Google’s Drive MCP documentation.