# Google Calendar — how to use (mcp.ai)

Google Calendar em linguagem natural: liste, crie, atualize e remova eventos, cheque disponibilidade e convide participantes. A plataforma fornece a aplicação OAuth, você só clica em Conectar e escolhe sua conta Google. Várias contas podem ser conectadas no mesmo MCP.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_googlecalendar?ms=1796396040000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `googlecalendar_acl_list`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/googlecalendar`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://new.mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/googlecalendar/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/googlecalendar/acl/list` — Retrieves the list of access control rules (ACLs) for a specified calendar, providing the necessary 'rule_id' values required for updating specific ACL rules.
  - body: { pageToken?: string, syncToken?: string, calendarId: string, maxResults?: integer, showDeleted?: boolean }
- `POST https://api.mcp.ai/api/googlecalendar/acl/update` — Updates an access control rule for the specified calendar.
  - body: { role: string, rule_id: string, calendar_id: string, send_notifications?: boolean }
- `POST https://api.mcp.ai/api/googlecalendar/calendar/list/insert` — Inserts an existing calendar into the user's calendar list, making it visible in the UI. Calendars (e.g., newly created ones) won't appear in the list or UI until explicitly inserted.
  - body: { id: string, hidden?: boolean, colorId?: string, selected?: boolean, backgroundColor?: string, foregroundColor?: string, summaryOverride?: string, color_rgb_format?: boolean, defaultReminders?: object[], notificationSettings?: object }
- `POST https://api.mcp.ai/api/googlecalendar/calendar/list/update` — Updates a calendar list entry's display/subscription settings (color, visibility, reminders, selection) for the authenticated user — does not modify the underlying calendar resource (title, timezone, 
  - body: { hidden?: boolean, colorId?: string, selected?: boolean, calendar_id: string, colorRgbFormat?: boolean, backgroundColor?: string, foregroundColor?: string, summaryOverride?: string, defaultReminders?: object[], notificationSettings?: object }
- `POST https://api.mcp.ai/api/googlecalendar/calendars/delete` — Deletes a secondary calendar that you own or have delete permissions on. Deletion is permanent and irreversible — verify the correct calendar_id before calling. You cannot delete your primary calendar
  - body: { calendar_id: string }
- `POST https://api.mcp.ai/api/googlecalendar/calendars/update` — Full PUT-style update that overwrites all calendar metadata fields; unspecified optional fields are cleared. Use GOOGLECALENDAR_PATCH_CALENDAR to update only a subset of fields. Mutates the underlying
  - body: { summary: string, location?: string, timeZone?: string, calendarId: string, description?: string }
- `POST https://api.mcp.ai/api/googlecalendar/clear/calendar` — Clears a primary calendar by deleting all events from it. The calendar itself is preserved; only its events are removed. Primary calendars cannot be deleted entirely.
  - body: { calendar_id: string }
