# Google Calendar CLI for AI Agents

```json
{
  "title": "Google Calendar CLI for AI Agents",
  "toolkit": "Google Calendar",
  "toolkit_slug": "googlecalendar",
  "framework": "CLI",
  "framework_slug": "cli",
  "url": "https://composio.dev/toolkits/googlecalendar/framework/cli",
  "markdown_url": "https://composio.dev/toolkits/googlecalendar/framework/cli.md",
  "updated_at": "2026-05-06T08:14:14.713Z"
}
```

## Introduction

CLIs are eating MCPs. The industry is converging on the very same idea. MCPs for all their merit can be token hungry, slow, and unreliable for complex tool chaining. However, coding agents have become incredibly good at working with CLIs, and in fact they are far more comfortable working with CLI tools than MCP.
With Composio's Universal CLI, your coding agents can talk to over 1000+ SaaS applications. With Google Calendar, agents can create a meeting with the marketing team, list all events scheduled for next week, delete tomorrow’s canceled event from your calendar, and more — all without worrying about authentication.
This guide walks you through Composio Universal CLI and explains how you can connect it with coding agents like Claude Code, Codex, OpenCode, etc, for end-to-end Google Calendar automation.

## Also integrate Google Calendar with

- [ChatGPT](https://composio.dev/toolkits/googlecalendar/framework/chatgpt)
- [OpenAI Agents SDK](https://composio.dev/toolkits/googlecalendar/framework/open-ai-agents-sdk)
- [Claude Agent SDK](https://composio.dev/toolkits/googlecalendar/framework/claude-agents-sdk)
- [Claude Code](https://composio.dev/toolkits/googlecalendar/framework/claude-code)
- [Claude Cowork](https://composio.dev/toolkits/googlecalendar/framework/claude-cowork)
- [Codex](https://composio.dev/toolkits/googlecalendar/framework/codex)
- [Cursor](https://composio.dev/toolkits/googlecalendar/framework/cursor)
- [VS Code](https://composio.dev/toolkits/googlecalendar/framework/vscode)
- [OpenCode](https://composio.dev/toolkits/googlecalendar/framework/opencode)
- [OpenClaw](https://composio.dev/toolkits/googlecalendar/framework/openclaw)
- [Hermes](https://composio.dev/toolkits/googlecalendar/framework/hermes-agent)
- [Google ADK](https://composio.dev/toolkits/googlecalendar/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/googlecalendar/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/googlecalendar/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/googlecalendar/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/googlecalendar/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/googlecalendar/framework/crew-ai)

## TL;DR

The idea behind building the universal CLI is to give agents a single command interface to interact with all your external applications. Here's what you'll get with it:
- Agent-friendly: Coding agents like Claude Code, Codex, and OpenCode can use CLI tools natively — no MCP setup required.
- Authentication handled: Connect once via OAuth or API Key, and all CLI commands work with your credentials automatically.
- Tool discovery: Search, inspect, and execute 20,000+ tools across 1000+ apps from one interface.
- Trigger support: Use triggers to listen for events across your apps, powered by real-time webhooks or polling under the hood.
- Type generation: Generate typed schemas for autocomplete and type safety in your projects.

## Connect Google Calendar to CLI

### Prerequisites
Install the Composio CLI, authenticate, and initialize your project:

```bash
# Install the Composio CLI
curl -fsSL https://composio.dev/install | bash

# Authenticate with Composio
composio login
```

## What is the Google Calendar MCP server, and what's possible with it?

The Google Calendar MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Google Calendar account. It provides structured and secure access to your calendars and events, so your agent can schedule meetings, create or modify events, list upcoming appointments, and manage calendars—all on your behalf.
- Automated event creation and scheduling: Easily instruct your agent to add new events, meetings, or reminders with specific times, attendees, and details.
- Event listing and agenda overview: Have your agent list all upcoming, past, or filtered events on any of your calendars to keep you on top of your schedule.
- Calendar management and customization: Direct your agent to create new calendars, update calendar details, or even insert calendars into your list for better organization.
- Event updating and deletion: Let your agent modify existing events or remove events that are no longer needed, keeping your calendar up to date.
- Complete calendar clearing: Ask your agent to clear all events from a primary calendar or delete secondary calendars entirely when you need a fresh start.

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `GOOGLECALENDAR_CALENDAR_LIST_INSERT` | Insert Calendar into List | Inserts an existing calendar into the user's calendar list. |
| `GOOGLECALENDAR_CALENDAR_LIST_UPDATE` | Update Calendar List Entry | Updates an existing entry on the user\'s calendar list. |
| `GOOGLECALENDAR_CALENDARS_DELETE` | Delete Calendar | Deletes a secondary calendar. use calendars.clear for clearing all events on primary calendars. |
| `GOOGLECALENDAR_CALENDARS_UPDATE` | Update Calendar | Updates metadata for a calendar. |
| `GOOGLECALENDAR_CLEAR_CALENDAR` | Clear Calendar | Clears a primary calendar. this operation deletes all events associated with the primary calendar of an account. |
| `GOOGLECALENDAR_CREATE_EVENT` | Create Event | Creates an event on a google calendar, needing rfc3339 utc start/end times (end after start) and write access to the calendar. by default, adds the organizer as an attendee unless exclude organizer is set to true. |
| `GOOGLECALENDAR_DELETE_EVENT` | Delete event | Deletes a specified event by `event id` from a google calendar (`calendar id`); this action is idempotent and raises a 404 error if the event is not found. |
| `GOOGLECALENDAR_DUPLICATE_CALENDAR` | Create a calendar | Creates a new, empty google calendar with the specified title (summary). |
| `GOOGLECALENDAR_EVENTS_INSTANCES` | Get Event Instances | Returns instances of the specified recurring event. |
| `GOOGLECALENDAR_EVENTS_LIST` | List Events | Returns events on the specified calendar. |
| `GOOGLECALENDAR_EVENTS_MOVE` | Move Event | Moves an event to another calendar, i.e., changes an event's organizer. |
| `GOOGLECALENDAR_EVENTS_WATCH` | Watch Events | Watch for changes to events resources. |
| `GOOGLECALENDAR_FIND_EVENT` | 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 provided. |
| `GOOGLECALENDAR_FIND_FREE_SLOTS` | Find free slots | Finds free/busy time slots in google calendars for specified calendars within a defined time range (defaults to the current day utc if `time min`/`time max` are omitted), enhancing busy intervals with event details; `time min` must precede `time max` if both are provided. |
| `GOOGLECALENDAR_FREE_BUSY_QUERY` | Query Free/Busy Information | Returns free/busy information for a set of calendars. |
| `GOOGLECALENDAR_GET_CALENDAR` | Get Google Calendar | Retrieves a specific google calendar, identified by `calendar id`, to which the authenticated user has access. |
| `GOOGLECALENDAR_GET_CURRENT_DATE_TIME` | Get current date and time | Gets the current date and time, allowing for a specific timezone offset. |
| `GOOGLECALENDAR_LIST_ACL_RULES` | List ACL Rules | Retrieves the list of access control rules (acls) for a specified calendar, providing the necessary 'rule id' values required for updating specific acl rules. |
| `GOOGLECALENDAR_LIST_CALENDARS` | List Google Calendars | Retrieves calendars from the user's google calendar list, with options for pagination and filtering. |
| `GOOGLECALENDAR_PATCH_CALENDAR` | Patch Calendar | Partially updates (patches) an existing google calendar, modifying only the fields provided; `summary` is mandatory and cannot be an empty string, and an empty string for `description` or `location` clears them. |
| `GOOGLECALENDAR_PATCH_EVENT` | Patch Event | Updates 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 valid and the user has write access to the calendar. |
| `GOOGLECALENDAR_QUICK_ADD` | Quick Add Event | 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 events, and `calendar id` must be valid if not 'primary'. |
| `GOOGLECALENDAR_REMOVE_ATTENDEE` | Remove attendee from event | Removes an attendee from a specified event in a google calendar; the calendar and event must exist. |
| `GOOGLECALENDAR_SETTINGS_LIST` | List Settings | Returns all user settings for the authenticated user. |
| `GOOGLECALENDAR_SETTINGS_WATCH` | Watch Settings | Watch for changes to settings resources. |
| `GOOGLECALENDAR_SYNC_EVENTS` | Sync Events | Synchronizes google calendar events, performing a full sync if no `sync token` is provided or if a 410 gone error (due to an expired token) necessitates it, otherwise performs an incremental sync for events changed since the `sync token` was issued. |
| `GOOGLECALENDAR_UPDATE_ACL_RULE` | Update ACL Rule | Updates an access control rule for the specified calendar. |
| `GOOGLECALENDAR_UPDATE_EVENT` | Update Google event | Updates an existing event by `event id` in a google calendar; this is a full put replacement, so provide all desired fields as unspecified ones may be cleared or reset. |

## Supported Triggers

| Trigger slug | Name | Description |
|---|---|---|
| `GOOGLECALENDAR_ATTENDEE_RESPONSE_CHANGED_TRIGGER` | Attendee Response Changed | Polling trigger that fires when any attendee's RSVP changes to accepted, declined, or tentative. Returns attendee info and current status. |
| `GOOGLECALENDAR_EVENT_CANCELED_DELETED_TRIGGER` | Event Canceled or Deleted | Triggers when a Google Calendar event is cancelled or deleted. Returns minimal data: event_id, summary (if available), and cancellation timestamp. |
| `GOOGLECALENDAR_EVENT_STARTING_SOON_TRIGGER` | Event Starting Soon | Triggers when a calendar event is within a configured number of minutes from starting. Returns event details, time remaining, attendees, and join links when available. |
| `GOOGLECALENDAR_GOOGLE_CALENDAR_EVENT_CHANGE_TRIGGER` | Calendar Event Changes | **SOON TO BE DEPRECATED** - Use Calendar Event Sync (polling trigger) instead. Real-time webhook trigger for calendar event changes. Returns event metadata only. For full event data, use Calendar Event Sync (polling trigger). |
| `GOOGLECALENDAR_GOOGLE_CALENDAR_EVENT_CREATED_TRIGGER` | Event Created | Polling trigger that fires when a new calendar event is created. Returns event ID, summary, start/end times, and organizer info. |
| `GOOGLECALENDAR_GOOGLE_CALENDAR_EVENT_SYNC_TRIGGER` | Calendar Event Sync | Polling trigger that returns full event data including details, attendees, and metadata. For real-time notifications with basic info, use Calendar Event Changes (webhook). |
| `GOOGLECALENDAR_GOOGLE_CALENDAR_EVENT_UPDATED_TRIGGER` | Event Updated | Triggers when an existing Google Calendar event is modified. Returns the event ID, change type, and the specific fields that changed with their previous and new values. |

## Complete Code

None listed.

## Conclusion

- Try asking your coding agent to perform various Google Calendar operations
- Explore cross-app workflows by connecting more toolkits
- Set up triggers for real-time automation
- Use composio generate for typed schemas in your projects

## How to build Google Calendar MCP Agent with another framework

- [ChatGPT](https://composio.dev/toolkits/googlecalendar/framework/chatgpt)
- [OpenAI Agents SDK](https://composio.dev/toolkits/googlecalendar/framework/open-ai-agents-sdk)
- [Claude Agent SDK](https://composio.dev/toolkits/googlecalendar/framework/claude-agents-sdk)
- [Claude Code](https://composio.dev/toolkits/googlecalendar/framework/claude-code)
- [Claude Cowork](https://composio.dev/toolkits/googlecalendar/framework/claude-cowork)
- [Codex](https://composio.dev/toolkits/googlecalendar/framework/codex)
- [Cursor](https://composio.dev/toolkits/googlecalendar/framework/cursor)
- [VS Code](https://composio.dev/toolkits/googlecalendar/framework/vscode)
- [OpenCode](https://composio.dev/toolkits/googlecalendar/framework/opencode)
- [OpenClaw](https://composio.dev/toolkits/googlecalendar/framework/openclaw)
- [Hermes](https://composio.dev/toolkits/googlecalendar/framework/hermes-agent)
- [Google ADK](https://composio.dev/toolkits/googlecalendar/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/googlecalendar/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/googlecalendar/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/googlecalendar/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/googlecalendar/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/googlecalendar/framework/crew-ai)

## Related Toolkits

- [Apaleo](https://composio.dev/toolkits/apaleo) - Apaleo is a cloud-based property management platform for hospitality businesses. It centralizes reservations, billing, and daily operations for smoother hotel management.
- [Appointo](https://composio.dev/toolkits/appointo) - Appointo is an appointment booking platform for Shopify stores. It lets businesses add online scheduling to their websites with zero coding.
- [Bart](https://composio.dev/toolkits/bart) - Bart is the Bay Area Rapid Transit system, providing fast public transportation across the San Francisco Bay Area. It helps commuters and travelers get real-time schedule info, plan routes, and stay updated on service changes.
- [Bookingmood](https://composio.dev/toolkits/bookingmood) - Bookingmood is commission-free booking software for rental businesses. It lets you manage reservations and sync bookings directly on your website.
- [Booqable](https://composio.dev/toolkits/booqable) - Booqable is a rental software platform for managing inventory, bookings, and reservations. It helps businesses streamline rentals and keep track of every item with ease.
- [Cal](https://composio.dev/toolkits/cal) - Cal is a meeting scheduling platform that offers shareable booking links and real-time calendar syncing. It streamlines the process of finding mutual availability to make scheduling effortless.
- [Calendarhero](https://composio.dev/toolkits/calendarhero) - Calendarhero is a powerful scheduling platform that streamlines your calendar management across multiple services. It helps you efficiently schedule, reschedule, and organize meetings without the back-and-forth.
- [Calendly](https://composio.dev/toolkits/calendly) - Calendly is an appointment scheduling tool that automates meeting invitations, availability checks, and reminders. It helps individuals and teams avoid endless email back-and-forth when booking meetings.
- [Etermin](https://composio.dev/toolkits/etermin) - eTermin is an online appointment scheduling platform for businesses to manage bookings. It streamlines client appointments, saving time and reducing scheduling conflicts.
- [Evenium](https://composio.dev/toolkits/evenium) - Evenium is an all-in-one platform for managing professional events, from planning to analysis. It helps teams simplify event logistics, boost engagement, and track every detail in one place.
- [Eventee](https://composio.dev/toolkits/eventee) - Eventee is a user-friendly event management platform for mobile and web. It boosts attendee engagement for in-person, virtual, and hybrid events.
- [Eventzilla](https://composio.dev/toolkits/eventzilla) - Eventzilla is an event management platform for creating, promoting, and running events. It streamlines ticketing, registration, and attendee coordination for organizers.
- [Humanitix](https://composio.dev/toolkits/humanitix) - Humanitix is a not-for-profit ticketing platform that donates 100% of profits to charity. It empowers event organizers to make social impact with every ticket sold.
- [Lodgify](https://composio.dev/toolkits/lodgify) - Lodgify is an all-in-one vacation rental software for property managers and owners. It centralizes bookings, guest messaging, and channel synchronization in one dashboard.
- [Planyo Online Booking](https://composio.dev/toolkits/planyo_online_booking) - Planyo Online Booking is a flexible reservation system for managing bookings by day, hour, or event. It streamlines scheduling for any business needing reservations.
- [Scheduleonce](https://composio.dev/toolkits/scheduleonce) - Scheduleonce is a scheduling platform for capturing, qualifying, and engaging with inbound leads. It streamlines appointment booking and follow-ups for faster lead conversion.
- [Supersaas](https://composio.dev/toolkits/supersaas) - Supersaas is a flexible appointment scheduling platform for businesses and individuals. It streamlines bookings, reminders, and calendar management in one place.
- [Sympla](https://composio.dev/toolkits/sympla) - Sympla is a platform for managing in-person and online events, ticket sales, and registrations. It streamlines event setup, attendee tracking, and digital content delivery.
- [Gmail](https://composio.dev/toolkits/gmail) - Gmail is Google's email service with powerful spam protection, search, and G Suite integration. It keeps your inbox organized and makes communication fast and reliable.
- [Google Drive](https://composio.dev/toolkits/googledrive) - Google Drive is a cloud storage platform for uploading, sharing, and collaborating on files. It's perfect for keeping your documents accessible and organized across devices.

## Frequently Asked Questions

### What is the Composio Universal CLI?

The Composio Universal CLI is a single command-line interface that lets coding agents and developers interact with 1000+ SaaS applications. It handles authentication, tool discovery, action execution, and trigger setup — all from the terminal, without needing to configure MCP servers.

### Which coding agents work with the Composio CLI?

Any coding agent that can run shell commands works with the Composio CLI — including Claude Code, Codex, OpenCode, OpenClaw, and others. Once the CLI is installed, agents automatically discover and use the composio commands to interact with Google Calendar and other connected apps.

### How is the CLI different from using an MCP server for Google Calendar?

MCP servers require configuration and can be token-heavy for complex workflows. The CLI gives agents a direct, lightweight interface — no server setup needed. Agents simply call composio commands like any other shell tool. It's faster to set up, more reliable for multi-step tool chaining, and works natively with how coding agents already operate.

### How safe is my Google Calendar data when using the Composio CLI?

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Google Calendar data and credentials are handled as safely as possible. You can also bring your own OAuth credentials for full control.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
