Skip to main content

Google Calendar + Gmail Integration

Google Calendar and Gmail are connected via MCP servers, giving Claude Code native access to your calendar and inbox. The @clawdia agent uses these for morning briefings, email triage, scheduling, and follow-up tracking.

MCP Setup

Both services use separate MCP servers. If you selected Google integrations during make setup, they are already configured in .claude/settings.json.

Google Calendar MCP

Gmail MCP

Google Cloud Setup

Both MCPs share the same OAuth credentials.

1. Create a Google Cloud Project

  1. Go to console.cloud.google.com
  2. Create a new project (or use an existing one)
  3. Enable the Google Calendar API and Gmail API from the API Library

2. Create OAuth Credentials

  1. Go to APIs & Services > Credentials
  2. Click Create Credentials > OAuth client ID
  3. Application type: Desktop app
  4. Download the JSON file and save it (e.g., ~/.config/google/credentials.json)

3. Authorize on First Run

The first time Claude Code invokes a Google MCP tool, it opens a browser window for OAuth consent. Sign in with your Google account and grant the requested permissions. The token is saved to the path specified in GOOGLE_OAUTH_TOKEN.

Calendar Operations

The Google Calendar MCP provides these tools:

Example Usage in Claude Code

Gmail Operations

The Gmail MCP provides these tools:

Example Usage in Claude Code

Email Triage

The gog-email-triage skill uses Gmail MCP to:
  1. Fetch unread emails from the last N hours
  2. Classify each by urgency (P0-P3) and category
  3. Propose actions: reply, archive, create task, schedule follow-up
Run it manually or let the scheduler handle it:

Sending Emails

Email sending requires explicit confirmation. The gog-email-send skill asks for the exact string YES, SEND before executing. All sends are logged to the audit trail.

Skills That Use Google

Troubleshooting

“Token expired” — Delete the token file and restart Claude Code. It will re-prompt for OAuth consent. “Access denied” — Ensure both Calendar API and Gmail API are enabled in your Google Cloud project. “MCP server not found” — Run npx -y @anthropic-ai/google-calendar-mcp manually to verify it installs correctly. Requires Node.js 18+.