Google Calendar MCP

v1.2.1
io.github.A1-x-Tech/mcp-google-calendar Checked 3 hours ago Published 3 days ago

MCP server for the Google Calendar API: events, recurrence, invitations, availability, calendars.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

auth_status Google connection status

Shows whether this server is connected to Google: token presence and source (env variables or a stored in-chat login), expiry, the Google account email, granted vs missing OAuth scopes, where the credentials file lives and where the OAuth client comes from. Makes no network calls and never returns the token itself. Call it first when other tools report the server is not connected.

setup_instructions Setup instructions

This server ships with a built-in OAuth client, so connecting normally needs only start_login + finish_login; call this for the details or to switch to your own client. The checklist adapts to the client in use: with the built-in client it is just the two login calls, and it adds the steps for your OWN client — creating a Google Cloud project and a Desktop-app OAuth client, publishing the consent screen (mandatory — Testing-mode refresh tokens die after 7 days), downloading the client JSON and handing its PATH to set_client. Works without any credentials; with your own client already confi…

set_client Save the OAuth client

Saves the OAuth client credentials from the JSON file downloaded from Google Cloud Console ('Download JSON' on a Desktop-app client). Pass the file PATH — the secret must never be pasted into the chat. The client is stored once in the shared ~/.config/mcp-google-auth/client.json (owner-only) and reused by every mcp-google-* server; tokens stay per-server. After this, call start_login.

ParameterTypeDescription
path *stringAbsolute path to the client_secret_*.json file downloaded from Google Cloud Console.

start_login Start the Google login

First step of connecting from the chat, without editing config files or restarting the client. Returns authorizeUrl — show it to the user as a clickable link and ask them to open it in the browser ON THIS MACHINE, pick the Google account and approve access. A one-shot listener on 127.0.0.1 catches Google's redirect; the code is exchanged locally and never passes through the chat. Does not open the browser itself. The attempt lives 10 minutes; when the browser shows the success page, call finish_login.

finish_login Finish the Google login

Second step: waits up to 20 s for the browser consent to finish, saves the tokens to an owner-only file and verifies the login with a read-only identity call, returning the account email and the granted scopes. After success every tool works immediately — no client restart. If the user granted only part of the requested permissions, the login is still saved and missingScopes lists what will not work. Logging in under a different Google account replaces the previous login (its refresh token is revoked best-effort) and the response carries previousAccountEmail so the change never goes unnotice…

logout Disconnect from Google

Revokes the stored token at Google (oauth2.googleapis.com/revoke) and deletes the local credentials file. Tokens supplied via env variables are NOT touched — remove them from the MCP client config manually; envTokenStillSet in the response says whether any are still in effect.

list_calendars List calendars

Lists the calendars on the user's calendar list: id (use it as calendar_id in every other tool), summary, description, timeZone (IANA), accessRole (owner/writer/reader/freeBusyReader — writes need writer or owner), primary:true on the main calendar, and hidden/selected flags. The special id "primary" always addresses the main calendar without listing first. Paginate with page_token from nextPageToken. Calendars shared with the user but never added to their list do not appear here — address them by their explicit id.

ParameterTypeDescription
max_resultsintegerMax calendars per page (1..250; API default 100).
min_access_rolestringOnly calendars where the user has at least this role (e.g. writer to find writable ones).
page_tokenstringnextPageToken from the previous page.
show_hiddenbooleanInclude calendars the user has hidden from their list.

get_calendar Get a calendar

