MCP.so
ログイン
G

Google Drive MCP Server (Official)

@googleworkspace

基本情報

トランスポート

streamable-http

認証方式

OAuth

カテゴリ

生産性

作者

googleworkspace

Google Drive MCP Server (Official) について

Google は Google Drive 向けの公式リモート MCP サーバーを https://drivemcp.googleapis.com/mcp/v1 でホストしており、Streamable HTTP と OAuth 2.0 を使います。Claude や Google Antigravity などの AI エージェントは、サインインしたユーザー自身の Drive 権限で、ファイルの検索、コンテンツとメタデータの読み取り、ファイルの作成とコピー、コンテンツのダウンロードができます。Google Workspace Developer Preview Program を通じて提供されています。

接続情報

https://drivemcp.googleapis.com/mcp/v1

セットアップ

claude mcp add drive --transport http https://drivemcp.googleapis.com/mcp/v1

Google Drive MCP Server のツール

8

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.

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 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 にあります。以前のオープンソースのリファレンスサーバーも mcp.so に Google Drive MCP Server として掲載されていますが、アーカイブ済みです。

Google Drive MCP Server (Official) の使い方

前提条件は、Developer Preview への参加と Google Cloud プロジェクトです。下のコマンドを実行する場合は gcloud CLI も必要です。API キーは不要で、自分で作成する OAuth クライアントで認証します。

  1. プロジェクトで Drive API と Drive MCP サービスを有効にします。
gcloud services enable drive.googleapis.com --project=PROJECT_ID
gcloud services enable drivemcp.googleapis.com --project=PROJECT_ID
  1. Google Auth Platform > Branding で OAuth 同意画面を設定します。選べるなら Internal を選び、選べなければ External にして自分をテストユーザーに追加します。Data Access で次のスコープを追加します。
https://www.googleapis.com/auth/drive.readonly
https://www.googleapis.com/auth/drive.file
  1. Google Auth Platform > Clients > Create Client で OAuth クライアントを作成します。種類は Web application を選び、使うクライアントのリダイレクト URI(下記)を追加して、Use this client for an AI-powered agent を選択します。作成後、クライアント ID とシークレットをコピーします。

Claude Desktop

Claude.ai と Claude Desktop のカスタムコネクタを使うには、Pro、Max、Team、Enterprise のいずれかのプランが必要です。OAuth のリダイレクト URI には https://claude.ai/api/mcp/auth_callback を使います。Settings(または Admin settings)> Connectors > Add custom connector を開き、次を入力します。

  • Server name:Google Drive
  • Remote MCP server URL:https://drivemcp.googleapis.com/mcp/v1
  • Advanced settings:OAuth クライアント ID とクライアントシークレット

Antigravity

リダイレクト 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}"
      }
    }
  }
}

その他のクライアント(Claude Code、Cursor、VS Code)

Google はこれらのクライアント向けの個別手順を公開していません。OAuth 対応のリモートサーバーに接続できるクライアントなら、Google の汎用設定が使えます。サーバー名は 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 を呼べば成功です。

Google Drive MCP Server (Official) の主な機能

  • Google が運用しているため、インストール・ホスティング・更新が不要
  • OAuth 2.0 で認証するリモートの Streamable HTTP エンドポイント
  • サインインしたユーザーと同じ権限・データガバナンス設定を引き継ぐ
  • Drive 全体の全文検索・構造化検索と、最近のファイルの一覧
  • Docs や Sheets などのファイルを自然言語のテキストとして読み取り、コメントも取得可能
  • ファイルやフォルダ(Google Docs、Sheets、Slides を含む)の作成、コンテンツのアップロード、ファイルのコピー
  • OAuth スコープは drive.readonly と drive.file のみに限定
  • ファイルの削除、ゴミ箱への移動、共有を行うツールはない

Google Drive MCP Server (Official) のツール

サーバーは単一の /mcp/v1 ツールセットで 8 つのツールを提供しています。

  • ファイルを探す: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 (Official) のユースケース

  • ドキュメントの要約:「Marketing Plan ファイルを要約して、未解決の論点を挙げて」。
  • 情報の検索:「今週自分が編集した Q3 予算に関するスプレッドシートを探して」。
  • Drive への下書き:「Projects フォルダに Meeting Notes という Google Doc を作って、この箇条書きを入れて」。
  • テンプレートの活用:「Proposal Template をコピーして、Acme Proposal という名前にして」。
  • アクセス権の確認:「Roadmap ファイルには誰がアクセスできる?」
  • エージェントのパイプライン:エージェントが Drive のコンテンツを他のツールに渡せます。すべての操作はユーザーが確認します。

