Agent-Native Calendar
Agent-Native Google Calendar - manage events, sync, and public booking
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Google Calendar for LLM agents: find, create, update, move, delete events; free/busy; scheduling.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, TOKEN_FILE_PATHค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"calendar": {
"command": "uvx",
"args": [
"calendar-mcp-server"
],
"env": {
"GOOGLE_CLIENT_ID": "ใส่ค่าของคุณ",
"GOOGLE_CLIENT_SECRET": "ใส่ค่าของคุณ",
"TOKEN_FILE_PATH": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add calendar --env GOOGLE_CLIENT_ID='ใส่ค่าของคุณ' --env GOOGLE_CLIENT_SECRET='ใส่ค่าของคุณ' --env TOKEN_FILE_PATH='ใส่ค่าของคุณ' -- uvx calendar-mcp-serverเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"calendar": {
"command": "uvx",
"args": [
"calendar-mcp-server"
],
"env": {
"GOOGLE_CLIENT_ID": "ใส่ค่าของคุณ",
"GOOGLE_CLIENT_SECRET": "ใส่ค่าของคุณ",
"TOKEN_FILE_PATH": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"calendar": {
"type": "stdio",
"command": "uvx",
"args": [
"calendar-mcp-server"
],
"env": {
"GOOGLE_CLIENT_ID": "ใส่ค่าของคุณ",
"GOOGLE_CLIENT_SECRET": "ใส่ค่าของคุณ",
"TOKEN_FILE_PATH": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
TOKEN_FILE_PATH envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub deciduus ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (1.0.1) เข้า registry 2 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
ในหมวดเดียวกันมี Agent-Native Calendar, Excel MCP Server, MCP Server for Excel
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
Agent-Native Google Calendar - manage events, sync, and public booking
ให้ AI สร้างและแก้ไฟล์ Excel ได้เอง ทั้งสูตร กราฟ และ PivotTable โดยไม่ต้องมีโปรแกรม Excel ในเครื่อง
Excel automation for AI - Sheets, Power Query, DAX, VBA, Tables, Ranges and more. Windows only.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
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.
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 work@example.com becomes:
Availability is unknown: work@example.com: 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.
1. Create Google OAuth credentials. In the Google Cloud console, enable the Google Calendar API, then create an OAuth client ID of type Desktop app. Copy the client ID and secret. (Details in Google Cloud setup.)
2. Set them in your environment, or in a .env file in the directory you run from (see example.env):
GOOGLE_CLIENT_ID='...'
GOOGLE_CLIENT_SECRET='...'
3. Sign in once, then add the server to your client:
uvx calendar-mcp-server auth
This opens a browser and saves a token in the config directory (see Accounts); if you already have a .gcp-saved-tokens.json or set TOKEN_FILE_PATH, that file is used instead. Verify it with calendar-mcp check. Add more Google accounts with calendar-mcp auth --account work. After that the server runs non-interactively — it never opens a browser on its own unless you set CALENDAR_MCP_ALLOW_BROWSER_AUTH=1.
The PyPI distribution is
calendar-mcp-server. It installs two identical console scripts,calendar-mcpandcalendar-mcp-server, souvx calendar-mcp-serverand a localcalendar-mcpare the same command.
Claude Code
claude mcp add calendar \
--env GOOGLE_CLIENT_ID=... \ --env GOOGLE_CLIENT_SECRET=... \ -- uvx calendar-mcp-server
Claude Desktop — claude_desktop_config.json:
{
"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" } } } }
Cursor — .cursor/mcp.json (project) or ~/.cursor/mcp.json (global): same mcpServers block as above.
Any other client that speaks the standard mcpServers JSON takes the same entry. TOKEN_FILE_PATH is optional now that tokens default to the OS config directory, which does not depend on the working directory the client picks — but if you do set it, make it an absolute path.
calendar-mcp --transport http --host 127.0.0.1 --port 8000
The MCP endpoint is then http://127.0.0.1:8000/mcp (change the path with --path).
There is no authentication layer on the HTTP transport yet. Anyone who can reach the endpoint gets full access to the calendar the saved token belongs to. Bind it to loopback, or expose it only behind a trusted reverse proxy that authenticates, or on a private network such as a tailnet. Do not put it on a public interface.
Read-only tools never change anything. "Writes" tools create or modify events; delete_event is the only one that destroys data.
Calendars and events
| Tool | Description | |
|---|---|---|
list_calendars | read | List the calendars the user can see, with IDs and timezones. |
find_events | read | Search a calendar for events, expanding recurring series into instances. |
check_attendee_status | read | Report who accepted, declined or has not answered an invitation. |
query_free_busy | read | Busy intervals for one or more calendars, without event details. |
analyze_busyness | read | Per-day event count and total scheduled minutes over a range. |
project_recurring_events | read | Compute future occurrences from recurrence rules. |
create_calendar | writes | Create a new secondary calendar. |
create_event | writes | Create an event with explicit start/end times and optional attendees. |
quick_add_event | writes | Create an event from a plain-English phrase, parsed by Google. |
update_event | writes | Change fields on an event; omitted fields are left untouched. |
move_event | writes | Reschedule an event, and/or move it to another calendar. |
add_attendee | writes | Invite one or more people to an existing event. |
respond_to_event | writes | Set your own RSVP (accepted/declined/tentative/needsAction). |
schedule_mutual | writes | Find the first slot where everyone is free, then book it. |
| `delete_event` | destroys | Permanently delete an event. Asks the client to confirm via elicitation when supported. |
Scheduling brain — these read your saved preferences (working hours, lunch, buffer, minimum focus block).
| Tool | Description | |
|---|---|---|
find_focus_time | read | Uninterrupted blocks in a window that could be used for deep work, longest first. |
detect_conflicts | read | Double-bookings and too-tight transitions, across every signed-in account at once. |
time_audit | read | Where the time went: meeting hours, by size, domain, recurrence and person. |
suggest_reschedule | writes *(opt-in)* | Ranked better times for an existing meeting. Suggests only, unless apply: true. |
block_focus_time | writes | Book the best free blocks as focus time. dry_run: true to preview. |
Local configuration — no Google call, no account argument.
| Tool | Description | |
|---|---|---|
list_accounts | read | The accounts you have signed in, and which is the default. |
get_preferences | read | Working hours, lunch, buffer, minimum focus block, focus calendar. |
set_preferences | writes | Update and save those preferences. Local file only. |
Every calendar tool takes an optional trailing account argument (detect_conflicts takes accounts, a list, because checking several at once is the point). All times are ISO 8601 strings — a naive timestamp is interpreted in the target calendar's own timezone.
The five scheduling tools share one idea: your calendar is not the same as your availability. They start from your working hours, subtract lunch, subtract what is already booked, and subtract the buffer you want around meetings — then reason about what is left.
Prompts that exercise them:
find_focus_time reports what exists; block_focus_time defends it by creating events (busy, reminders off, nobody notified), trimming the last block so it books exactly the hours you asked for rather than a whole afternoon. detect_conflicts separates genuine overlaps from *tight* transitions that merely break your buffer, and ignores events you declined, events marked free, and (by default) all-day entries. suggest_reschedule keeps the meeting's duration, ranks candidate slots by fewest attendee conflicts and prefers the event's current day, and moves nothing unless you pass apply: true.
time_audit answers "how much of my week is meetings?" in one pass, grouped by day or week:
2026-08-01 .. 2026-09-01, Europe/Berlin, grouped by week
Meetings: 41.5 h across 63 meetings Working hours: 152.0 h available (lunch removed) In working hours: 38.0 h -> 25% of the week Busiest week: 2026-W34, 14.0 h Heaviest day: 2026-08-20, 6.5 h By size: 1:1 18.0 h | small 15.5 h | large 8.0 h By recurrence: recurring 26.0 h | one-off 15.5 h Top people: a.schmidt@example.com 9.0 h | j.lee@example.com 7.5 h
Declined meetings, events marked free and all-day entries are left out by default; include_declined and include_all_day bring them back.
dry_run: true to see the exact blocks it would book before anything is written. The destination calendar is always included in the availability check.calendar_ids / check_calendar_ids in that case.apply is false and has to be set explicitly, once the user has agreed to a time.update_event leaves fields you omit untouched.You can sign in more than one Google account and pick between them per call.
calendar-mcp auth # the default account
calendar-mcp auth --account work # a second, named account calendar-mcp accounts
ตัดมาแค่ช่วงต้น อ่านต่อใน repo