Basic information
About Google Drive MCP server
Google's official remote Google Drive MCP server (Developer Preview): search, read, create and copy Drive files over OAuth.
Google Drive MCP server is a remote MCP server in the Productivity category listed in the AddMCP.net directory, published by googleworkspace. It exposes 8 tools, including copy_file, create_file, download_file_content, get_file_metadata and more. Supported transport: Streamable HTTP. Runtime: remote. License: MIT. Source code is hosted on github.com. Related topics: ai-agents, claude, cursor, files, google.
Connection details
https://drivemcp.googleapis.com/mcp/v1
Setup
claude mcp add google-drive-mcp --transport http https://drivemcp.googleapis.com/mcp/v1
[mcp_servers.google-drive-mcp] url = "https://drivemcp.googleapis.com/mcp/v1"
{
"mcpServers": {
"google-drive-mcp": {
"url": "https://drivemcp.googleapis.com/mcp/v1"
}
}
}
{
"servers": {
"google-drive-mcp": {
"type": "http",
"url": "https://drivemcp.googleapis.com/mcp/v1"
}
}
}
Google Drive MCP server — by googleworkspace config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"drive": {
"url": "https://drivemcp.googleapis.com/mcp/v1"
}
}
}
Google Drive MCP server — by googleworkspace tools
-
copy_file
— Call this tool to copy an existing File in Google Drive.
The tool allows specifying a new title and a parent folder for the copy.
If the title is not specified, the copy title will be 'Copy of {original title}'.
If the parent folder is not specified, the copy will be created in the same folder as the original file, unless the requesting user does not have write access to that folder, in which case the copy will be created in the user's root folder.Returns the newly created File object upon successful copying.
fileId:string*, parentId:string, title:string -
create_file
— Call this tool to create or upload a File to Google Drive.
If uploading content, prefer `textContent` for text content. For non-UTF8 contents, use the `base64Content` field and base64 encode the data to set on that field.
Returns a single File object upon successful creation.
The following Google first-party mime types can be created without providing content:
- `application/vnd.google-apps.document`
- `application/vnd.google-apps.spreadsheet`
- `application/vnd.google-apps.presentation`
Folders can be created by setting the mime type to `application/vnd.google-apps.folder`.
When uploading content, the `contentMimeType` field is required and should match the type of the content being uploaded.
By default, supported content will be converted to Google first-party mime types.
To disable conversions for first-party mime types, set `disableConversionToGoogleType` to true.
base64Content:string, content:string, contentMimeType:string, disableConversionToGoogleType:boolean, inheritedPermissionsDisabled:boolean, mimeType:string, parentId:string, textContent:string, title:string* -
download_file_content
— Call this tool to download the content of a Drive file as a base64 encoded string.
If the file is a Google Drive first-party mime type, the `exportMimeType` field specifies the desired export mime type. When the field is unset, defaults to plain text types (e.g. `text/plain`, `text/csv`).
If the file is not found, try using other tools like `search_files` to find the file the user is requesting.
If the user wants a natural language representation of their Drive content, use the `read_file_content` tool (`read_file_content` should be smaller and easier to parse).
exportMimeType:string, fileId:string*, revisionId:string -
get_file_metadata
— Call this tool to find general metadata about a user's Drive file.
Context window token management can be tuned via `snippetVerbosity` (default is `SnippetVerbosity.DETAILED`) or if only metadata is needed, use `excludeContentSnippets`.
If the file is not found, try using other tools like `search_files` to find the file the user is requesting.
excludeContentSnippets:boolean, fileId:string*, snippetVerbosity:string -
get_file_permissions
— Call this tool to list the permissions of a Drive File.
fileId:string* -
list_recent_files
— Call this tool to find recent files for a user specified a sort order. Default sort order is `recency` if orderBy is not set or set to an unsupported value.
Context window token management can be tuned via `snippetVerbosity` (default is `SnippetVerbosity.DETAILED`) or if only metadata is needed, use `excludeContentSnippets`.
Supported sort orders are:
- `recency`: The most recent timestamp from the file's date-time fields.
- `lastModified`: The last time the file was modified by anyone.
- `lastModifiedByMe`: The last time the file was modified by the user.
The default page size is 10. Utilize `next_page_token` to paginate through the results.
excludeContentSnippets:boolean, orderBy:string, pageSize:integer, pageToken:string, snippetVerbosity:string -
read_file_content
— Call this tool to fetch a natural language representation of a known Drive file, and if specified, its comments.
REQUIREMENTS & WORKFLOW:
- `fileId` is required. You MUST pass an exact Drive file ID returned by a previous discovery tool (`search_files` or `list_recent_files`) or provided explicitly in the user prompt.
- NEVER guess, invent, or hallucinate a `fileId` string from a file title or name.
- If given a file title, name, or topic without an explicit `fileId`, you MUST FIRST call `search_files` to find the file and retrieve its `fileId` before invoking this tool.
The file content may be incomplete for very large files. The text representation will change over time, so don't make assumptions about the particular format of the text returned by this tool. If supported and specified, comment tags will be included in the content.
Supported Mime Types:
- `application/vnd.google-apps.document` (supports comments)
- `application/vnd.google-apps.presentation` (supports comments)
- `application/vnd.google-apps.spreadsheet` (supports comments)
- `application/pdf`
- `application/msword`
- `application/vnd.openxmlformats-officedocument.wordprocessingml.document`
- `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`
- `application/vnd.openxmlformats-officedocument.presentationml.presentation`
- `application/vnd.oasis.opendocument.spreadsheet`
- `application/vnd.oasis.opendocument.presentation`
- `application/x-vnd.oasis.opendocument.text`
- `image/png`
- `image/jpeg`
- `image/jpg`
If the file is not found, try using other tools like `search_files` to find the file the user is requesting using keywords.
fileId:string*, includeComments:boolean -
search_files
— Search for Drive files using a structured query (syntax: `query_term operator values`). Only terms in this list are supported.
Combine clauses with `and`, `or`, `not`, and parentheses. String values must be single-quoted; escape embedded quotes as `\'`.
Context window token management can be tuned via `snippetVerbosity` (default is `SnippetVerbosity.DETAILED`) or if only metadata is needed, use `excludeContentSnippets`.
Do NOT include document type terms (e.g., 'presentation', 'slides', 'deck', 'document', 'doc', 'spreadsheet', 'sheet', 'pdf', 'folder') inside `title contains '...'` or `fullText contains '...'` clauses. Separate title keywords from file type terms. Instead map them to `mimeType` clauses in the query (e.g., 'slides' -> `mimeType = 'application/vnd.google-apps.presentation'`).
Query terms & operators:
- `title` (ops: contains, =, !=) — file title
- `fullText` (ops: contains) — title or body text
- `mimeType` (ops: contains, =, !=) — MIME type
- `modifiedTime`, `viewedByMeTime`, `createdTime` (ops: `<=`, `<`, `=`, `!=`, `>`, `>=`). Use RFC 3339 UTC, e.g., `2012-06-04T12:00:00-08:00`. Date types not comparable.
- `parentId` (ops: `=`, `!=`). Use `'root'` for the user's "My Drive".
- `owner` (ops: `=`, `!=`). Use `'me'` for the requesting user.
- `sharedWithMe` (ops: `=`, `!=`). Values: `true` or `false`.
- `starred` (ops: `=`, `!=`). Values: `true` or `false`.
- `folderProperties` (ops: `in`): `'syncedComputer'` (synced computer), `'syncFolder'` (synced folder).
Other operators: `and`, `or`, `not`, `in`.
Examples:
- `title contains 'hello' and title contains 'goodbye'`
- `modifiedTime > '2024-01-01T00:00:00Z' and (mimeType contains 'image/' or mimeType contains 'video/')`
- `parentId = '1234567'`
- `fullText contains 'hello'`
- `owner = '[email protected]'`
- `sharedWithMe = true`
- `starred = true`
- `owner = 'me'` (for files owned by the user)
Use `next_page_token` to paginate. Duplicate results can occur across page boundaries. An empty response means no more results.
excludeContentSnippets:boolean, pageSize:integer, pageToken:string, query:string, snippetVerbosity:string
Overview
What is Google Drive MCP server?
Google Drive MCP Server (Official) is Google's hosted Google Drive MCP server at https://drivemcp.googleapis.com/mcp/v1. It lets AI agents search, read, create, copy and download Drive files with your own permissions. It is in Developer Preview.
The server is remote. You run nothing locally, and it speaks Streamable HTTP with OAuth 2.0. Access currently requires membership in the Google Workspace Developer Preview Program. Setup and the tool list are documented in Google's guide, Configure the Drive MCP server. The older open-source reference server is still listed on mcp.so as Google Drive MCP Server, but it is archived.
How to use Google Drive MCP server?
Prerequisites: you need Developer Preview membership, a Google Cloud project, and the gcloud CLI if you want to run the commands below. There is no API key. Authentication uses an OAuth client you create.
- Enable the Drive API and the Drive MCP service in your project:
gcloud services enable drive.googleapis.com --project=PROJECT_ID
gcloud services enable drivemcp.googleapis.com --project=PROJECT_ID
- In Google Auth Platform > Branding, configure the OAuth consent screen. Choose Internal if you can, otherwise External with yourself as a test user. Under Data Access, add these scopes:
https://www.googleapis.com/auth/drive.readonly
https://www.googleapis.com/auth/drive.file
- Create an OAuth client under Google Auth Platform > Clients > Create Client. Choose Web application, add the redirect URI for your client (below), and select Use this client for an AI-powered agent. Copy the client ID and secret.
Claude Desktop
Custom connectors on Claude.ai and Claude Desktop require a Pro, Max, Team or Enterprise plan. Use https://claude.ai/api/mcp/auth_callback as the OAuth redirect URI. Then go to Settings (or Admin settings) > Connectors > Add custom connector and enter:
- Server name:
Google Drive - Remote MCP server URL:
https://drivemcp.googleapis.com/mcp/v1 - Advanced settings: your OAuth client ID and client secret
Antigravity
Use https://antigravity.google/oauth-callback as the redirect URI. Add this to ~/.gemini/config/mcp_config.json, then open the MCP settings (or /mcp in the Antigravity CLI) and choose Authenticate:
{
"mcpServers": {
"drive": {
"serverUrl": "https://drivemcp.googleapis.com/mcp/v1",
"oauth": {
"clientId": "${OAUTH_CLIENT_ID}",
"clientSecret": "${OAUTH_CLIENT_SECRET}"
}
}
}
}
Other clients (Claude Code, Cursor, VS Code)
Google doesn't publish client-specific steps for these. Its generic settings work in any client that supports remote servers with OAuth: server name drive, URL https://drivemcp.googleapis.com/mcp/v1, transport Streamable HTTP, authentication OAuth 2.0. Your client must be able to use your pre-created client ID and secret. Register that client's own callback URL as a redirect URI.
To test the connection, ask: "Summarize the file Marketing Plan." The client should call search_files and then read_file_content.
Key features of Google Drive MCP server
- Run by Google, so there is nothing to install, host or update
- Remote Streamable HTTP endpoint with OAuth 2.0
- Keeps the same permissions and data governance controls as the signed-in user
- Full-text and structured search across Drive, plus recent-file listing
- Reads Docs, Sheets and other files as natural-language text, with optional comments
- Can create files and folders (including Google Docs, Sheets and Slides), upload content, and copy files
- Narrow OAuth scopes:
drive.readonlyplusdrive.file - No tools for deleting, trashing or sharing files
Google Drive MCP server tools
The server exposes eight tools on its single /mcp/v1 toolset.
- Find files:
search_filesruns structured queries, for example on title, full text or MIME type.list_recent_filessorts by recency, last modified, or last modified by you. - Read files:
read_file_contentreturns a text version of a file and can include comments.download_file_contentreturns raw bytes as base64, with an export MIME type for Google files.get_file_metadataandget_file_permissionsshow details and who has access. - Write files:
create_filecreates or uploads files and folders.copy_fileduplicates a file, optionally with a new title and parent folder.
Use cases of Google Drive MCP server
- Summarize documents: "Summarize the file Marketing Plan and list the open questions."
- Find information: "Find the spreadsheets I edited this week about the Q3 budget."
- Draft into Drive: "Create a Google Doc called Meeting Notes in my Projects folder with these bullets."
- Templates: "Copy the Proposal Template and title it Acme Proposal."
- Access review: "Who has access to the Roadmap file?"
- Agent pipelines: an agent can feed Drive content into other tools, with every action reviewed by you.
Google Drive MCP Server (Official) vs alternatives
The archived reference Google Drive MCP Server runs locally, is read-only (one search tool), and its npm package is deprecated. Community servers such as Google Workspace MCP cover Drive along with Gmail, Calendar, Docs and Sheets, and they don't require the Developer Preview. They are self-hosted and maintained by third parties. If you can join the preview, choose the official Google Drive MCP server for a supported, hosted option.
Troubleshooting Google Drive MCP Server (Official)
- Requests are rejected: your OAuth client must have Use this client for an AI-powered agent selected. If you can't change this on an existing client, create a new one just for the agent.
- You're asked to sign in again every hour: the client isn't receiving a refresh token. Add
access_type=offlineto the authorization request (andprompt=consentto get a fresh one), if your client supports custom auth parameters. - Connection errors: have your admin check the OAuth log events in the security investigation tool.
- Service not found or access denied: make sure
drivemcp.googleapis.comanddrive.googleapis.comare enabled, and that your account is in the Developer Preview Program.
Frequently asked questions
1 Is there an official Google Drive MCP server?
Yes. Google hosts one at https://drivemcp.googleapis.com/mcp/v1. It is available through the Google Workspace Developer Preview Program.
2 Is the Google Drive MCP server free?
Google's docs list no separate price. You need a Google Cloud project, Developer Preview membership, and an MCP client. Claude custom connectors require a paid Claude plan.
3 Do I need an API key?
No. It uses OAuth 2.0 with a client ID and secret that you create in Google Auth Platform. Requests act as the signed-in user.
4 Can I use it with Claude Code, Cursor or VS Code?
Google documents only Antigravity and Claude.ai/Claude Desktop. Other clients can connect through the generic Streamable HTTP and OAuth settings, if they support a pre-registered OAuth client.
5 Can it edit or delete my files?
It can create and copy files. The documented tools don't include delete, trash or sharing. Google still warns that connected hosts can modify data, so review every action.
6 Is it safe to connect to my Drive?
It follows your existing Drive permissions. Google warns about indirect prompt injection from untrusted documents, and suggests Model Armor or your own screening.
7 What happened to @modelcontextprotocol/server-gdrive?
That reference server is archived and its npm package is deprecated. Its mcp.so page remains at /servers/gdrive for existing users.
8 Is the Google Drive MCP server generally available?
Not yet. As of October 2026, Google labels it Developer Preview.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In