Skip to main content
Glama

Google Calendar MCP

English | Русский

npm Glama CI License: MIT

A1 Google Calendar MCP lets an AI app manage Google Calendar in plain language. Review your week, schedule a meeting with guests and a Google Meet link, reschedule or cancel it, find a slot when everyone is free, and block Out of Office or Focus Time.

It uses the Google Calendar API with your Google account. It distinguishes a whole recurring series from a single occurrence and makes the limits of the Calendar API explicit instead of implying that every calendar task is possible.

  • 19 tools. Inspect calendars, events and free/busy, create and edit events, expand recurring series, and block Out of Office and Focus Time — plus six for connecting your Google account.

  • Sign in from the chat. No credentials file to hand-write: ask the assistant to connect, approve access in the browser, and the very next request works — no restart. The client secret travels as a file path, never through the conversation.

  • Nobody is emailed by accident. The Calendar API's default for invitations, changes and cancellations is silence; guests get email only when you ask for it via send_updates.

  • Writes are never replayed. After an ambiguous failure the server does not retry a write — a duplicated event could re-email every guest.

  • Minimal Google scopes. It uses calendar.events and calendar.readonly, without the broad calendar scope.

Start with a read-only question:

What's on my calendar this week? Point out any overlapping meetings.

Connect the server · Explore use cases · Open technical documentation


See it work in a minute

You: What does my Thursday look like, and when are Anna and I both free?

Assistant: Shows Thursday's events and the free slots you share. Nothing changes.

You: Book a 45-minute design review with Anna in the first shared slot, with a Google Meet link.

Assistant: Shows the proposed time, guest list and Meet link, then asks for confirmation before creating the event.

You: Confirm.

Assistant: Creates the event. Nobody gets an email unless you ask it to send invitations.

Related MCP server: Calendar MCP Server

Contents

Quick start

You need Node.js 20+ and a Google account. Credentials are not required at install time — the server connects from the conversation.

  1. Add the server to your AI app.

  2. Say "connect Google Calendar": the assistant gives you a Google sign-in link — no Google Cloud project or OAuth client to create.

  3. Ask the read-only question above.

In the app: open Settings → MCP servers, select Add server, choose STDIO, enter the command npx -y @a1-x-tech/mcp-google-calendar@latest, then select Save and Restart.

From the command line:

codex mcp add google-calendar \
  -- npx -y @a1-x-tech/mcp-google-calendar@latest
codex mcp list

Codex MCP documentation

claude mcp add \
  --transport stdio --scope user google-calendar \
  -- npx -y @a1-x-tech/mcp-google-calendar@latest
claude mcp list

Claude Code MCP documentation

The current official path is Settings → Extensions. For a custom desktop extension, open Advanced settings → Extension Developer → Install Extension…, select a .mcpb file and follow the prompts.

This repository currently publishes an npm stdio package and does not contain a .mcpb bundle. For Claude Desktop builds that still support local configuration, use the following JSON stdio configuration as a fallback:

{
  "mcpServers": {
    "google-calendar": {
      "command": "npx",
      "args": ["-y", "@a1-x-tech/mcp-google-calendar@latest"]
    }
  }
}

In those builds, save it to ~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows.

Claude Desktop MCP documentation

Add this to ~/.cursor/mcp.json on macOS/Linux or %USERPROFILE%\.cursor\mcp.json on Windows:

{
  "mcpServers": {
    "google-calendar": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@a1-x-tech/mcp-google-calendar@latest"]
    }
  }
}

Cursor MCP documentation

Run MCP: Open User Configuration and add:

{
  "servers": {
    "google-calendar": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@a1-x-tech/mcp-google-calendar@latest"]
    }
  }
}

Check it with MCP: List Servers.

VS Code MCP documentation

What you can ask it to do

See your schedule

  • What meetings do I have this week? Include the recurring ones.

  • Show tomorrow's 1:1 with its guests, Meet link and reminders.

  • List every occurrence of the team sync in March.

Plan and change meetings

  • Create a 45-minute review on Thursday with two guests and a Google Meet link.

  • Reschedule the retro one hour later and update the guest list — but don't email anyone yet.

  • Move the planning event to the team calendar.

  • Cancel Friday's occurrence of the standup, leaving the rest of the series alone.

Protect your time

  • When are Anna, Boris and I all free for an hour next week?

  • Block Out of Office for my vacation and auto-decline new invitations.

  • Create two hours of Focus Time tomorrow morning and silence Google Chat.

How an event changes

  1. calendar_id: "primary" is your main calendar; other calendars come from list_calendars, and writes need writer access.

  2. A recurring series and a single occurrence have different ids: the series id changes or cancels every occurrence, an instance id (from list_event_instances) exactly one.

  3. update_event changes only the fields you provide, but a nested object replaces its predecessor wholesale — a new attendees list replaces the whole guest list.

  4. No write emails anybody unless send_updates says so — the Calendar API's default is silence.

