Google Calendar MCP Integration

Connect your agent to Google Calendar using Composio MCP

Overview

This tutorial will guide you through the process of setting up a Google Calendar integration for your Agent5ive agent using the Model Context Protocol (MCP) via Composio. This integration will allow your agent to:

  • Create calendar events
  • Find and retrieve event details
  • Check for free time slots
  • List calendars
  • Delete or modify events
  • And more!

Prerequisites

  • An Agent5ive account
  • A Google account with Calendar access
  • Access to the Composio MCP platform (free to sign up)

Step-by-Step Guide

1

Create a Composio Account

Visit mcp.composio.dev and create a free account if you don't already have one.

Composio MCP homepage

Composio MCP homepage

2

Navigate to the Dashboard

After signing in, you'll be taken to the dashboard where you can see all available integrations. Look for the Google Calendar integration.

Composio MCP Dashboard

Composio MCP Dashboard showing available integrations

3

Authenticate with Google Calendar

Click on the Google Calendar integration and you'll be prompted to authenticate. Composio offers simplified authentication that handles the OAuth flow for you.

Google Calendar Authentication

Google Calendar Authentication Dialog

Select "OAuth 2.0" with the "Managed" option and click "Connect". You'll be redirected to Google's authentication page where you'll need to grant permission for Composio to access your Google Calendar.

4

Create a Google Calendar MCP Server

Find the Google Calendar integration and click the "Create Server" button. You'll be prompted to name your server.

Creating a Google Calendar MCP Server

Creating a Google Calendar MCP Server

Enter a name for your server (e.g., "GoogleCalendar Server") and click "Next" to proceed to the next step.

5

Configure Calendar Actions

Select the actions you want your agent to be able to perform with Google Calendar. For a fully functional calendar assistant, we recommend selecting all available actions.

Configuring Google Calendar Actions

Configuring Google Calendar Actions

After selecting the desired actions, click "Create Server" to finalize the MCP server creation.

6

Copy the MCP Server URL

After successful authentication, your MCP server will be created. Navigate to "Your MCP Servers" in the sidebar, find your Google Calendar server, and copy the Server URL.

The URL will look something like:

https://mcp.composio.dev/composio-googlecalendar-12345

Keep this URL handy as you'll need it in the next step.

7

Configure Your Agent5ive Agent

Now, let's integrate this MCP server with your Agent5ive agent:

  1. Log in to your Agent5ive account
  2. Create a new agent or edit an existing one
  3. Navigate to the "Tools" section during agent creation/editing
  4. Expand the "Advanced Tools (MCP - Experimental)" section
  5. Toggle on "Enable Advanced Tools (via MCP Server)"
  6. Paste the MCP Server URL you copied from Composio
  7. Click the "Validate" button to verify the connection

If the validation is successful, you'll see a list of the Google Calendar tools that are now available to your agent.

8

Test Your Integration

After deploying your agent, test the Google Calendar integration by asking the agent to perform calendar-related tasks.

Example Prompts to Test:

  • "Schedule a meeting with John tomorrow at 2 PM"
  • "What's my schedule for next week?"
  • "Find a free time slot for a 1-hour meeting on Friday"
  • "Create a reminder for my doctor's appointment on Monday at 10 AM"
  • "Move my 3 PM meeting to 4 PM"

Your agent should now be able to interact with your Google Calendar, creating events, checking your schedule, and more!

Troubleshooting

Validation Fails

If the MCP server validation fails in Agent5ive, check:

  • The URL is correct and includes the full path
  • The MCP server is running and accessible
  • Your Google authentication is still valid
  • You've granted all necessary permissions

Agent Can't Access Calendar

If your agent can't access your calendar:

  • Verify that the Google account you authenticated with has the calendar you're trying to access
  • Check if you need to re-authenticate (tokens can expire)
  • Make sure you've selected the appropriate actions when configuring your MCP server (e.g., list_calendars, get_calendar)

Next Steps

Now that you've set up Google Calendar integration, you might want to:

  • Customize your agent's system prompt - Add specific instructions about how and when to use the calendar tools
  • Explore other MCP integrations - Check out other available tools on the Composio platform
  • Create specialized calendar agents - Build agents specifically designed for scheduling, meeting management, or event planning