- `POST https://api.mcp.ai/api/googlecalendar/create/event` — Create a Google Calendar event using start_datetime plus duration fields. The organizer is added as an attendee unless exclude_organizer is True. By default adds Google Meet link (works for Workspace,
  - body: { summary?: string, location?: string, timezone?: string, attendees?: string|object[], eventType?: string, recurrence?: string[], visibility?: string, calendar_id?: string, description?: string, end_datetime?: string, send_updates?: string, transparency?: string, start_datetime: string, guestsCanModify?: boolean, exclude_organizer?: boolean, birthdayProperties?: object, create_meeting_room?: boolean, event_duration_hour?: integer, extended_properties?: object, focusTimeProperties?: object, guestsCanInviteOthers?: boolean, outOfOfficeProperties?: object, event_duration_minutes?: integer, guestsCanSeeOtherGuests?: boolean, workingLocationProperties?: object }
- `POST https://api.mcp.ai/api/googlecalendar/delete/event` — Deletes a specified event by `event_id` from a Google Calendar (`calendar_id`); idempotent — a 404 for an already-deleted event is a no-op. Bulk deletions may trigger `rateLimitExceeded` or `userRateL
  - body: { event_id: string, calendar_id?: string, send_updates?: string, send_notifications?: boolean }
- `POST https://api.mcp.ai/api/googlecalendar/duplicate/calendar` — Creates a new, empty Google Calendar with the specified title (summary). Newly created calendars default to UTC timezone; use GOOGLECALENDAR_PATCH_CALENDAR afterward to set the desired timeZone if nee
  - body: { summary: string }
- `POST https://api.mcp.ai/api/googlecalendar/events/instances` — Returns instances of the specified recurring event. Use timeMin/timeMax to constrain the window; omitting bounds can return large result sets and is quota-heavy. On high-volume calls, 403 rateLimitExc
  - body: { eventId: string, timeMax?: string, timeMin?: string, timeZone?: string, pageToken?: string, calendarId: string, maxResults?: integer, showDeleted?: boolean, maxAttendees?: integer, originalStart?: string }
- `POST https://api.mcp.ai/api/googlecalendar/events/list` — Returns events on the specified calendar. TIMEZONE WARNING: When using timeMin/timeMax with UTC timestamps (ending in 'Z'), the time window is interpreted in UTC regardless of the calendar's timezone.
  - body: { q?: string, iCalUID?: string, orderBy?: string, timeMax?: string, timeMin?: string, timeZone?: string, pageToken?: string, syncToken?: string, calendarId?: string, eventTypes?: string, maxResults?: integer, updatedMin?: string, showDeleted?: boolean, maxAttendees?: integer, singleEvents?: boolean, alwaysIncludeEmail?: boolean, showHiddenInvitations?: boolean, sharedExtendedProperty?: string, privateExtendedProperty?: string, composio_replaced_calendar_id?: string }
- `POST https://api.mcp.ai/api/googlecalendar/events/move` — Moves an event to another calendar, i.e., changes an event's organizer.
  - body: { event_id: string, calendar_id: string, destination: string, send_updates?: string }
- `POST https://api.mcp.ai/api/googlecalendar/events/watch` — Watch for changes to Events resources. Watch channels expire; persist the channel `id` per `calendarId` to re-establish watches after expiration or restarts.
  - body: { id: string, type?: string, token?: string, params?: object, address: string, payload?: boolean, calendarId: string }
- `POST https://api.mcp.ai/api/googlecalendar/find/event` — Finds events in a specified Google Calendar using text query, time ranges (event start/end, last modification), and event types. Ensure `timeMin` is not chronologically after `timeMax` if both are pro
  - body: { query?: string, order_by?: string, time_max?: string, time_min?: string, page_token?: string, calendar_id?: string, event_types?: string[], max_results?: integer, updated_min?: string, show_deleted?: boolean, single_events?: boolean }
- `POST https://api.mcp.ai/api/googlecalendar/find/free/slots` — Finds both free and busy time slots in Google Calendars for specified calendars within a defined time range. If `time_min` is not provided, defaults to the current timestamp in the specified timezone.
  - body: { items?: string[], time_max?: string, time_min?: string, timezone?: string, group_expansion_max?: integer, calendar_expansion_max?: integer }
- `POST https://api.mcp.ai/api/googlecalendar/free/busy/query` — DEPRECATED: Use GOOGLECALENDAR_FIND_FREE_SLOTS instead (though this tool provides wider secondary/shared calendar coverage). Returns opaque busy intervals only—no event titles or details; use GOOGLECA
  - body: { items: object[], timeMax: string, timeMin: string, timeZone?: string, groupExpansionMax?: integer, calendarExpansionMax?: integer }
- `POST https://api.mcp.ai/api/googlecalendar/get/calendar` — Retrieves a specific Google Calendar, identified by `calendar_id`, to which the authenticated user has access. Response includes `timeZone` (IANA format, e.g., 'America/Los_Angeles') — use it directly
  - body: { calendar_id?: string }
- `POST https://api.mcp.ai/api/googlecalendar/get/current/date/time` — Gets the current date and time, allowing for a specific timezone offset. Call this tool first before computing relative dates (e.g., 'tomorrow', 'next Monday') to avoid off-by-one-day errors across ti
  - body: { timezone?: string|number }
- `POST https://api.mcp.ai/api/googlecalendar/list/calendars` — Retrieves calendars from the user's Google Calendar list, with options for pagination and filtering. Loop through all pages using nextPageToken until absent to avoid missing calendars. Use the primary
  - body: { page_token?: string, sync_token?: string, max_results?: integer, show_hidden?: boolean, show_deleted?: boolean, min_access_role?: string }
- `POST https://api.mcp.ai/api/googlecalendar/patch/calendar` — Partially updates (PATCHes) an existing Google Calendar, modifying only the fields provided. At least one of summary, description, location, or timezone must be provided. Empty strings for `descriptio
  - body: { summary?: string, location?: string, timezone?: string, calendar_id: string, description?: string }
- `POST https://api.mcp.ai/api/googlecalendar/patch/event` — Update specified fields of an existing event in a Google Calendar using patch semantics (array fields like `attendees` are fully replaced if provided); ensure the `calendar_id` and `event_id` are vali
  - body: { source?: object, status?: string, summary?: string, color_id?: string, end_time?: string, event_id: string, location?: string, sequence?: integer, timezone?: string, attendees?: string[], reminders?: object, recurrence?: string[], start_time?: string, visibility?: string, attachments?: object[], calendar_id: string, description?: string, send_updates?: string, transparency?: string, max_attendees?: integer, rsvp_response?: string, conference_data?: object, attendees_omitted?: boolean, guests_can_modify?: boolean, anyone_can_add_self?: boolean, extended_properties?: object, supports_attachments?: boolean, focus_time_properties?: object, conference_data_version?: integer, guests_can_invite_others?: boolean, out_of_office_properties?: object, guests_can_see_other_guests?: boolean, working_location_properties?: object }
- `POST https://api.mcp.ai/api/googlecalendar/quick/add` — Parses natural language text to quickly create a basic Google Calendar event with its title, date, and time, suitable for simple scheduling; does not support direct attendee addition or recurring even
  - body: { text?: string, calendar_id?: string, send_updates?: string }
- `POST https://api.mcp.ai/api/googlecalendar/remove/attendee` — Removes an attendee from a specified event in a Google Calendar; the calendar and event must exist. Concurrent calls on the same event can overwrite attendee lists — apply changes sequentially per eve
  - body: { event_id: string, calendar_id?: string, attendee_email: string }
- `POST https://api.mcp.ai/api/googlecalendar/settings/list` — Returns all user settings for the authenticated user. Results include multiple settings keyed by id (e.g., `timeZone`); locate a specific setting by its `id` field. `timeZone` values are IANA identifi
  - body: { pageToken?: string, syncToken?: string, maxResults?: integer }
- `POST https://api.mcp.ai/api/googlecalendar/settings/watch` — Watch for changes to Settings resources.
  - body: { id: string, type: string, token?: string, params?: object, address: string, expiration?: integer }
- `POST https://api.mcp.ai/api/googlecalendar/sync/events` — DEPRECATED: Use GOOGLECALENDAR_EVENTS_LIST instead. EventsList already handles syncToken with automatic param stripping. Synchronizes Google Calendar events, performing a full sync if no `sync_token` 
  - body: { page_token?: string, sync_token?: string, calendar_id?: string, event_types?: string[], max_results?: integer, single_events?: boolean }
- `POST https://api.mcp.ai/api/googlecalendar/update/event` — Updates an existing event in Google Calendar. REQUIRES event_id - you MUST first search for the event using GOOGLECALENDAR_FIND_EVENT or GOOGLECALENDAR_EVENTS_LIST to obtain the event_id. This is a fu
  - body: { summary?: string, event_id: string, location?: string, timezone?: string, attendees?: string|object[], eventType?: string, recurrence?: string[], visibility?: string, calendar_id?: string, description?: string, end_datetime?: string, send_updates?: string, transparency?: string, start_datetime: string, guestsCanModify?: boolean, birthdayProperties?: object, create_meeting_room?: boolean, event_duration_hour?: integer, extended_properties?: object, focusTimeProperties?: object, guestsCanInviteOthers?: boolean, outOfOfficeProperties?: object, event_duration_minutes?: integer, guestsCanSeeOtherGuests?: boolean, workingLocationProperties?: object }

## Example prompts
- "O que tenho na agenda amanhã?"
- "Crie uma reunião 'Review' quinta às 15h por 1h e convide joao@ex.com"
- "Acho um horário livre de 30min na próxima semana à tarde"

## More
- Page: https://new.mcp.ai/googlecalendar
- Agent spec (llms.txt): https://new.mcp.ai/googlecalendar/llms.txt
- Postman collection: https://new.mcp.ai/googlecalendar/postman.json
