Google Workspace MCP Server
Provides tools for searching files using query syntax and listing items within a folder.
Enables operations such as listing spreadsheets, reading/writing cell values, creating spreadsheets, adding sheets, appending rows, clearing ranges, and importing CSV/TSV files.
Supports creating presentations, retrieving content, listing presentations, getting slide details, updating text shapes, adding text boxes, deleting elements, duplicating slides, adding shapes, updating slide properties, and batch updates.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Google Workspace MCP ServerList all my spreadsheets"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Google Workspace MCP Server
Google Workspace MCP Server は、GitHub Copilot などの AI アシスタントから Google Workspace サービス(Slides、Sheets、Docs、Drive)を操作できるようにする MCP サーバーです。
会社用・個人用など、複数の Google アカウントを 1 つのサーバーで使い分けられます。
主な機能
👤 アカウント
accounts_list - 登録されている Google アカウントの一覧を取得
すべてのツールに account 引数があり、work private のようなラベルで対象アカウントを指定します。省略した場合は既定アカウントが使われます。
アカウントごとに OAuth(利用者として認証)と サービスアカウント(ブラウザ認可が不要)を選べます。
OAuth | サービスアカウント | |
ブラウザでの認可 | 必要 | 不要 |
既存ファイルの読み書き | Drive 全体 | 共有したものだけ |
新規ファイルの作成 | 可 | 不可 |
📊 Google Sheets
sheets_list_spreadsheets - スプレッドシート一覧を取得
sheets_get_spreadsheet_info - スプレッドシートの詳細情報(シート一覧、プロパティ)を取得
sheets_read_sheet_values - セル範囲のデータを読み取り
sheets_update_sheet_values - セル範囲のデータを更新
sheets_batch_update_sheet_values - 複数のセル範囲を一度に更新
sheets_create_spreadsheet - 新規スプレッドシートを作成
sheets_add_sheet - 既存のスプレッドシートにシートを追加
sheets_append_values - 既存データの末尾に行を追記
sheets_clear_sheet_values - 指定範囲のセルの値をクリア
sheets_import_csv - CSV/TSV ファイルをスプレッドシートにインポート(カスタムデリミタ・Base64対応)
sheets_insert_dimension - 指定位置に行・列を挿入
sheets_delete_dimension - 指定範囲の行・列を削除
sheets_format_cells - セルの塗り・文字色・太字・サイズ・配置・数値書式を変更(範囲ごとにまとめて指定)
sheets_set_borders - セル範囲に罫線を引く・消す(外周と内側を個別に指定可)
sheets_merge_cells - セルを結合・解除(MERGE_ALL / MERGE_COLUMNS / MERGE_ROWS / UNMERGE)
sheets_resize_dimension - 列幅・行高をピクセル指定または内容に合わせて自動調整
sheets_freeze_panes - 先頭の行・列を固定(見出し行の固定)
sheets_add_conditional_format - 条件付き書式のルールを追加(条件による色分け/カラースケール)
sheets_delete_conditional_format - 条件付き書式のルールを index 指定で削除
sheets_list_conditional_formats - 条件付き書式のルールを一覧(削除に使う index 付き)
📄 Google Docs
docs_get_document - Google Doc の本文を Markdown 形式で取得(見出し・段落・篇条書き・テーブルに対応)
🖼️ Google Slides
slides_create_presentation - プレゼンテーションを作成
slides_get_presentation - プレゼンテーションの内容を取得
slides_list_presentations - プレゼンテーション一覧を取得
slides_get_page - 特定スライドの詳細情報を取得
slides_update_text_shape - テキスト要素の内容を更新または追記
slides_add_text_box - スライドに新しいテキストボックスを追加
slides_delete_element - スライドの要素(図形、テキストボックス、画像など)を削除
slides_duplicate_slide - スライドを複製
slides_add_shape - スライドに図形(矩形、円、矢印など)を追加
slides_update_slide_properties - スライドのプロパティ(背景色など)を更新
slides_batch_update_presentation - 複数の更新リクエストをバッチで実行(高度な操作)
slides_update_text_style - テキストのフォント・サイズ・色・太字などを変更
slides_update_shape_style - 既存の図形の塗りと枠線を変更
slides_insert_image - 公開 URL の画像をスライドに挿入
slides_replace_all_text - プレゼンテーション内の文字列を一括置換(ひな形の差し込み)
📁 Google Drive
drive_search_files - ファイルを検索(クエリ構文対応)
drive_list_items - フォルダ内のファイル一覧を取得
Related MCP server: Vopak Workspace MCP
クイックスタート
簡単な流れ
Google Cloud で OAuth 認証情報(CLIENT_ID, SECRET)を作成(初回のみ)
OAuth 認証情報をもとに、アカウントごとのトークンを取得(アカウントを追加するたび)
GitHub Copilot で使用開始
# 会社アカウントを登録
npm run setup -- --account work --description "会社の Google Workspace"
# 個人アカウントを登録
npm run setup -- --account private --description "個人の Google アカウント"詳細なセットアップ手順は docs/setup.md を参照してください。
プロジェクト構成
src/
├── index.ts # MCP サーバー起動
├── auth/ # アカウント設定・トークン・OAuth クライアントの解決
├── manager/ # サービス統合管理と account 引数の取り回し
└── tools/ # Google Workspace ツール実装
├── accounts/
├── sheets/
├── slides/
├── docs/
└── drive/設定とトークンは 1 つのディレクトリにまとまります。
~/.google-workspace-mcp/
├── accounts.json # アカウント一覧と既定アカウント
├── credentials.json # 全アカウントで共有する OAuth クライアント
└── accounts/
├── work/token.json # OAuth のトークン
└── private/service-account.json # サービスアカウントの鍵用語の定義は CONTEXT.md を参照してください。
新しいバージョンへの差し替え
新しいバージョンが公開されたら、次のコマンドで差し替えます。
npm run update-image # 公開済みの最新版へ差し替える
npm run update-image -- 0.4.1 # バージョンを指定して差し替える
npm run update-image -- --dry-run # 何が起きるかだけ表示するやっていること:
Docker Hub のタグ一覧から最新のリリースバージョンを選び、
docker pullするMCP クライアントの設定(既定は
~/.claude.json)に固定されているタグを差し替える(控えを.bakに残す)不要になった旧イメージを削除する(そのイメージで動いているコンテナがあれば削除せず知らせる)
差し替え後は、Claude Code を再起動するか /mcp で再接続すると新しいイメージで起動します。
オプション | 意味 |
| 設定ファイルの場所を変える(既定: |
| 対象の Docker イメージを変える(既定: |
| 旧イメージを削除しない |
| 変更せず、差し替え内容だけ表示する |
タグは
latestではなくバージョンで固定したままにします。latestは指す先が黙って変わるため、 今どのバージョンが動いているのか分からなくなります。
開発者向け: クラス設計
開発者向け: テスト
npm test # ビルドしたうえで認証・アカウント解決層のテストを実行開発者向け: Docker コンテナのデプロイメント方法
以下のファイルを参照してください:
開発者向け: MCP Registry への公開手順
以下のファイルを参照してください:
参考にしたプロジェクト
備忘
https://registry.modelcontextprotocol.io/?q=google-workspace で MCP を検索すると -server なしのプロジェクトが見つかるが、初期に登録してしまったものなので、 unpublish 的な操作ができるようになったら、そちらは削除する予定。(2026年3月時点では削除ができない。)
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect AI assistants to Google Sheets through controlled tools for reading and updating rows.
Multiple Gmail accounts, editable Google Sheets & Docs for AI agents. Deny-by-default access rules.
Permissioned access to Gmail, Drive and Calendar via the user's own Google account
Provides tools for searching Google Workspace documentation and much more.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides AI assistants with access to Google Workspace APIs including Sheets, Calendar, Gmail, Tasks, Drive, and Docs. Enables full CRUD operations and management of Google services through natural language.1-
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to control Google Workspace services (Slides, Docs, Sheets, Drive) with granular tools and provides a universal CLI escape hatch for all Workspace APIs.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to create, read, and modify Google Slides, Sheets, Docs, and Drive documents programmatically. Supports file management, content editing, and version history retrieval.1,091 npm1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to securely interact with Google Workspace services, including sending emails via Gmail and appending content to Google Docs.205 npmMIT