Google Workspace MCP Server
Enables access to Google Workspace services (Calendar, Gmail, Drive, Tasks) via an MCP server deployed on Vercel.
README
Google Workspace MCP Server
Google Workspace(Calendar, Gmail, Drive, Tasks)にアクセスするための MCP サーバーです。 Vercel にデプロイして使用します。
機能
Calendar
google_calendar_list_events- イベント一覧取得google_calendar_get_event- イベント詳細取得google_calendar_create_event- イベント作成google_calendar_update_event- イベント更新google_calendar_delete_event- イベント削除google_calendar_list_calendars- カレンダー一覧取得
Gmail
google_gmail_search- メール検索google_gmail_get_message- メール詳細取得google_gmail_send- メール送信google_gmail_list_labels- ラベル一覧google_gmail_modify_labels- ラベル変更
Drive
google_drive_list- ファイル一覧google_drive_search- ファイル検索google_drive_get_file- ファイル詳細取得google_drive_get_content- ファイル内容取得
Tasks
google_tasks_list_tasklists- タスクリスト一覧google_tasks_list- タスク一覧google_tasks_create- タスク作成google_tasks_update- タスク更新google_tasks_complete- タスク完了google_tasks_delete- タスク削除
セットアップ
1. Google Cloud Console でサービスアカウントを作成
- Google Cloud Console にアクセス
- プロジェクトを選択(または新規作成)
- IAM と管理 > サービスアカウント を開く
- サービスアカウントを作成 をクリック
- 名前を入力して作成
- キー タブで 鍵を追加 > 新しい鍵を作成 > JSON を選択
- JSON ファイルがダウンロードされる
2. ドメイン全体の委任を設定
サービスアカウントでユーザーのデータにアクセスするには、ドメイン全体の委任が必要です。
-
Google Cloud Console で、作成したサービスアカウントを開く
-
詳細設定を表示 をクリック
-
ドメイン全体の委任 を有効化
-
一意の ID(クライアント ID)をコピー
-
Google Admin Console にアクセス
-
セキュリティ > アクセスとデータ管理 > API の制御 を開く
-
ドメイン全体の委任 > API クライアントを管理 をクリック
-
新しいクライアントを追加
- クライアント ID: 上でコピーした ID
- OAuth スコープ(カンマ区切り):
https://www.googleapis.com/auth/calendar,https://www.googleapis.com/auth/gmail.modify,https://www.googleapis.com/auth/gmail.send,https://www.googleapis.com/auth/drive.readonly,https://www.googleapis.com/auth/tasks
3. Vercel にデプロイ
# リポジトリをクローン
cd /Users/shogohayashi/dev/google-workspace-mcp
# 依存関係をインストール
npm install
# Vercel にデプロイ
vercel
# 本番デプロイ
vercel --prod
4. 環境変数を設定
Vercel ダッシュボードで以下の環境変数を設定:
| 変数名 | 説明 |
|---|---|
GOOGLE_SERVICE_ACCOUNT_KEY |
サービスアカウントの JSON キー(1行に整形) |
GOOGLE_DELEGATED_USER |
委任先ユーザーのメールアドレス(例: hayashi@nocall.ai) |
MCP_AUTH_TOKEN |
MCP 認証トークン(任意の文字列) |
GOOGLE_SERVICE_ACCOUNT_KEY の設定方法:
# JSON を 1 行に変換
cat service-account-key.json | jq -c .
出力された文字列を環境変数に設定してください。
5. mcp.json に追加
{
"mcpServers": {
"google-workspace": {
"url": "https://google-workspace-mcp.vercel.app/mcp",
"headers": {
"Authorization": "Bearer ${GOOGLE_WORKSPACE_MCP_AUTH_TOKEN}"
}
}
}
}
使用例
カレンダーの予定を取得
今日の予定を教えて
メールを検索
過去7日間の未読メールを確認して
タスクを作成
「レポート作成」というタスクを追加して、期限は明日
ライセンス
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.