Fetches one calendar-list entry: summary, description, timeZone (the calendar's default IANA zone — use it to interpret event times), accessRole, defaultReminders and primary. Works only for calendars on the user's list; for a shared calendar never added to the list, use raw_request with path calendar/v3/calendars/<id> instead.

ParameterTypeDescription
calendar_id *stringThe calendar id from list_calendars, or "primary" for the authenticated user's main calendar.

list_events List events

Lists events on a calendar: id, summary, start/end (all-day events carry date with an EXCLUSIVE end; timed events carry dateTime), status, attendees with responseStatus, organizer, recurrence, hangoutLink, eventType. time_min/time_max bound the window (an event overlapping the window is included). single_events=true expands recurring events into individual instances — required for order_by=start_time and the right choice for questions like "what is on my calendar this week"; without it recurring events appear once as the series master. time_zone only changes how times are RENDERED in the res…

ParameterTypeDescription
calendar_id *stringThe calendar id from list_calendars, or "primary" for the authenticated user's main calendar.
event_typesarrayOnly these event types (e.g. ["out_of_office"] to see OOO blocks).
max_resultsintegerMax events per page (1..2500; API default 250).
order_bystringSort order; start_time works only with single_events=true. Default is unspecified order.
page_tokenstringnextPageToken from the previous page.
qstringFree-text search over summary, description, location and attendees.
show_deletedbooleanInclude cancelled events (status=cancelled).
single_eventsbooleanExpand recurring events into instances (required for order_by=start_time).
time_maxstringOnly events starting before this RFC3339 moment (window upper bound, exclusive).
time_minstringOnly events ending at/after this RFC3339 moment (window lower bound).
time_zonestringIANA zone the response times are rendered in (defaults to the calendar's zone).
updated_minstringOnly events modified after this RFC3339 moment — for incremental polling; too-old values return HTTP 410.

get_event Get an event

Fetches one event by id: summary, description, location, start/end, attendees with their responseStatus (accepted/declined/tentative/needsAction), organizer, recurrence rules, recurringEventId (present on instances of a series), conferenceData/hangoutLink (Google Meet), reminders, visibility, transparency and eventType. Works for a series master and for an individual instance id alike.

ParameterTypeDescription
calendar_id *stringThe calendar id from list_calendars, or "primary" for the authenticated user's main calendar.
event_id *stringThe event id from list_events or create_event output. A recurring-instance id (masterId_20260101T100000Z from list_event_instances) addresses one occurrence.
time_zonestringIANA zone the response times are rendered in.

create_event Create an event

Creates an event and returns it (id, htmlLink, start/end, attendees, hangoutLink when add_meet). Times: EITHER start_date_time + end_date_time (RFC3339; add time_zone for recurring events) OR start_date + end_date for all-day (end_date is EXCLUSIVE — the day after the last day). recurrence makes it a recurring series. attendees invites guests — but the API sends invitation emails ONLY with send_updates=all (the default notifies nobody). add_meet attaches a Google Meet link (may come back status=pending — re-run get_event for the final URL). This is a plain calendar write: it does not che…

ParameterTypeDescription
calendar_id *stringThe calendar id from list_calendars, or "primary" for the authenticated user's main calendar.
summary *stringEvent title.
add_meetbooleanAttach a Google Meet conference. The returned conferenceData may be status=pending — re-run get_event for the final Meet link.
attendeesarrayGuest list. On update this REPLACES the whole list — fetch the event first and send the complete new list. Invitation emails go out only with send_updates=all.
color_idstringEvent color id ("1".."11"; the palette is fixed by Google).
descriptionstringEvent description (plain text or simple HTML).
end_datestringAll-day event end date, EXCLUSIVE — the day after the last day (a one-day event on the 5th ends on the 6th).
end_date_timestringTimed event end, RFC3339. Pair with start_date_time.
guests_can_invite_othersbooleanWhether guests may invite more people.
guests_can_modifybooleanWhether guests may edit the event.
guests_can_see_other_guestsbooleanWhether guests can see the guest list.
locationstringFree-form location, e.g. a room name or address.
recurrencearrayRRULE/RDATE/EXRULE/EXDATE lines (RFC 5545) making the event recurring, e.g. ["RRULE:FREQ=WEEKLY;BYDAY=MO,WE"]. Requires the timed pair plus time_zone.
remindersarrayCustom reminders (max 5). Setting this turns default reminders off for the event.
send_updatesstringWho receives an email about this change: all guests, only guests outside your organization, or nobody. Defaults to none — attendees are NOT notified unless you pass all.
start_datestringAll-day event start date (YYYY-MM-DD). Pair with end_date.
start_date_timestringTimed event start, RFC3339 (e.g. 2026-09-01T10:00:00+02:00 or ...Z). Pair with end_date_time.
time_zonestringIANA time zone for start/end (e.g. "Europe/Berlin"). REQUIRED for recurring events; otherwise optional when the RFC3339 offsets already say everything.
transparencystringopaque = the event blocks time in free/busy (default); transparent = it does not (shows as free).
use_default_remindersbooleanUse the calendar's default reminders (ignored when reminders[] is given).
visibilitystringWho can see event details on a shared calendar.

update_event Update an event

Partially updates an event (PATCH): only the provided fields change, but a provided nested object REPLACES its predecessor wholesale — attendees replaces the entire guest list (get_event first, send the complete new list), reminders replaces all overrides, and a time change should carry BOTH the new start and end (start_date_time + end_date_time, or start_date + end_date). To reschedule one occurrence of a recurring series, pass that instance's id (from list_event_instances) as event_id; passing the series master id changes every occurrence. Guests hear about the change only with send_update…

ParameterTypeDescription
calendar_id *stringThe calendar id from list_calendars, or "primary" for the authenticated user's main calendar.
event_id *stringThe event id from list_events or create_event output. A recurring-instance id (masterId_20260101T100000Z from list_event_instances) addresses one occurrence.
add_meetbooleanAttach a Google Meet conference. The returned conferenceData may be status=pending — re-run get_event for the final Meet link.
attendeesarrayGuest list. On update this REPLACES the whole list — fetch the event first and send the complete new list. Invitation emails go out only with send_updates=all.
color_idstringEvent color id ("1".."11"; the palette is fixed by Google).
descriptionstringEvent description (plain text or simple HTML).
end_datestringAll-day event end date, EXCLUSIVE — the day after the last day (a one-day event on the 5th ends on the 6th).
end_date_timestringTimed event end, RFC3339. Pair with start_date_time.
guests_can_invite_othersbooleanWhether guests may invite more people.
guests_can_modifybooleanWhether guests may edit the event.
guests_can_see_other_guestsbooleanWhether guests can see the guest list.
locationstringFree-form location, e.g. a room name or address.
recurrencearrayRRULE/RDATE/EXRULE/EXDATE lines (RFC 5545) making the event recurring, e.g. ["RRULE:FREQ=WEEKLY;BYDAY=MO,WE"]. Requires the timed pair plus time_zone.
remindersarrayCustom reminders (max 5). Setting this turns default reminders off for the event.
send_updatesstringWho receives an email about this change: all guests, only guests outside your organization, or nobody. Defaults to none — attendees are NOT notified unless you pass all.
start_datestringAll-day event start date (YYYY-MM-DD). Pair with end_date.
start_date_timestringTimed event start, RFC3339 (e.g. 2026-09-01T10:00:00+02:00 or ...Z). Pair with end_date_time.
summarystringNew event title.
time_zonestringIANA time zone for start/end (e.g. "Europe/Berlin"). REQUIRED for recurring events; otherwise optional when the RFC3339 offsets already say everything.
transparencystringopaque = the event blocks time in free/busy (default); transparent = it does not (shows as free).
use_default_remindersbooleanUse the calendar's default reminders (ignored when reminders[] is given).
visibilitystringWho can see event details on a shared calendar.

delete_event Delete an event

Deletes (cancels) an event — there is no undelete. Deleting a series master id cancels the ENTIRE recurring series; deleting one instance id (from list_event_instances) cancels only that occurrence. On an event with guests this cancels the meeting for everyone, but cancellation emails go out only with send_updates=all. Returns {deleted:true}.

ParameterTypeDescription
calendar_id *stringThe calendar id from list_calendars, or "primary" for the authenticated user's main calendar.
event_id *stringThe event id from list_events or create_event output. A recurring-instance id (masterId_20260101T100000Z from list_event_instances) addresses one occurrence.
send_updatesstringWho receives an email about this change: all guests, only guests outside your organization, or nobody. Defaults to none — attendees are NOT notified unless you pass all.

move_event Move an event to another calendar

Moves an event to a different calendar (changes its organizer calendar; the event id stays the same). Rescheduling to another TIME is update_event, not this. Only regular events can move — Out of Office, Focus Time, working-location and birthday events cannot, and events with attendees can be moved only by their organizer. Needs writer access to both calendars. send_updates=all notifies the guests.

ParameterTypeDescription
calendar_id *stringThe calendar id from list_calendars, or "primary" for the authenticated user's main calendar.
destination_calendar_id *stringThe calendar id the event moves to (from list_calendars).
event_id *stringThe event id from list_events or create_event output. A recurring-instance id (masterId_20260101T100000Z from list_event_instances) addresses one occurrence.
send_updatesstringWho receives an email about this change: all guests, only guests outside your organization, or nobody. Defaults to none — attendees are NOT notified unless you pass all.

list_event_instances List instances of a recurring event

Expands one recurring event (the series master id) into its individual instances, each with its own id (like masterId_20260901T100000Z) and concrete start/end. Use an instance id with update_event to reschedule a single occurrence, or with delete_event to cancel just that one; exceptions already made to the series show their changed times here. show_deleted=true includes cancelled occurrences. Bound the window with time_min/time_max — an unbounded infinite series is paginated via page_token.

ParameterTypeDescription
calendar_id *stringThe calendar id from list_calendars, or "primary" for the authenticated user's main calendar.
event_id *stringThe recurring series master id (from list_events without single_events).
max_resultsintegerMax instances per page (1..2500).
page_tokenstringnextPageToken from the previous page.
show_deletedbooleanInclude cancelled instances (status=cancelled).
time_maxstringOnly instances starting before this RFC3339 moment.
time_minstringOnly instances ending at/after this RFC3339 moment.
time_zonestringIANA zone the response times are rendered in.

query_free_busy Query free/busy times

Returns the busy intervals of up to 50 calendars in one time window — the way to find a common free slot before create_event. Input calendar ids (or attendee email addresses, which double as their primary-calendar ids — subject to their sharing settings). The response maps each calendar id to busy:[{start,end}] ranges; gaps between them are free. Only busy blocks come back — never event titles or details — and events marked transparent (free) don't appear. A calendar the user cannot read shows up under errors, not busy. This is a pure read despite being an HTTP POST.

ParameterTypeDescription
calendar_ids *arrayCalendar ids to check (1..50) — "primary", calendar ids from list_calendars, or attendee emails.
time_max *stringWindow end, RFC3339.
time_min *stringWindow start, RFC3339.
time_zonestringIANA zone the busy times are rendered in (default UTC).

create_out_of_office Create an Out of Office block

Creates an Out of Office event that can auto-decline meeting invitations while it lasts (auto_decline: all overlapping meetings, or only new invitations; decline_message customizes the reply). ONLY works on the PRIMARY calendar of a Google Workspace account — consumer Gmail and secondary calendars get HTTP 400. Always timed (start/end date_time), never all-day. Manage it afterwards like any event: update_event to change it, delete_event to remove it, list_events with event_types=["out_of_office"] to find existing blocks. Not retried after an ambiguous failure — check list_events before re-…

ParameterTypeDescription
end_date_time *stringBlock end, RFC3339.
start_date_time *stringBlock start, RFC3339 (these blocks are always timed, never all-day).
auto_declinestringWhich conflicting meeting invitations Calendar auto-declines: none, all overlapping ones, or only new ones arriving after the block is created (existing meetings survive).
calendar_idstringThe calendar id from list_calendars, or "primary" for the authenticated user's main calendar.
decline_messagestringMessage sent with each auto-declined invitation.
send_updatesstringWho receives an email about this change: all guests, only guests outside your organization, or nobody. Defaults to none — attendees are NOT notified unless you pass all.
summarystringTitle (defaults to "Out of office").
time_zonestringIANA time zone name, e.g. "Europe/Berlin" or "America/New_York".

create_focus_time Create a Focus Time block

Creates a Focus Time event: blocks the slot, can auto-decline conflicting invitations (auto_decline + decline_message) and can flip Google Chat to Do Not Disturb (chat_status). ONLY works on the PRIMARY calendar of a Google Workspace account — consumer Gmail and secondary calendars get HTTP 400. Always timed (start/end date_time), never all-day. Manage it afterwards like any event: update_event / delete_event, and list_events with event_types=["focus_time"] to find existing blocks. Not retried after an ambiguous failure — check list_events before re-sending.

ParameterTypeDescription
end_date_time *stringBlock end, RFC3339.
start_date_time *stringBlock start, RFC3339 (these blocks are always timed, never all-day).
auto_declinestringWhich conflicting meeting invitations Calendar auto-declines: none, all overlapping ones, or only new ones arriving after the block is created (existing meetings survive).
calendar_idstringThe calendar id from list_calendars, or "primary" for the authenticated user's main calendar.
chat_statusstringGoogle Chat presence during the block.
decline_messagestringMessage sent with each auto-declined invitation.
send_updatesstringWho receives an email about this change: all guests, only guests outside your organization, or nobody. Defaults to none — attendees are NOT notified unless you pass all.
summarystringTitle (defaults to "Focus time").
time_zonestringIANA time zone name, e.g. "Europe/Berlin" or "America/New_York".

raw_request Raw Google Calendar API call

Escape hatch to call any Google Calendar API v3 path directly, for requests the typed tools don't cover — e.g. events.quickAdd ("calendar/v3/calendars/primary/events/quickAdd?text=Lunch tomorrow noon", POST), the colors palette ("calendar/v3/colors"), ACL rules, secondary-calendar creation ("calendar/v3/calendars", POST), removing a Meet conference (PATCH with {"conferenceData":null} and ?conferenceDataVersion=1), watch channels, or an event PUT that replaces every field. The path is relative to https://www.googleapis.com, must stay under calendar/v3/ (other Google APIs on this host — driv…

ParameterTypeDescription
path *stringAPI path relative to https://www.googleapis.com, starting with "calendar/v3/", e.g. "calendar/v3/calendars/primary/events".
bodyobjectJSON request body (POST/PUT/PATCH only).
methodstringHTTP method. Defaults to GET.