Google Workspace Integration for Life Automation
My AI reads my calendar, drafts email replies, and pulls context from previous conversations -- all through MCP servers that took about an hour to set up.
My AI reads my calendar, drafts email replies, and pulls relevant context from previous conversations — all through MCP servers that took about an hour to set up.
This isn’t a prototype. It’s my daily workflow. I wake up, open a terminal, and say “what’s on my calendar today and are there any emails I need to handle before my first meeting?” The AI checks both, summarizes what matters, and drafts responses for anything time-sensitive.
The technology behind this is MCP — Model Context Protocol. Two community-built MCP servers connect Claude to Google Calendar and Gmail. A third server (my own memory system) provides context from previous sessions so the AI knows who these people are and what we discussed last time.
The OAuth Setup Nobody Explains Well
The hardest part of the entire setup is Google OAuth. Not because it’s conceptually difficult, but because Google’s documentation assumes you’re building a production SaaS app, not connecting your personal AI to your own inbox.
Here’s what actually matters:
Step 1: Create a GCP project. Go to Google Cloud Console, create a new project. Name it something you’ll recognize in six months. I called mine “AI-MCP-Personal.”
Step 2: Enable the APIs. You need Gmail API and Google Calendar API. Search for each in the API Library and click Enable. This takes 30 seconds but people miss it and spend hours debugging authentication failures.
Step 3: Create OAuth credentials. Go to Credentials, create an OAuth 2.0 Client ID. Application type is “Desktop app.” Download the JSON file. This file contains your client ID and client secret. Store it somewhere stable — mine lives at ~/.config/google-mcp/gcp-oauth.keys.json.
Step 4: Configure consent screen. Set it to “External” (unless you have a Google Workspace org). Add your own email as a test user. This is the part that trips people up — if you don’t add yourself as a test user, the OAuth flow will fail with a cryptic “access denied” error.
Step 5: First authentication. When you first start the MCP server, it opens a browser window for Google’s consent flow. You log in, grant permissions, and it stores a refresh token locally. After this, authentication is automatic.
The whole process takes 20-30 minutes if you know what you’re doing, an hour if you’re figuring it out. After that, you never touch it again.
What Calendar MCP Actually Does
The Google Calendar MCP server exposes about 13 tools. The ones I use daily:
list-events pulls your agenda for a date range. I typically ask for “today” or “this week.” The response includes event titles, times, attendees, locations, and video call links. This alone saves me from opening Google Calendar in a browser.
create-event books meetings directly from conversation. “Schedule a 30-minute call with Kristen next Tuesday at 2pm ET” creates the event with the right timezone, adds her email, and includes a video link. The AI handles the timezone conversion, which is more useful than it sounds when you’re coordinating across time zones.
get-freebusy checks availability without revealing event details. This is useful when someone asks “when are you free this week?” The AI can check your calendar and suggest three time slots without exposing what your other meetings are about.
search-events finds events by keyword across your calendar history. “When did I last meet with Eric?” pulls up the relevant event. Combined with memory MCP, the AI can tell me what we discussed at that meeting too.
The calendar integration changes how I think about scheduling. Instead of context-switching to a browser, opening Calendar, clicking through date pickers, and manually checking time zones, I describe what I want in natural language and it happens. The friction reduction compounds over weeks.
Gmail: Where It Gets Interesting
The Gmail MCP server exposes 18 tools. Email is where the integration starts paying for itself in serious ways.
search-emails uses Gmail’s native search syntax. “Find all emails from Kristen in the last week” or “emails with attachments about the pitch deck.” The search runs server-side so it’s fast even with a large inbox.
read-email pulls the full content of a specific message. Combined with search, this lets the AI read relevant email threads and understand context before drafting a reply.
draft-email creates a draft in your Gmail account without sending it. This is the safety pattern I insist on. The AI never sends email directly — it creates drafts that I review and send manually. The gap between “draft” and “send” is where human judgment lives, and I’m not ready to remove it.
send-email exists in the API but I’ve made it a rule: the AI drafts, I send. The one exception is automated responses to clearly formulaic emails (meeting confirmations, read receipts). Everything else gets human review.
create-filter and create-label let the AI organize your inbox programmatically. “Create a filter that labels all emails from guardspine.io domains as ‘GuardSpine’ and skips the inbox” takes five seconds through MCP versus clicking through Gmail’s settings UI.
The Auto-Auth Pattern
One thing I learned the hard way: the Gmail MCP server’s authentication can expire or lose its refresh token. When this happens mid-session, you get unhelpful errors about failed API calls.
My fix is a pre-session check. Before doing any email work, the AI runs a lightweight operation (like listing labels) to verify the connection is live. If it fails, it triggers re-authentication before I’ve invested time composing a response.
This pattern — verify before you depend — applies to all MCP integrations. Never assume the connection is healthy. Test it with a cheap operation first.
Memory Makes It Work
The Google integrations are useful on their own. They become powerful when combined with memory MCP.
Here’s a real example from last week. I asked: “Draft a follow-up email to Kristen about the advisor agreement.”
Without memory, the AI would need me to explain who Kristen is, what we’ve discussed, what the advisor terms are, and what tone to use. With memory, it already knows:
- Kristen Hengst Smith is our GTM advisor
- She gets 2% equity, no cash, no cliff
- Our last sync covered the pincher GTM strategy
- The next sync is scheduled for Tuesday
The draft it produced referenced our previous conversation, used the right level of familiarity, and included the specific terms we’d agreed on. I made one small edit and sent it.
That’s the difference between a tool and a system. The Gmail MCP is a tool. Gmail MCP plus Memory MCP is a system. The system has context. The tool just has an API.
Privacy: What Stays Local
This matters, so I’ll be direct about what happens to your data.
MCP servers run locally. The Gmail and Calendar servers run on your machine. They make API calls to Google’s servers using your OAuth credentials. Your email content travels from Google to your local machine to the AI model.
The AI model sees your email content. When you ask the AI to read an email, the full text goes into the context window. If you’re using Claude via API, Anthropic’s data retention policies apply. If you’re using Claude Code, the conversation data is handled per Anthropic’s terms.
Memory MCP stores summaries locally. My memory system stores session summaries and entity relationships in a local database. Email content that gets summarized into memory stays on my machine in ChromaDB and SQLite files.
What I don’t do: I don’t send email content to third-party services. I don’t store full email bodies in memory — only relevant facts and decisions. I don’t give the AI permission to auto-send emails to people I haven’t communicated with before.
The privacy model is: Google already has your email. Your AI model sees what you ask it to see. Everything else stays local. If that trade-off doesn’t work for you, don’t connect your email to AI tools. I’m comfortable with it because the alternative — manually copying email content into chat windows — exposes the same data with more friction.
The Daily Workflow
Here’s what a typical morning looks like:
7:30 AM: Open terminal. “What’s on my calendar today and flag any emails that need responses before my 9 AM.”
The AI checks Calendar, finds three meetings. Checks Gmail, finds 14 new emails. Identifies two that need pre-meeting responses: one from a potential advisor asking about equity terms, one from a contributor with a PR question.
7:35 AM: “Draft a response to the equity question. Reference our standard advisor terms.”
Memory MCP provides the context (2% equity, no cash, advisory agreement template). Gmail MCP drafts the response. I read it, fix one sentence, send.
7:38 AM: “The PR question — pull up the PR and draft a response.”
The AI reads the email, follows the GitHub link (via Chrome MCP if needed), understands the code change, and drafts a technical response. Total time from email to sent reply: 4 minutes.
7:42 AM: Ready for the 9 AM meeting with context already loaded.
Before this setup, the same routine took 30-45 minutes of inbox scanning, context-switching between tabs, looking up previous conversations, and composing replies from scratch.
Getting Started
If you want to replicate this setup:
- Create a GCP project and enable Gmail + Calendar APIs (20 minutes)
- Set up OAuth credentials and add yourself as a test user (10 minutes)
- Install the Gmail and Calendar MCP servers in your Claude Code config (10 minutes)
- Run a test query to trigger the OAuth flow (5 minutes)
- Add a memory MCP server for cross-session context (optional but recommended)
The technical barriers are low. The real investment is developing the habits — learning to ask your AI for information instead of opening a browser tab, trusting drafts enough to review-and-send instead of writing from scratch, and building the muscle memory of a conversation-driven workflow.
It took me about two weeks before it felt natural. Now opening Gmail in a browser feels like going backwards.
I build AI infrastructure for personal and team productivity — memory systems, governance tools, and integration patterns that make AI assistants actually useful across your workday. If you’re building similar workflows, let’s talk: cal.com/davidyoussef