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 https://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
https://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
https://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
https://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 https://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
https://www.googleapis.com/auth/drive.readonly. - Paste
https://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
- Open
https://console.cloud.google.com/auth/clients/create. - 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
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
https://admin.google.comas 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 Connect, select Sources.
- Click Add Source.
- Choose Custom remote server.
- On Add a custom remote MCP server, paste
https://drivemcp.googleapis.com/mcp/v1into Remote MCP server URL. - Click Add server.
This creates the hosted MCP server and opens its Overview page.
Connect your credentials
- From Overview, open Settings.
- Under Authentication, click Configure Manually. If Use Discovered is offered, you may select it instead.
- In Attach Remote Identity Provider, set Client Type to Manual.
- Confirm that Redirect URI matches the
https://app.getgram.ai/mcp/remote_login_callbackvalue registered in Create the OAuth client. - 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.
- Configure
https://www.googleapis.com/auth/drive.readonlyas a required scope. - Configure
https://www.googleapis.com/auth/drive.fileas a required scope. - Click Attach Identity Provider.
For more information, see Google’s Drive MCP documentation at https://developers.google.com/workspace/drive/api/guides/configure-mcp-server.