How to integrate Google Calendar MCP with Codex

Trusted by
AWS
Glean
Zoom
Airtable

30 min · no commitment · see it on your stack

Google Calendar logo
Codex logo
divider

Introduction

Codex is one of the most popular coding harnesses out there. And MCP makes the experience even better. With Google Calendar MCP integration, you can draft, triage, summarise emails, and much more, all without leaving the terminal or the app, whichever you prefer.

Also integrate Google Calendar with

Why use Composio?

Apart from a managed and hosted MCP server, you will get:

  • CodeAct: A dedicated workbench that allows GPT to write its code to handle complex tool chaining. Reduces to-and-fro with LLMs for frequent tool calling.
  • Large tool responses: Handle them to minimise context rot.
  • Dynamic just-in-time access to 20,000 tools across 1000+ other Apps for cross-app workflows. It loads the tools you need, so GPTs aren't overwhelmed by tools you don't need.

How to install Google Calendar MCP in Codex

Run the setup command

Run this command in your terminal to add the Composio MCP server to Codex.

Terminal

It will initiate the authentication in a browser window, authorize Codex to access your Composio account.

Composio authentication page

(Optional) Authenticate with OAuth

To authenticate manually, run the login command to open a browser window and authorize Codex to access your Composio account.

bash
codex mcp login composio

Verify the connection

Run codex mcp list to confirm Composio appears as a registered MCP server.

bash
codex mcp list

Codex App

Codex App follows the same approach as VS Code.

  1. Click ⚙️ on the bottom left → MCP Servers → + Add servers → Streamable HTTP:
  2. Fill the header and Key fields with { "x-consumer-api-key" = "ck_*******" }.
  3. The Key is the Composio API key, that you can find on dashboard.composio.dev
  4. Click on Authenticate and authorize Codex to your Composio account and you're all set.
Codex App MCP setup
  1. Restart and verify if it's there in .codex/config.toml
bash
[mcp_servers.composio]
url = "https://connect.composio.dev/mcp"
http_headers = { "x-consumer-api-key" = "ck_*******" }

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 & Triggers

Tools
Triggers
Delete ACL RuleDeletes an access control rule from a Google Calendar.
Get ACL RuleRetrieves a specific access control rule for a calendar.
Create ACL RuleCreates an access control rule for a calendar.
List ACL RulesRetrieves the list of access control rules (ACLs) for a specified calendar, providing the necessary 'rule_id' values required for updating specific ACL rules.
Patch ACL RuleUpdates an existing access control rule for a calendar using patch semantics (partial update).
Update ACL RuleUpdates an access control rule for the specified calendar.
Watch ACL ChangesTool to watch for changes to ACL resources.
Batch EventsExecute up to 1000 event mutations (create/patch/delete) in one Google Calendar HTTP batch request with per-item status/results.
Remove Calendar from ListTool to remove a calendar from the user's calendar list.
Get Single Calendar by IDRetrieves metadata for a SINGLE specific calendar from the user's calendar list by its calendar ID.
Insert Calendar into ListInserts an existing calendar into the user's calendar list, making it visible in the UI.
Patch Calendar List EntryUpdates an existing calendar on the user's calendar list using patch semantics.
Update Calendar List EntryUpdates 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, etc.
Watch Calendar ListWatch for changes to CalendarList resources using push notifications.
Delete CalendarDeletes a secondary calendar that you own or have delete permissions on.
Update CalendarFull PUT-style update that overwrites all calendar metadata fields; unspecified optional fields are cleared.
Stop ChannelTool to stop watching resources through a notification channel.
Clear CalendarClears a primary calendar by deleting all events from it.
Get Color DefinitionsReturns the color definitions for calendars and events.
Create EventCreate a Google Calendar event using start_datetime plus duration fields.
Delete eventDeletes a specified event by `event_id` from a Google Calendar (`calendar_id`); idempotent — a 404 for an already-deleted event is a no-op.
Create a calendarCreates a new, empty Google Calendar with the specified title (summary).
Get EventRetrieves a SINGLE event by its unique event_id (REQUIRED).
Import EventTool to import an event as a private copy to a calendar.
Get Event InstancesReturns instances of the specified recurring event.
List EventsReturns events on the specified calendar.
List Events from All CalendarsReturn a unified event list across all calendars in the user's calendar list for a given time range.
Move EventMoves an event to another calendar, i.
Watch EventsWatch for changes to Events resources.
Find eventFinds events in a specified Google Calendar using text query, time ranges (event start/end, last modification), and event types.
Find free slotsFinds both free and busy time slots in Google Calendars for specified calendars within a defined time range.
Get Google CalendarRetrieves a specific Google Calendar, identified by `calendar_id`, to which the authenticated user has access.
Get current date and timeGets the current date and time, allowing for a specific timezone offset.
List BuildingsLists all buildings for a Google Workspace customer account with full details including addresses, coordinates, and floor names.
List Calendar ResourcesRetrieves calendar resources (such as conference rooms) from a Google Workspace domain using the Admin SDK Directory API.
List Google CalendarsRetrieves calendars from the user's Google Calendar list, with options for pagination and filtering.
Patch CalendarPartially updates (PATCHes) an existing Google Calendar, modifying only the fields provided.
Patch EventUpdate 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.
Quick Add EventParses 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'.
Remove attendee from eventRemoves an attendee from a specified event in a Google Calendar; the calendar and event must exist.
Get Calendar SettingTool to return a single user setting for the authenticated user.
List SettingsReturns all user settings for the authenticated user.
Watch SettingsWatch for changes to Settings resources.
Update Google eventUpdates an existing event in Google Calendar.

Conclusion

You've successfully integrated Google Calendar with Codex using Composio's MCP server. Now you can interact with Google Calendar directly from your terminal, VS Code, or the Codex App using natural language commands.

Key benefits of this setup:

  • Seamless integration across CLI, VS Code, and standalone app
  • Natural language commands for Google Calendar operations
  • Managed authentication through Composio
  • Access to 20,000+ tools across 1000+ apps for cross-app workflows
  • CodeAct workbench for complex tool chaining

Next steps:

  • Try asking Codex to perform various Google Calendar operations
  • Explore cross-app workflows by connecting more toolkits
  • Build automation scripts that leverage Codex's AI capabilities

How to build Google Calendar MCP Agent with another framework

FAQ

What are the differences in Tool Router MCP and Google Calendar MCP?

With a standalone Google Calendar MCP server, the agents and LLMs can only access a fixed set of Google Calendar tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Google Calendar and many other apps based on the task at hand, all through a single MCP endpoint.

Can I use Tool Router MCP with Codex?

Yes, you can. Codex fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Google Calendar tools.

Can I manage the permissions and scopes for Google Calendar while using Tool Router?

Yes, absolutely. You can configure which Google Calendar scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

How safe is my data with Composio Tool Router?

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.

Used by agents from

Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.