google-workspace-mcp
google-workspace-mcp
Google Workspace(Sheets / Docs / Slides / Forms)とGoogle Driveを扱うMCPサーバー。
Coworkに標準接続されている公式「Google Drive」コネクタは検索・読み取り・ファイル作成・ゴミ箱移動のみを サポートし、既存ファイルの内容を変更することはできない。 そのため、シートに行を1つ追加するだけでも 全データを新しいファイルとして作り直し、既存ファイルを破棄する方法しかなかった。このサーバーはその 空白を埋める — ファイルIDを維持したままシートに行を追加し、ドキュメント本文を修正し、スライドを 追加する。
提供ツール
ツール | 機能 |
| セル値のread / append(行追加) / update / clear |
| スプレッドシート作成、タブ追加・削除・名前変更、メタデータ取得、batchUpdate |
| ドキュメントをテキスト(表含む)または元の構造で読み取り |
| ドキュメント作成、末尾に追記、位置挿入、検索して置換、batchUpdate |
| スライドごとのテキスト・発表者ノート取得 |
| プレゼンテーション作成、スライド追加(タイトル・本文入力)、削除、検索して置換 |
| フォーム作成・取得、回答一覧・単件取得、batchUpdate |
| ファイル名・内容全文検索・MIME・フォルダ条件検索 |
| メタデータ、作成、フォルダ作成、内容置換(ID維持)、名前変更、移動、コピー、ゴミ箱、完全削除、ダウンロード、export |
| コメント取得・作成・返信・解決・削除 |
| バージョン履歴取得、過去バージョンの内容回収、保持固定 |
| 共有権限の確認・追加・変更・解除 |
| 共有ドライブ一覧・詳細 |
| 開始トークン発行後、その以降の変更分のみ取得 |
すべてのツールはmax_charsで応答長の上限を調整でき、0の場合は切り詰めない。
Related MCP server: Google Docs, Drive & Sheets MCP Server
環境変数
名前 | 説明 |
| OAuthクライアントID |
| OAuthクライアントシークレット |
|
|
| アクセスゲート許可キー一覧(カンマ区切り)。空の場合はゲート無効 |
|
|
driveスコープ1つでSheets・Docs・Slides・Forms APIとDrive API全体がカバーされる
(各APIの公式認証スコープ一覧にauth/driveが含まれている)。
Google Cloudプロジェクトの準備
スコープとは別に、使用するAPIをプロジェクトで有効化(Enable) する必要がある。
有効にしないと403 has not been used in project ... or it is disabledが発生する。
Google Sheets API / Google Docs API / Google Slides API / Google Forms API
Google Drive API
呼び出し
https://<배포도메인>/api/mcp?k=<게이트키>ローカルスモークテスト
scripts/.env.local.json(gitignore対象)に上記のGoogle認証情報3つを入れ、以下を実行:
npm install
npm test実際のGoogleアカウントにテストファイルを作成し、最後にゴミ箱へ整理する。
This server cannot be deployed
Maintenance
Related MCP Connectors
Permissioned access to Gmail, Drive and Calendar via the user's own Google account
Multiple Gmail accounts, editable Google Sheets & Docs for AI agents. Deny-by-default access rules.
Docs, decks, forms, apps you build and deploy, automations, and AI images, video and voice.
Edworking tasks, Docs, workspace search, conversations and files with scoped OAuth access.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables comprehensive interaction with Google Docs and Google Drive through AI assistants, supporting document reading/writing, rich formatting, table/image insertion, comment management, and complete file/folder operations with secure OAuth authentication.4 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables deep integration with Google Workspace for AI assistants, allowing for document creation, spreadsheet manipulation, and file management. It supports advanced features like template processing, comment thread management, and cell formatting.64 npmMIT
- 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 gradedqualityDmaintenanceEnables 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,469 npmMIT