Out of Office and Focus Time blocks exist only on the primary calendar of a Google Workspace account; consumer Gmail and secondary calendars reject them. Creating an event does not check for conflicts — ask for a free/busy check first. All-day events end on an exclusive date: an event through Friday ends on Saturday's date.

What can change

Operation

What happens

Confirmation boundary

Read calendars, events and free/busy

Reads schedule data; free/busy shows busy blocks without titles

No change

Create an event

Adds a timed, all-day or recurring event, optionally with guests and Google Meet

Changes a calendar

Create an Out of Office or Focus Time block

Adds a special event that can auto-decline invitations or silence Google Chat

Changes a calendar

Update an event

Reschedules or edits an event; a series id edits every occurrence

Changes a calendar

Move an event

Re-homes an event to another calendar

Changes two calendars

Delete an event

Cancels an event or an entire series; there is no undelete

Destructive

Raw API request

Can call API methods without a dedicated tool

Potentially destructive

The AI client controls confirmation prompts. The server marks reads, writes and destructive tools so the client can distinguish an inspection from a live change.

Getting access

Access to your own calendars requires OAuth 2.0; an API key is not enough. There are two ways to connect, and the first one needs no configuration file at all.

Sign in from the chat

Start the server with no credentials and ask the assistant to connect. The server ships with a built-in OAuth client, so there is no Google Cloud project or OAuth client to create — the assistant gives you a Google sign-in link and you approve access:

Tool

What it does

start_login

Returns the Google authorization link and waits for the browser

finish_login

Confirms the login and reports which account was connected

auth_status

Whether a login exists, where it came from and when it expires — never the token itself

logout

Revokes the token at Google and deletes the local file

setup_instructions

Optional: the checklist for using your own Google Cloud OAuth client instead

set_client

Optional: reads your own OAuth client JSON — by file path, so the secret never goes through the chat

Google may show a "Google hasn't verified this app" screen while the app's verification is in progress: choose Advanced → Go to A1 MCP. The built-in client only identifies the app to Google — the tokens are issued to and stored on your machine, and A1 never receives them.

The built-in client and its Google API quota are shared by everyone who uses it. Bring your own client (setup_instructions, then set_client) to get a quota of your own, or when a Google Workspace admin blocks third-party apps; it then takes priority over the built-in one.

The login takes effect immediately: the next tool call works without restarting the AI client. The token is stored in ~/.config/mcp-google-calendar/credentials.json (on Windows, under %APPDATA%), readable only by your account, and never leaves your machine.

Or configure environment variables

The classic path, and the one to use for CI and headless installs:

  1. Create or select a Google Cloud project and enable Google Calendar API.

  2. Configure the OAuth consent screen and create a Desktop app OAuth client.

  3. Authorize the Google account whose calendars you want to manage. The OAuth 2.0 Playground can obtain the refresh token when Use your own OAuth credentials is enabled.

  4. Request both scopes:

    https://www.googleapis.com/auth/calendar.events
    https://www.googleapis.com/auth/calendar.readonly

    The broad https://www.googleapis.com/auth/calendar scope is needed only for raw_request calls that manage calendars or sharing rules themselves.

Environment variables always win over a login taken in the chat, so an existing configured install keeps behaving exactly as before.

Testing-mode OAuth refresh tokens can expire after seven days. Publish the OAuth app, or use an Internal app in a Workspace domain, when you need long-lived access. Treat the client secret and refresh token as passwords.

Configuration

Variable

Required

Description

GOOGLE_CALENDAR_CLIENT_ID

No*

OAuth client ID.

GOOGLE_CALENDAR_CLIENT_SECRET

No*

OAuth client secret.

GOOGLE_CALENDAR_REFRESH_TOKEN

No*

OAuth refresh token.

GOOGLE_CALENDAR_ACCESS_TOKEN

No*

Short-lived (~1 hour) alternative to the OAuth trio.

GOOGLE_CALENDAR_API_BASE

No

Google API base URL override; default https://www.googleapis.com.

GOOGLE_CALENDAR_TIMEOUT_MS

No

Per-request timeout; default 60000 ms.

GOOGLE_CALENDAR_MAX_RETRIES

No

Temporary-error retries; default 3.

* Only for a setup without the in-chat login: provide either the OAuth trio or an access token.

Data, limits and background work

  • Requests go to Google Calendar. The local server refreshes Google OAuth tokens and calls the Calendar API. Its anonymous telemetry contains an installation ID, package version, AI client and platform versions, and tool names — never OAuth tokens, calendar data, tool arguments or prompts. For each tool call it also sends the outcome and, on failure, an excerpt of the error text with e-mails, addresses, tokens, numbers of 4+ digits and quoted text replaced by #; a value from your request can appear in it if the error text contains it. Set ASKADS_TELEMETRY=0 to opt out.

  • Google applies per-project quotas. On 429, the server retries with backoff; reads also retry after network and 5xx errors, while writes are not replayed after an uncertain failure — a duplicated event could re-email every guest.

  • There is no background polling. The server runs only when called. list_events supports incremental checks via updated_min; if your AI app supports scheduled tasks, it can check your calendar periodically.

