Google カレンダー MCP サーバー
モデル コンテキスト プロトコル (MCP) を使用して、Claude Desktop から Google カレンダーを操作します。
これは、Googleカレンダーとの連携を実装したTypeScriptベースのMCPサーバーです。MCPのコアコンセプトを実証しながら、以下の機能を提供します。
- MCP URI によるカレンダーイベント管理
- イベントを作成および変更するためのツール
- カレンダーの分析情報を生成するためのプロンプト
特徴
リソース
- MCP URI 経由でカレンダー イベントにアクセスする
- 各イベントにはタイトル、時間、説明、参加者が登録されています
- 適切なMIMEタイプで構造化されたイベントデータ
ツール
create_event
- 新しいカレンダーイベントを作成する- タイトル、時間、その他のイベントの詳細をパラメータとして受け取ります
- Google カレンダー API と直接インターフェースします
list_events
- 今後のカレンダーイベントを表示する- [実装した他のツールを追加]
プロンプト
analyze_schedule
- カレンダーに関する洞察を生成する- 今後のイベントを埋め込みリソースとして含める
- LLM分析のための構造化されたプロンプトを返します
- [実装した他のプロンプトを追加]
前提条件
- Node.js (v14以上)
- カレンダー API が有効になっている Google Cloud プロジェクト
- OAuth 2.0 クライアント資格情報
発達
devbox.shの指示に従ってdevboxをインストールします。
プロジェクト ディレクトリで devbox を初期化します。
devbox シェルを起動します。
依存関係をインストールします:
サーバーを構築します。
自動リビルドを使用した開発の場合:
インストール
Claude Desktop で使用するには、サーバー設定を追加します。
MacOS の場合: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows の場合: %APPDATA%/Claude/claude_desktop_config.json
初回セットアップ
- Google Cloud の認証情報を設定します。
- Google Cloud Consoleに移動
- 新しいプロジェクトを作成するか、既存のプロジェクトを選択してください
- GoogleカレンダーAPIを有効にする
- OAuth 2.0 認証情報を作成する (デスクトップ アプリケーション タイプ)
- クライアントシークレットJSONファイルをダウンロードする
- 名前を
.client_secret.json
に変更し、プロジェクトルートに配置します。
- 初期認証:
- サーバーを初めて起動すると、認証URLが提供されます。
- ブラウザでURLにアクセスしてください
- 要求された権限を付与する
- 提供された認証コードをコピーします
- コードをCLIプロンプトに貼り付けます
デバッグ
MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。パッケージスクリプトとして提供されているMCP Inspectorの使用をお勧めします。
インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
モデル コンテキスト プロトコルを使用して Claude Desktop 経由で Google カレンダーとやり取りし、カレンダー イベントの管理とスケジュール分析が可能になります。
Related Resources
Related MCP Servers
- -securityAlicense-qualityServer for Google Calendar integration in Cluade Desktop with auto authentication support. This server enables AI assistants to manage Google Calendar events through natural language interactions.Last updated -226JavaScriptMIT License
- -securityAlicense-qualityEnables comprehensive calendar management with capabilities to create, list, update, and delete events through a Model Context Protocol server integrated with Google Calendar.Last updated -131TypeScriptMIT License
- -securityFlicense-qualityModel Context Protocol server that provides seamless access to Google Calendar API with asynchronous operation support, enabling efficient calendar management through a standardized interface.Last updated -Python
- -securityAlicense-qualityA Model Context Protocol server that integrates Google Calendar with Claude Desktop, enabling users to manage calendar events (view, create, update, delete) through natural language.Last updated -13321TypeScriptMIT License