有官方的 Google Drive MCP 服务器吗?
有。Google 在 `https://drivemcp.googleapis.com/mcp/v1` 托管了一个,通过 Google Workspace Developer Preview Program 提供。
@googleworkspace
基本信息
Google 在 https://drivemcp.googleapis.com/mcp/v1 托管了官方的 Google Drive 远程 MCP 服务器,使用 Streamable HTTP 和 OAuth 2.0。Claude 和 Google Antigravity 等 AI 智能体可以搜索文件、读取内容和元数据、创建和复制文件以及下载内容,权限与登录用户自己的 Drive 权限一致。它通过 Google Workspace Developer Preview Program 提供。
https://drivemcp.googleapis.com/mcp/v1claude mcp add drive --transport http https://drivemcp.googleapis.com/mcp/v1Call 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.
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.
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).
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.
Call this tool to list the permissions of a Drive File.
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.
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.
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 = 'test@example.org'` - `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.
Google Drive MCP Server (Official) 是 Google 托管的 Google Drive MCP 服务器,地址为 https://drivemcp.googleapis.com/mcp/v1。它让 AI 智能体以你自己的权限搜索、读取、创建、复制和下载 Drive 文件。目前处于 Developer Preview 阶段。
这是一个远程服务器,本地无需运行任何程序,使用 Streamable HTTP 协议和 OAuth 2.0 认证。目前需要加入 Google Workspace Developer Preview Program 才能使用。配置方法和工具列表见 Google 的指南 Configure the Drive MCP server。较早的开源参考服务器仍以 Google Drive MCP Server 收录在 mcp.so 上,但已归档。
前提条件:已加入 Developer Preview,有一个 Google Cloud 项目;如果要运行下面的命令,还需要 gcloud CLI。不需要 API Key,认证使用你创建的 OAuth 客户端。
gcloud services enable drive.googleapis.com --project=PROJECT_ID
gcloud services enable drivemcp.googleapis.com --project=PROJECT_ID
https://www.googleapis.com/auth/drive.readonly
https://www.googleapis.com/auth/drive.file
Claude.ai 和 Claude Desktop 的自定义连接器需要 Pro、Max、Team 或 Enterprise 套餐。OAuth 重定向 URI 使用 https://claude.ai/api/mcp/auth_callback。然后进入 Settings(或 Admin settings)> Connectors > Add custom connector,填写:
Google Drivehttps://drivemcp.googleapis.com/mcp/v1重定向 URI 使用 https://antigravity.google/oauth-callback。把以下内容添加到 ~/.gemini/config/mcp_config.json,然后打开 MCP 设置(Antigravity CLI 中使用 /mcp)并选择 Authenticate:
{
"mcpServers": {
"drive": {
"serverUrl": "https://drivemcp.googleapis.com/mcp/v1",
"oauth": {
"clientId": "${OAUTH_CLIENT_ID}",
"clientSecret": "${OAUTH_CLIENT_SECRET}"
}
}
}
}
Google 没有为这些客户端提供专门的步骤。它的通用参数适用于任何支持 OAuth 远程服务器的客户端:服务器名 drive,URL https://drivemcp.googleapis.com/mcp/v1,传输方式 Streamable HTTP,认证方式 OAuth 2.0。客户端必须能使用你预先创建的客户端 ID 和密钥,并且要把该客户端自己的回调 URL 注册为重定向 URI。
测试连接时可以提问:“Summarize the file Marketing Plan.” 客户端应先调用 search_files,再调用 read_file_content。
drive.readonly 加 drive.file服务器在唯一的 /mcp/v1 工具集中提供八个工具。
search_files 执行结构化查询,例如按标题、全文或 MIME 类型;list_recent_files 可按最近活动、最后修改时间或你本人最后修改时间排序。read_file_content 返回文件的文本形式,可附带评论;download_file_content 以 base64 返回原始内容,Google 文件可指定导出 MIME 类型;get_file_metadata 和 get_file_permissions 显示文件详情和访问权限。create_file 创建或上传文件和文件夹;copy_file 复制文件,可指定新标题和父文件夹。已归档的参考版 Google Drive MCP Server 在本地运行,只读(只有一个 search 工具),npm 包已弃用。Google Workspace MCP 等社区服务器除 Drive 外还覆盖 Gmail、Calendar、Docs 和 Sheets,而且不需要加入 Developer Preview,但需要自行托管,由第三方维护。如果你能加入预览计划,官方 Google Drive MCP 服务器是一个有官方支持的托管选择。
access_type=offline(要重新获取时再加 prompt=consent)。drivemcp.googleapis.com 和 drive.googleapis.com,并且你的账号已加入 Developer Preview Program。有。Google 在 `https://drivemcp.googleapis.com/mcp/v1` 托管了一个,通过 Google Workspace Developer Preview Program 提供。
Google 文档没有列出单独的价格。你需要一个 Google Cloud 项目、Developer Preview 资格和一个 MCP 客户端。Claude 的自定义连接器需要付费的 Claude 套餐。
不需要。它使用 OAuth 2.0,客户端 ID 和密钥在 Google Auth Platform 中创建,请求以登录用户的身份执行。
Google 只介绍了 Antigravity 和 Claude.ai/Claude Desktop 的配置方法。其他客户端只要支持预先注册的 OAuth 客户端,就可以用通用的 Streamable HTTP 和 OAuth 参数连接。
它可以创建和复制文件,但文档中的工具不包括删除、移入回收站或共享。Google 仍然提醒,已连接的主机可以修改数据,所以请审核每一步操作。
它遵循你现有的 Drive 权限。Google 提醒要防范来自不可信文档的间接提示注入,建议使用 Model Armor 或你自己的筛查方案。
这个参考服务器已经归档,npm 包也已弃用。它在 mcp.so 上的页面 `/servers/gdrive` 仍保留,供现有用户参考。
还没有。截至 2026 年 10 月,Google 将其标记为 Developer Preview。
Google Drive MCP server 的远程 MCP 服务器是一个托管的 Model Context Protocol 端点,地址是 https://drivemcp.googleapis.com/mcp/v1,AI 助手无需在本地安装或运行任何东西即可连接。
把端点 https://drivemcp.googleapis.com/mcp/v1 添加到任意支持 MCP 的客户端,比如 Claude Code、Cursor 或 VS Code。本页的接入代码块可以一步配置好每个客户端。
需要。Google Drive MCP server 使用 OAuth——第一次连接时,你的 MCP 客户端会打开浏览器窗口登录并授权,之后会复用这个凭证。
Google Drive MCP server 暴露的是 streamable-http 端点,这是远程 MCP 服务器普遍使用、主流客户端都支持的传输方式。
One MCP connection for all your Gmail, Google Calendar, Drive and Contacts accounts, Slack workspaces and Notion — free.
Pay-per-use data and tools for AI agents: crypto token safety and rug checks, web search with cited answers, page-to-Markdown, up-to-date library docs, package safety, company research and UK/EU open data. 160 tools, 20
AdsMCP is the MCP entry point into the Adgentek Ad Server. Call ads_serve with the conversation context and get back a native ad matched to user intent, or no ad when one does not fit. Publishers earn on a CPM basis. Fre
Understand and troubleshoot your Journeys and Campaigns
AI Video MCP by AITuber is a hosted MCP server that lets AI agents create and publish video. You connect it once, then ask your agent for a video in plain language. It writes the script, picks a voice, generates the visu
评论