Technical documentation

Support

Found a bug or need a scenario? Create an issue or write in Telegram.

Available Tools

19 tools
auth_statusGoogle connection statusA
Read-onlyIdempotent

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.

Inputs: no named parameters.

create_eventCreate an eventA

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 check for conflicts — call query_free_busy first to find a free slot. Never blindly re-send after a timeout or 5xx: the event may already exist — check with list_events first, or you will create a duplicate and re-invite everyone.

Inputs: summary (required), calendar_id (required), add_meet, color_id, +17 more.

create_focus_timeCreate a Focus Time blockA

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.

Inputs: end_date_time (required), start_date_time (required), summary, time_zone, +5 more.

create_out_of_officeCreate an Out of Office blockA

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-sending.

Inputs: end_date_time (required), start_date_time (required), summary, time_zone, +4 more.

delete_eventDelete an eventA
Destructive

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}.

Inputs: event_id (required), calendar_id (required), send_updates.

finish_loginFinish the Google loginA
Idempotent

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 unnoticed.

Inputs: no named parameters.

get_calendarGet a calendarA
Read-onlyIdempotent

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/ instead.

Inputs: calendar_id (required).

get_eventGet an eventA
Read-onlyIdempotent

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.

Inputs: event_id (required), calendar_id (required), time_zone.

list_calendarsList calendarsA
Read-onlyIdempotent

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.

Inputs: page_token, max_results, show_hidden, min_access_role.

list_event_instancesList instances of a recurring eventA
Read-onlyIdempotent

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.

Inputs: event_id (required), calendar_id (required), time_max, time_min, +4 more.

list_eventsList eventsA
Read-onlyIdempotent

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 response, never the events themselves. q searches summary/description/location/attendees. updated_min + show_deleted enable incremental polling (cancelled events come back as status=cancelled). Paginate with page_token from nextPageToken.

Inputs: calendar_id (required), q, order_by, time_max, +8 more.

logoutDisconnect from GoogleA
Destructive

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.

Inputs: no named parameters.

move_eventMove an event to another calendarA
DestructiveIdempotent

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.

Inputs: event_id (required), calendar_id (required), destination_calendar_id (required), send_updates.

query_free_busyQuery free/busy timesA
Read-onlyIdempotent

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.

Inputs: time_max (required), time_min (required), calendar_ids (required), time_zone.

raw_requestRaw Google Calendar API callA
Destructive

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 — drive/v3, gmail/v1, ... — are rejected before any request is sent) and may carry a query string. The Bearer token is added automatically; the method defaults to GET. Remember: PUT replaces unspecified fields with defaults — prefer PATCH semantics via update_event when possible.

Inputs: path (required), body, method.

set_clientSave the OAuth clientA
Idempotent

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.

Inputs: path (required).

setup_instructionsSetup instructionsA
Read-onlyIdempotent

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 configured it shortens to 'enable the API + log in' (one client serves the whole mcp-google-* line). Never asks the user to paste secrets into the chat.

Inputs: no named parameters.

start_loginStart the Google loginA
Idempotent

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.

Inputs: no named parameters.

update_eventUpdate an eventA
DestructiveIdempotent

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_updates=all. Also works to update Out of Office / Focus Time blocks. Returns the updated event.

Inputs: event_id (required), calendar_id (required), summary, add_meet, +18 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 19 tools

    Disambiguation4/5

    Almost every tool targets a distinct resource+action, and descriptions explicitly contrast the tricky pairs (move_event vs update_event, create_event vs query_free_busy, list_events vs list_event_instances). The one genuine overlap is that list_events with single_events=true and list_event_instances both expand recurring events, which could cause misselection. raw_request is clearly framed as a last-resort escape hatch rather than a duplicate of the typed tools.

    Naming Consistency4/5

    The dominant pattern is consistent snake_case verb_noun (list_events, create_event, delete_event, move_event, query_free_busy, start_login, finish_login, set_client). Minor deviations are auth_status and setup_instructions (noun-first) plus the bare verb logout, but all remain readable and unambiguous. No camelCase/snake_case mixing.

    Tool Count4/5

    19 tools sits at the high end but each covers a real capability: six OAuth lifecycle tools, two calendar reads, seven event operations, free/busy, two specialized event types, and a raw escape hatch. The auth cluster (auth_status, setup_instructions, set_client, start_login, finish_login, logout) is the heaviest part and could arguably be condensed, but it serves a genuine in-chat OAuth flow rather than padding.

    Completeness4/5

    Event lifecycle is well covered (list/get/create/update/delete/move/instances) plus free/busy and Workspace-specific out-of-office and focus-time blocks. Notable gaps are calendar-level lifecycle and ACL management (create/delete calendars, sharing rules), which are only reachable through raw_request, and no first-class RSVP/quickAdd/colors tools. The raw_request escape hatch keeps these from being dead ends.

    Maintenance

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers