Google Calendar MCP Server について
Google Calendar MCP Serverは、Google Calendarの予定を管理するMCPツールを提供します。プログラムからカレンダーを操作したいユーザー向けで、期間指定の一覧取得や予定の作成・更新・削除に対応します。
主な機能
- 01期間を指定した予定一覧
- 02参加者付き予定の作成
- 03既存予定の更新
- 04カレンダー予定の削除
活用シーン
- 01指定期間の予定確認
- 02参加者を含む会議の作成
- 03会議の時間や場所の変更
- 04不要になった予定の削除
MCP 対応
このMCPサーバーは、Google Calendar APIの予定検索・管理機能をツールとしてMCPクライアントに公開します。
設定
ローカルサーバーの設定はどのクライアントでも共通です。コピーしてクライアントの MCP 設定ファイルに貼り付けてください。
このサーバーのパッケージやリモートエンドポイントはまだ取得できていません。プロジェクトの README の手順に従ってください。
ツール
ローカルサーバーのツールはマシン上で起動して初めて取得できます。メンテナーはまだツール一覧を提供していません。
詳細
Google Calendar MCP サーバー
Google Calendar API と連携するためのツールを提供する、Model Context Protocol(MCP)サーバーです。このサーバーを使用すると、MCP インターフェースを通じてプログラムからカレンダーの予定を管理できます。
機能
カレンダーツール
list_events:日付範囲で絞り込んで、今後のカレンダーの予定を一覧表示しますcreate_event:参加者を指定して、新しいカレンダーの予定を作成しますupdate_event:既存のカレンダーの予定を更新しますdelete_event:カレンダーの予定を削除します
前提条件
- Node.js:バージョン 14 以上の Node.js をインストールします
- Google Cloud Console の設定:
- Google Cloud Console にアクセスします
- 新しいプロジェクトを作成するか、既存のプロジェクトを選択します
- Google Calendar API を有効にします:
- 「APIs & Services」>「Library」に移動します
- 「Google Calendar API」を検索して有効にします
- OAuth 2.0 の認証情報を設定します:
- 「APIs & Services」>「Credentials」に移動します
- 「Create Credentials」>「OAuth client ID」をクリックします
- 「Web application」を選択します
- 「Authorized redirect URIs」に
http://localhost:3000/codeを追加します - Client ID と Client Secret を控えておきます
セットアップ手順
-
クローンしてインストール:
git clone https://github.com/yourusername/google-calendar-mcp-server.git cd google-calendar-mcp-server npm install -
OAuth 認証情報を作成: ルートディレクトリに
credentials.jsonファイルを作成します:{ "web": { "client_id": "YOUR_CLIENT_ID", "client_secret": "YOUR_CLIENT_SECRET", "redirect_uris": ["http://localhost:3000/code"], "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://oauth2.googleapis.com/token" } } -
リフレッシュトークンを取得:
node get-refresh-token.js次の処理が行われます:
- Google OAuth 認証のためにブラウザーが開きます
- 次の権限が要求されます:
https://www.googleapis.com/auth/calendar
- 認証情報が
token.jsonに保存されます - リフレッシュトークンがコンソールに表示されます
-
MCP 設定: MCP の設定ファイルにサーバー設定を追加します:
- VSCode Claude 拡張機能の場合:
~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json - Claude デスクトップアプリの場合:
~/Library/Application Support/Claude/claude_desktop_config.json
mcpServersオブジェクトに次の内容を追加します:{ "mcpServers": { "google-calendar": { "command": "node", "args": ["/path/to/google-calendar-server/build/index.js"], "env": { "GOOGLE_ACCESS_TOKEN": "your_access_token", } } } } - VSCode Claude 拡張機能の場合:
-
ビルドして実行:
npm run build
使用例
カレンダー操作
-
予定の一覧表示:
{ "maxResults": 10, "timeMin": "2024-01-01T00:00:00Z", "timeMax": "2024-12-31T23:59:59Z" } -
予定の作成:
{ "summary": "Team Meeting", "location": "Conference Room", "description": "Weekly sync-up", "start": "2024-01-24T10:00:00Z", "end": "2024-01-24T11:00:00Z", "attendees": ["[email protected]"] } -
予定の更新:
{ "eventId": "event_id", "summary": "Updated Meeting", "location": "Virtual", "description": "Rescheduled weekly sync-up", "start": "2024-01-25T10:00:00Z", "end": "2024-01-25T11:00:00Z" } -
予定の削除:
{ "eventId": "event_id" }
ライセンス
MIT
コメント
AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。