Google Drive MCP Server (Official) と代替ツールの比較

アーカイブ済みのリファレンス版 Google Drive MCP Server はローカルで動作する読み取り専用のサーバー(ツールは search の 1 つだけ)で、npm パッケージは非推奨になっています。Google Workspace MCP などのコミュニティサーバーは、Drive に加えて Gmail、Calendar、Docs、Sheets にも対応し、Developer Preview への参加も不要です。ただしセルフホストが必要で、保守しているのは第三者です。プレビューに参加できるなら、公式の Google Drive MCP サーバーがサポート付きのホスト型の選択肢になります。

Google Drive MCP Server (Official) のトラブルシューティング

  • リクエストが拒否される:OAuth クライアントで Use this client for an AI-powered agent を選択する必要があります。既存のクライアントで変更できない場合は、エージェント専用のクライアントを新しく作成してください。
  • 1 時間ほどで再ログインを求められる:クライアントがリフレッシュトークンを受け取れていません。クライアントがカスタムの認可パラメータに対応していれば、認可リクエストに access_type=offline を追加します(新しいトークンを取得するには prompt=consent も追加)。
  • 接続エラー:管理者にセキュリティ調査ツールで OAuth のログイベントを確認してもらいます。
  • サービスが見つからない、またはアクセスが拒否される:drivemcp.googleapis.com と drive.googleapis.com が有効になっているか、アカウントが Developer Preview Program に参加しているかを確認します。

よくある質問

1

公式の Google Drive MCP サーバーはありますか?

はい。Google が `https://drivemcp.googleapis.com/mcp/v1` でホストしており、Google Workspace Developer Preview Program を通じて提供されています。

2

Google Drive MCP サーバーは無料ですか?

Google のドキュメントには個別の料金は記載されていません。Google Cloud プロジェクト、Developer Preview への参加、MCP クライアントが必要です。Claude のカスタムコネクタには有料の Claude プランが必要です。

3

API キーは必要ですか?

不要です。Google Auth Platform で作成したクライアント ID とシークレットを使う OAuth 2.0 で認証し、リクエストはサインインしたユーザーとして実行されます。

4

Claude Code、Cursor、VS Code で使えますか?

Google が手順を公開しているのは Antigravity と Claude.ai/Claude Desktop だけです。その他のクライアントでも、事前登録した OAuth クライアントに対応していれば、汎用の Streamable HTTP と OAuth の設定で接続できます。

5

ファイルを編集・削除できますか?

ファイルの作成とコピーはできますが、ドキュメントに記載されたツールに削除、ゴミ箱への移動、共有はありません。それでも Google は、接続したホストがデータを変更できると注意を促しているので、すべての操作を確認してください。

6

Drive に接続しても安全ですか?

既存の Drive の権限に従います。Google は、信頼できないドキュメントからの間接的なプロンプトインジェクションに注意するよう呼びかけており、Model Armor か独自の検査の仕組みを使うことを勧めています。

7

@modelcontextprotocol/server-gdrive はどうなりましたか?

このリファレンスサーバーはアーカイブされ、npm パッケージも非推奨になりました。mcp.so のページ `/servers/gdrive` は、既存のユーザー向けに残されています。

8

Google Drive MCP サーバーは一般提供されていますか?

まだです。2026 年 10 月時点で、Google は Developer Preview としています。

9

Google Drive MCP server のリモート MCP サーバーとは何ですか?

Google Drive MCP server のリモート MCP サーバーは、https://drivemcp.googleapis.com/mcp/v1 にホストされた Model Context Protocol エンドポイントです。AI アシスタントはローカルに何もインストール・実行することなく接続できます。

10

Google Drive MCP server の MCP サーバーにはどう接続しますか?

エンドポイント https://drivemcp.googleapis.com/mcp/v1 を Claude Code、Cursor、VS Code など任意の MCP 対応クライアントに追加してください。このページのセットアップ手順で各クライアントを一度に設定できます。

11

Google Drive MCP server の MCP サーバーは認証が必要ですか?

はい。Google Drive MCP server は OAuth を使用します。初回接続時に MCP クライアントがブラウザを開いてサインイン・認可を行い、以降はその認証情報を再利用します。

12

Google Drive MCP server の MCP サーバーはどのトランスポートを使用しますか?

Google Drive MCP server は streamable-http エンドポイントを公開しており、これはリモート MCP サーバーで広く使われ、主要な MCP クライアントがサポートするトランスポートです。

コメント