DC

deciduus/calendar-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

28 stars 18 forks 品質 76 トレンド 8NOASSERTION

Google カレンダー MCP サーバー: LLM エージェントの 23 ツール。 uvx カレンダー-mcp-server をインストールします.

概要

LLM クライアントが Google カレンダーにアクセスして読み書きする MCP サーバー。 これは、デフォルトでstdioとして実行されます, HTTPをストリーミング可能 - そして、構造化された出力で23ツールを公開します: カレンダーやイベントのリストと検索, 作成, 更新, 移動, イベントへのRSVPingと削除, 無料の/busyのクエリ, 忙しい分析, 再帰的な投影, 相互スロットを見つけ、それを予約. それの上に、それはあなたの労働時間を知っているスケジューリング脳を持っています:フォーカス時間を見つけ、予約し、一度に複数のアカウントを渡るダブルブックを検出し、会議のためのより良い時間を提案し、あなたの週が実際に行った監査. 認証は、Google OAuth 2.0 (Desktop app flow) です。トークンは、アカウントごとにローカルにキャッシュされ、自動的に更新されます。 木曜日の作業時間 09:00–17:00 UTC、11:00–12:00 の 1 つの会議、ランチまたはバッファなし、60 分の最小フォーカスブロック。 「2026年1月1日の焦点時間6時間」.

概要(AI 翻訳)

LLM クライアントが Google カレンダーにアクセスして読み書きする MCP サーバー。 これは、デフォルトでstdioとして実行されます, HTTPをストリーミング可能 - そして、構造化された出力で23ツールを公開します: カレンダーやイベントのリストと検索, 作成, 更新, 移動, イベントへのRSVPingと削除, 無料の/busyのクエリ, 忙しい分析, 再帰的な投影, 相互スロットを見つけ、それを予約. それの上に、それはあなたの労働時間を知っているスケジューリング脳を持っています:フォーカス時間を見つけ、予約し、一度に複数のアカウントを渡るダブルブックを検出し、会議のためのより良い時間を提案し、あなたの週が実際に行った監査. 認証は、Google OAuth 2.0 (Desktop app flow) です。トークンは、アカウントごとにローカルにキャッシュされ、自動的に更新されます。

カレンダータスク、終了まで

合成例、オフラインテストでバックアップ、実際のカレンダーデータやライブ予約なし 木曜日の作業時間 09:00–17:00 UTC、11:00–12:00 の 1 つの会議、 ランチやバッファなし、60分の最小フォーカスブロック。

「2026年1月1日の焦点時間6時間」 ブロックを最初に表示します。

MCP クライアントは、

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

calendar-mcp

An MCP server that gives an LLM client read and write access to your Google Calendar. It runs as a single process — stdio by default, streamable HTTP optionally — and exposes 23 tools with structured output: listing and searching calendars and events, creating, updating, moving, RSVPing to and deleting events, free/busy queries, busyness analysis, recurring-event projection, and finding a mutual slot and booking it. On top of that it has a scheduling brain that knows your working hours: finding and booking focus time, detecting double-bookings across several accounts at once, proposing better times for a meeting, and auditing where your week actually went. Authentication is Google OAuth 2.0 (Desktop app flow); tokens are cached locally, per account, and refreshed automatically.

A calendar task, end to end

Synthetic example, backed by offline tests; no real calendar data or live booking. Assume Thursday working hours of 09:00–17:00 UTC, one meeting at 11:00–12:00, no lunch or buffer, and a 60-minute minimum focus block.

“Find six hours of focus time on January 1, 2026. Show me the blocks first.”

An MCP client can call:

{
  "tool": "block_focus_time",
  "arguments": {
    "time_min": "2026-01-01T00:00:00Z",
    "time_max": "2026-01-02T00:00:00Z",
    "hours_needed": 6,
    "dry_run": true
  }
}

The preview selects 09:00–10:00 and 12:00–17:00: six hours, with the last selected block trimmed to the remaining hour. Both events have created: false. After the user approves the times, the client can call with dry_run: false; availability is read again before creating events. A preview does not reserve a slot.

Design decision: unknown availability is not free time. If a checked calendar returns an access error, disappears from the response, or has unreadable busy intervals, focus search and booking return an error before writing anything. The same check protects mutual scheduling and reschedule suggestions/application. For example, a notFound response for [email protected] becomes:

Availability is unknown: [email protected]: notFound. No scheduling changes were made.
Restore calendar access or retry the query.

Reproduce the preview and the safety regression without Google credentials (after the development install):

pytest -q tests/test_scheduling.py -k 'focus_time_dry_run or focus_refuses_unknown'

The regression verifies that partial, missing and errored availability never calls create_event, in both preview and booking modes. Successful empty busy lists still mean genuinely free time. Availability checks and writes are separate Google API calls, so another client can still book a competing event between them.

Quick start

GitHub で README 全文を見る

インストール

uvx calendar-mcp-server
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "calendar": { "command": "uvx", "args": ["calendar-mcp-server"], "env": { "GOOGLE_CLIENT_ID": "...", "GOOGLE_CLIENT_SECRET": "...", "TOKEN_FILE_PATH": "/absolute/path/to/.gcp-saved-tokens.json" } } } }