Google Workspace MCP
Search, read, send emails, manage labels, create drafts, and handle attachments.
Manage Google Calendar events: create, update, delete, respond to events, and find free time slots.
Send messages, manage spaces, list threads, and send direct messages.
Create, read, edit documents with Markdown support; insert, append, replace text.
Search files, create folders, upload/download files, manage sharing, and handle trash.
Read spreadsheet data in various formats, update ranges, append rows, manage sheets.
Read presentation content, create slides, add text boxes and images.
Click on "Install 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 MCPcreate a new calendar event for team meeting at 2pm tomorrow"
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
A Model Context Protocol (MCP) server that connects AI assistants to Google Workspace APIs.
English
Features
Google Calendar - Create, update, delete events, find free time
Gmail - Search, read, send emails, manage labels
Google Drive - Search files, create folders, download files
Google Docs - Create, read, edit documents with Markdown support
Google Sheets - Read spreadsheet data in multiple formats
Google Slides - Read presentation content
Google Chat - Send messages, manage spaces
People API - Get user profiles and relations
Installation
Download Binary
Download the latest binary from Releases:
Platform | Architecture | Download |
macOS | Apple Silicon (M1/M2/M3) |
|
macOS | Intel |
|
Linux | x86_64 |
|
Linux | ARM64 |
|
Windows | x86_64 |
|
# Example: macOS Apple Silicon
curl -L -o workspace-server https://github.com/tomohiro-owada/google-workspace-mcp/releases/latest/download/workspace-server-darwin-arm64
chmod +x workspace-server
sudo mv workspace-server /usr/local/bin/Build from Source
git clone https://github.com/tomohiro-owada/google-workspace-mcp.git
cd google-workspace-mcp
go build -o workspace-server ./cmd/workspace-server/Configuration
Claude Code
Add to ~/.claude.json:
{
"mcpServers": {
"google-workspace": {
"command": "/usr/local/bin/workspace-server"
}
}
}Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"google-workspace": {
"command": "/usr/local/bin/workspace-server"
}
}
}Authentication
This server uses OAuth 2.0 for Google authentication. On first use, you need to authenticate:
# Check auth status
auth.status
# Login (opens browser)
auth.login
# Clear credentials
auth.clearAccess Modes
This server supports two access modes:
Mode | Permissions | Setup Required |
Basic | Read-only | None (default) |
Full Access | Read + Write + Delete | Custom OAuth credentials |
Basic Mode (Default)
Works out of the box with read-only permissions. No additional setup required.
Full Access Mode
To enable write operations (send emails, create documents, etc.), you need to set up your own OAuth credentials.
1. Create a Google Cloud Project
Go to Google Cloud Console
Create a new project (e.g.,
workspace-mcp)Enable the following APIs:
Google Calendar API
Gmail API
Google Drive API
Google Docs API
Google Sheets API
Google Slides API
Google Chat API
People API
2. Configure OAuth Consent Screen
Go to APIs & Services > OAuth consent screen
Choose User Type:
Internal: For Google Workspace organizations (all members can use)
External: For personal Gmail accounts (requires adding test users or Google verification)
Fill in the required fields (App name, User support email, Developer contact)
Add scopes (or skip - they'll be requested at runtime)
If External: Add test users (your Gmail address)
3. Create OAuth Credentials
Go to APIs & Services > Credentials
Click Create Credentials > OAuth client ID
Select Desktop app
Download or copy the Client ID and Client Secret
4. Configure the MCP Server
Add environment variables to your MCP configuration:
Claude Code (~/.claude.json):
{
"mcpServers": {
"google-workspace": {
"command": "/usr/local/bin/workspace-server",
"env": {
"GOOGLE_CLIENT_ID": "your-client-id.apps.googleusercontent.com",
"GOOGLE_CLIENT_SECRET": "your-client-secret"
}
}
}
}Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"google-workspace": {
"command": "/usr/local/bin/workspace-server",
"env": {
"GOOGLE_CLIENT_ID": "your-client-id.apps.googleusercontent.com",
"GOOGLE_CLIENT_SECRET": "your-client-secret"
}
}
}
}5. Re-authenticate
After configuration, restart the MCP server and run auth.login again.
Available Tools
Tool | Description |
| Initiate Google OAuth login |
| Check authentication status |
| Clear stored credentials |
| Manually refresh token |
Tool | Description |
| List all calendars |
| List events in a time range |
| Get event details |
| Create a new event |
| Update an existing event |
| Delete an event |
| Accept/decline/tentative |
| Find available time slots |
Tool | Description |
| Search emails |
| Get email content |
| Send an email |
| Send with file attachments |
| Create a draft |
| Send a draft |
| Add/remove labels |
| List all labels |
| Create a label |
| Delete a label |
| Download attachment |
| Move to trash |
| Restore from trash |
| Get vacation settings |
| Set vacation auto-reply |
Tool | Description |
| Search files and folders |
| Find folder by name |
| Create a new folder |
| Download a file |
| Upload a local file |
| Copy a file |
| Move a file to folder |
| Trash or permanently delete |
| Get detailed file info |
| Share with user or public |
| Remove sharing permission |
| List files in trash |
| Restore from trash |
| Empty trash |
Tool | Description |
| Create a new document |
| Get document content |
| Insert text at beginning |
| Append text at end |
| Find and replace text |
| Move document to folder |
| Search documents by title |
| Extract ID from URL |
Tool | Description |
| Get sheet content (text/csv/json) |
| Get values from range |
| Get spreadsheet metadata |
| Search spreadsheets by title |
| Create a new spreadsheet |
| Update values in range |
| Append rows to sheet |
| Clear values in range |
| Create new sheet tab |
| Delete sheet tab |
Tool | Description |
| Get presentation text |
| Get presentation metadata |
| Search presentations by title |
| Create new presentation |
| Add a new slide |
| Delete a slide |
| Add text box to slide |
| Add image to slide |
| Update text in shape |
Tool | Description |
| List all spaces |
| Find space by name |
| Find DM by email |
| Get messages from space |
| List threads in space |
| Send message to space |
| Send direct message |
| Create a new space |
Tool | Description |
| Get authenticated user profile |
| Get user profile by email |
| Get user relations |
Tool | Description |
| Get current time |
| Get current date |
| Get timezone info |
Security
This server grants AI assistants access to read, modify, and delete your Google Workspace data. Use with caution:
Review actions taken by AI assistants
Don't process untrusted content (emails, documents from unknown sources)
Credentials are stored securely using system keychain
License
Apache License 2.0
Related MCP server: Google Workspace MCP Server
日本語
概要
Google Workspace MCP は、AIアシスタント(Claude Code、Claude Desktop など)を Google Workspace API に接続する Model Context Protocol (MCP) サーバーです。
機能
Google カレンダー - イベントの作成・更新・削除、空き時間の検索
Gmail - メールの検索・閲覧・送信、ラベル管理
Google ドライブ - ファイル検索、フォルダ作成、ファイルダウンロード
Google ドキュメント - ドキュメントの作成・閲覧・編集(Markdown対応)
Google スプレッドシート - データの読み取り(テキスト/CSV/JSON形式)
Google スライド - プレゼンテーション内容の読み取り
Google Chat - メッセージ送信、スペース管理
People API - ユーザープロフィール・組織情報の取得
インストール
バイナリをダウンロード
Releases から最新のバイナリをダウンロード:
プラットフォーム | アーキテクチャ | ファイル名 |
macOS | Apple Silicon (M1/M2/M3) |
|
macOS | Intel |
|
Linux | x86_64 |
|
Linux | ARM64 |
|
Windows | x86_64 |
|
# 例: macOS Apple Silicon
curl -L -o workspace-server https://github.com/tomohiro-owada/google-workspace-mcp/releases/latest/download/workspace-server-darwin-arm64
chmod +x workspace-server
sudo mv workspace-server /usr/local/bin/ソースからビルド
git clone https://github.com/tomohiro-owada/google-workspace-mcp.git
cd google-workspace-mcp
go build -o workspace-server ./cmd/workspace-server/設定
Claude Code
~/.claude.json に追加:
{
"mcpServers": {
"google-workspace": {
"command": "/usr/local/bin/workspace-server"
}
}
}Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) に追加:
{
"mcpServers": {
"google-workspace": {
"command": "/usr/local/bin/workspace-server"
}
}
}認証
OAuth 2.0 を使用して Google 認証を行います。初回使用時は認証が必要です:
# 認証状態を確認
auth.status
# ログイン(ブラウザが開きます)
auth.login
# 認証情報をクリア
auth.clearアクセスモード
このサーバーは2つのアクセスモードをサポートしています:
モード | 権限 | セットアップ |
Basic | 読み取り専用 | 不要(デフォルト) |
Full Access | 読み取り + 書き込み + 削除 | カスタムOAuth認証情報が必要 |
Basic モード(デフォルト)
追加設定なしで読み取り専用の権限で動作します。
Full Access モード
書き込み操作(メール送信、ドキュメント作成など)を有効にするには、独自のOAuth認証情報を設定する必要があります。
1. Google Cloud プロジェクトを作成
Google Cloud Console にアクセス
新しいプロジェクトを作成(例:
workspace-mcp)以下のAPIを有効化:
Google Calendar API
Gmail API
Google Drive API
Google Docs API
Google Sheets API
Google Slides API
Google Chat API
People API
2. OAuth 同意画面を設定
APIとサービス > OAuth 同意画面 に移動
ユーザータイプを選択:
内部: Google Workspace 組織向け(組織内の全メンバーが利用可能)
外部: 個人の Gmail アカウント向け(テストユーザーの追加またはGoogle審査が必要)
必須項目を入力(アプリ名、ユーザーサポートメール、デベロッパー連絡先)
スコープを追加(またはスキップ - 実行時に要求されます)
外部の場合: テストユーザーを追加(あなたのGmailアドレス)
3. OAuth 認証情報を作成
APIとサービス > 認証情報 に移動
認証情報を作成 > OAuth クライアント ID をクリック
デスクトップアプリ を選択
クライアントID と クライアントシークレット をコピー
4. MCP サーバーを設定
MCP設定に環境変数を追加:
Claude Code (~/.claude.json):
{
"mcpServers": {
"google-workspace": {
"command": "/usr/local/bin/workspace-server",
"env": {
"GOOGLE_CLIENT_ID": "your-client-id.apps.googleusercontent.com",
"GOOGLE_CLIENT_SECRET": "your-client-secret"
}
}
}
}Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"google-workspace": {
"command": "/usr/local/bin/workspace-server",
"env": {
"GOOGLE_CLIENT_ID": "your-client-id.apps.googleusercontent.com",
"GOOGLE_CLIENT_SECRET": "your-client-secret"
}
}
}
}5. 再認証
設定後、MCPサーバーを再起動し、auth.login を再実行してください。
セキュリティ
このサーバーは AI アシスタントに Google Workspace データの読み取り・変更・削除の権限を付与します。以下の点に注意してください:
AI アシスタントが行うアクションを確認する
信頼できないコンテンツ(不明な送信元からのメール、ドキュメントなど)を処理しない
認証情報はシステムキーチェーンに安全に保存されます
ライセンス
Apache License 2.0
This server cannot be installed
Maintenance
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tomohiro-owada/google-workspace-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server