mcp-google-docs
MCP Google Workspace 統合
Google ドキュメント、スプレッドシート、スライド、ドライブなどの Google Workspace サービスとやり取りするための包括的な MCP (Metoro Control Protocol) ツール。
特徴
Googleドライブの機能
ファイルの一覧
ファイルをコピーする
ファイル名を変更する
空のスプレッドシートを作成する
テンプレートからスプレッドシートを作成する
既存のスプレッドシートをコピーする
Googleスプレッドシートの機能
リストシート
コピーシート
シート名を変更する
シートデータを取得する
行の追加/削除
列の追加/削除
セルを更新する
チャートの作成/更新/削除
セルの書式を更新する
Googleドキュメントの機能
ドキュメントを作成する
書式付きテキストを挿入する
見出しを追加する
画像を挿入する
テーブルの作成と管理
改ページを挿入する
水平線を追加する
ドキュメントスタイルを更新する
表のスタイルとコンテンツを管理する
Googleスライドの機能
プレゼンテーションを作成する
スライドを追加する
画像を挿入する
図形や線を追加する
テキストスタイルを更新する
スライドの背景を変更する
スライドレイアウトを更新する
スライドトランジションを追加する
スピーカーノートを追加する
Related MCP server: google-sheets-mcp
インストール
1. 仮想環境のセットアップ
macOS/Linux
# Create virtual environment
python -m venv venv
# Activate virtual environment
source venv/bin/activateウィンドウズ
# Create virtual environment
python -m venv venv
# Activate virtual environment
venv\Scripts\activate2. 必要なパッケージをインストールする
pip install -r requirements.txt3. Google Cloud Console のセットアップ
Google Cloud Console でプロジェクトを作成する
OAuth 2.0クライアントIDを作成する
必要な API を有効にします。
Google スプレッドシート API
GoogleドライブAPI
Google ドキュメント API
Google スライド API
4. 環境変数の設定
export MCPGD_CLIENT_SECRET_PATH="/path/to/client_secret.json"
export MCPGD_FOLDER_ID="your_folder_id"
export MCPGD_TOKEN_PATH="/path/to/token.json" # Optional使用法
1. プログラムを実行する
python main.py2. MCP経由でツールを使用する
Googleドライブの例
# List files
mcp list_files
# Copy a file
mcp copy_file --file-id "file_id" --new_name "new_name"Googleスプレッドシートの例
# Get sheet data
mcp get_sheet_data --spreadsheet_id "your_spreadsheet_id" --range "Sheet1!A1:D10"
# Create chart
mcp create_chart --chart_type "LINE" --range "A1:B10" --sheet_name "Sheet1" --title "Sales Trend"Googleドキュメントの例
# Create document
mcp create_document --title "My Document"
# Insert formatted text
mcp insert_text_to_document --document_id "doc_id" --text "Hello World" --font_family "Arial" --font_size 12Googleスライドの例
# Create presentation
mcp create_presentation --title "My Presentation"
# Add slide with content
mcp add_slide_to_presentation --presentation_id "presentation_id" --title "Slide Title" --content "Slide Content"環境変数
MCPGD_CLIENT_SECRET_PATH: Google OAuth 2.0 クライアントシークレットファイルへのパスMCPGD_FOLDER_ID: Google ドライブのフォルダ IDMCPGD_TOKEN_PATH: トークン保存ファイルへのパス (オプション、デフォルト: ~/.mcp_google_spreadsheet.json)
ライセンス
MITライセンス
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Read and edit GA4, Search Console and Google Tag Manager from any MCP client. 29 tools.
Google Docs MCP Pack — read, create, and edit Google Docs via OAuth. Reuses the google_sheets…
Hosted Google Sheets MCP server, with each action switched on or off per account.
Streamable HTTP MCP server for Google Calendar and Sheets with OAuth login.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server for interacting with Google Sheets, providing tools to list sheets, read data from cell ranges, and write data to cell ranges.33MIT
- FlicenseNot gradedqualityCmaintenanceMCP server to read, write, create, and format Google Sheets via OAuth2 authentication, providing tools for spreadsheet management.-
- AlicenseAqualityCmaintenanceAn MCP server providing read/write access to Google Spreadsheets through a set of tools for managing sheets, rows, columns, and data.10MIT
- FlicenseNot gradedqualityDmaintenanceMCP server for Google Sheets that exposes tools to read cell ranges, update values, and apply advanced batch updates (borders, colors, data validation, conditional formatting) via HTTP.-