Google Drive MCP Server (Remote OAuth Setup)
Updated 2026-11-24
Google’s remote Drive MCP server exposes search, metadata, and file-content tools over Streamable HTTP at https://drivemcp.googleapis.com/mcp/v1. MCP hosts such as Claude or Google Antigravity connect with OAuth 2.0 so agents inherit your Drive permissions instead of sharing a service account key. For spreadsheet-specific workflows, pair this with Connect an AI agent to Google Sheets. For Gmail in the same Workspace stack, see Gmail MCP server. Last tested 2026-11-24.
Drive MCP is in Google Workspace Developer Preview; endpoints and consent steps can change. Re-read Google’s release notes before you rely on it in production.
Prerequisites
- A Google Cloud project where you can enable APIs and create OAuth clients
- An MCP host that supports remote Streamable HTTP with OAuth (Claude, Google Antigravity, or another client in Google’s Workspace MCP guide)
- Optional: Google Workspace Developer Preview membership when Google requires it for your account
Docs used:
- Configure the Google Drive MCP server
- Drive MCP reference
- Google Workspace MCP overview
- Drive MCP tool reference
Steps
1. Quick setup for personal use (single Google Account)
- Open Personal mode onboarding in Google Cloud Console.
- Select or create a project, choose Web application (or the client type your MCP host requires), and add your client’s OAuth redirect URI. Google documents, for example:
- Claude:
https://claude.ai/api/mcp/auth_callback - Antigravity:
https://antigravity.google/oauth-callback
- Claude:
- Enable Use this client for an AI-powered agent.
- Copy the Client ID and Client secret.
For multi-user apps, skip personal mode and enable APIs manually as in the next steps.
2. Enable Drive and Drive MCP APIs (multi-user setup)
gcloud services enable drive.googleapis.com drivemcp.googleapis.com --project=PROJECT_ID
Replace PROJECT_ID with your Google Cloud project ID. You can enable the same APIs from the Cloud Console API Library.
3. Configure OAuth consent and scopes
- Finish Google Auth Platform → Branding if prompted.
- Under Data Access, add the scopes Google lists for Drive MCP, including:
https://www.googleapis.com/auth/drive.readonlyhttps://www.googleapis.com/auth/drive.file
- For External apps in Testing mode, add test users under Audience.
4. Register the remote server in your MCP host
Use these values in every client (from Google’s Workspace MCP table):
| Field | Value |
|---|---|
| Server name | drive |
| Server URL | https://drivemcp.googleapis.com/mcp/v1 |
| Transport | Streamable HTTP |
| Authentication | OAuth 2.0 with an AI-agent client |
Claude (custom connector): In Settings → Connectors, add a custom connector with the server URL above. Under Advanced settings, paste your OAuth client ID and secret, then complete sign-in.
Antigravity: Add to ~/.gemini/config/mcp_config.json:
{
"mcpServers": {
"drive": {
"serverUrl": "https://drivemcp.googleapis.com/mcp/v1",
"oauth": {
"clientId": "YOUR_CLIENT_ID",
"clientSecret": "YOUR_CLIENT_SECRET"
}
}
}
}
Replace the placeholders, save, then authenticate from Antigravity’s MCP settings panel.
5. Verify with a search-and-read prompt
After OAuth succeeds, ask your host:
Summarize the file “Marketing Plan”.
Google documents that the client should call search_files, then read_file_content when a match exists. If tools fail immediately, see Common errors.
6. Optional: call Drive MCP from your Python agent
After the hosted server works in an IDE, attach tools from a custom loop with Connect an AI agent to an MCP server. For files you control end-to-end in Python without MCP, use the REST Drive API in a bespoke tool.
Common errors
OAuth rejected or 403 after connect. Google requires Use this client for an AI-powered agent on the OAuth client. Create a dedicated agent client if an existing web client cannot toggle that flag (troubleshooting).
Hourly re-sign-in prompts. Request offline access (access_type=offline or OIDC offline_access) so the host receives a refresh token. Web application clients default to online-only access (repeated sign-in section).
Tools missing on /mcp/v1self. Google exposes a fallback endpoint without interactive approval for some clients. Prefer /mcp/v1 when your host supports form-mode elicitation (MCP reference).
Connection inactive in Cursor but Claude works. Confirm Streamable HTTP and OAuth are supported for Workspace MCP in your Cursor build; otherwise use Claude or Antigravity while testing, and read Fix: MCP server not connecting for JSON issues.
FAQ
What URL does the Google Drive MCP server use?
https://drivemcp.googleapis.com/mcp/v1 over Streamable HTTP with OAuth 2.0, per Google’s Drive MCP configuration guide.
Which tools does Drive MCP expose?
Google documents tools including search_files, read_file_content, create_file, copy_file, and download_file_content. See the tool reference for schemas.
Is Drive MCP different from the Gmail MCP server?
Yes. Gmail uses https://gmailmcp.googleapis.com/mcp/v1. Drive is a separate endpoint and OAuth client. Configure each product you need.
Can I use a service account instead?
Google’s troubleshooting notes that service accounts cannot select Use this client for an AI-powered agent. Use a user-delegated OAuth client for MCP, or build a custom MCP server with a service account outside Google’s hosted Drive MCP.
Related guides
- Gmail MCP server (same Workspace remote MCP pattern)
- Notion MCP server (hosted OAuth MCP for docs)
- Connect an AI agent to Google Sheets (Sheets API tools in Python)
- Connect an AI agent to an MCP server (Python MCP client)
- Fix: MCP server not connecting
- What is an AI agent?