Skip to content
google-calendar-mcp logo

Google Calendar MCP Setup Guide

google-calendar-mcp

Step-by-step guide for setting up Google Calendar MCP server in Claude Code CLI. Use when users want to (1) connect Google Calendar to Claude Code, (2) set up the @cocal/google-calendar-mcp server, (3) configure OAuth credentials for Google Calendar API, or (4) troubleshoot Google Calendar MCP co...

SKILL.md

Full skill instructions

Google Calendar MCP Setup Guide

Set up Google Calendar integration for Claude Code CLI using the @cocal/​google-calendar-mcp server.

Source: https://github.com/nspady/google-calendar-mcp

Prerequisites

  • Node.js installed (for npx)
  • Google account
  • Claude Code CLI installed

Part 1: Google Cloud Console Setup

Step 1: Create Project

  1. Go to https://console.cloud.google.com/
  2. Click project dropdown (top-left) → New Project
  3. Name: Claude Calendar → Create
  4. Select the new project from dropdown

Step 2: Enable Calendar API

  1. Go to APIs & Services → Library
  2. Search "Google Calendar API" → Click → Enable

Step 3: OAuth Consent Screen

  1. Go to APIs & Services → OAuth consent screen
  2. Select External → Create
  3. Fill required fields:
    • App name: Claude Calendar
    • User support email: (your email)
    • Developer contact: (your email)
  4. Click Save and Continue
  5. Scopes page → Add or Remove Scopes
    • Add: https://www.googleapis.com/​auth/​calendar
    • Click Update → Save and Continue
  6. Test Users → Add Users → Add your Gmail → Save and Continue

Step 4: Create Credentials

  1. Go to APIs & Services → Credentials
  2. Click + Create Credentials → OAuth client ID
  3. Application type: Desktop app
  4. Name: Claude Code
  5. Click Create → Download JSON

Part 2: Save Credentials

Save the downloaded JSON file:

Windows:

C:\Users\salmanferoz\.google-calendar-mcp\gcp-oauth.keys.json

Mac/​Linux:

~/​.google-calendar-mcp/​gcp-oauth.keys.json

Create the .google-calendar-mcp folder if it doesn't exist.

Part 3: Add MCP to Claude Code

Auto-Setup Command

When the user has saved their credentials, run this command automatically:

Windows:

claude mcp add --scope user --transport stdio google-calendar --env GOOGLE_OAUTH_CREDENTIALS="C:\Users\salmanferoz\.google-calendar-mcp\gcp-oauth.keys.json" -- npx -y @cocal/​google-calendar-mcp

Mac/​Linux:

claude mcp add --scope user --transport stdio google-calendar --env GOOGLE_OAUTH_CREDENTIALS="$HOME/​.google-calendar-mcp/​gcp-oauth.keys.json" -- npx -y @cocal/​google-calendar-mcp

Manual JSON Config (Alternative)

Add to ~/​.claude.json:

{
  "mcpServers": {
    "google-calendar": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@cocal/​google-calendar-mcp"],
      "env": {
        "GOOGLE_OAUTH_CREDENTIALS": "/​path/​to/​.google-calendar-mcp/​gcp-oauth.keys.json"
      }
    }
  }
}

Part 4: First Authorization

  1. Restart Claude Code: claude
  2. Ask: "What's on my calendar today?"
  3. Browser opens → Sign in with Google
  4. Click Continue (ignore "unverified app" warning)
  5. Grant calendar permissions
  6. Token saved automatically to .google-calendar-mcp/​token.json

Available Tools

ToolDescription
list-calendarsEnumerate available calendars
list-eventsRetrieve events with date filtering
get-eventFetch specific event details by ID
search-eventsQuery events by text
create-eventAdd new calendar events
update-eventModify existing events
delete-eventRemove events
respond-to-eventAccept/​decline/​maybe invitations
get-freebusyCheck cross-calendar availability
get-current-timeRetrieve current date/​time in timezone
list-colorsView available event colors
manage-accountsAdd/​list/​remove Google accounts

Features

FeatureDescription
Multi-AccountConnect multiple Google accounts
Multi-CalendarQuery multiple calendars at once
Conflict DetectionFind overlapping events across accounts
Full CRUDCreate, read, update, delete events
Recurring EventsManage recurring event patterns
Free/​BusyCheck availability across calendars
Natural LanguageSchedule events using natural language
Event ImportImport events from images/​PDFs/​web links

Environment Variables

VariableDescription
GOOGLE_OAUTH_CREDENTIALSPath to OAuth credentials file (required)
GOOGLE_CALENDAR_MCP_TOKEN_PATHCustom token storage location (optional)

MCP Management Commands

# List configured servers
claude mcp list

# Check status (inside Claude Code)
/​mcp

# Remove server
claude mcp remove google-calendar

# Get server details
claude mcp get google-calendar

Troubleshooting

IssueSolution
"Credentials not found"Check GOOGLE_OAUTH_CREDENTIALS path is correct
"Access denied"Add your email as test user in OAuth consent screen
"API not enabled"Enable Google Calendar API in Cloud Console
Token expiredDelete token.json and re-authorize
Weekly re-auth requiredPublish app to production mode in Cloud Console

File Locations Summary

FilePurposeLocation
gcp-oauth.keys.jsonOAuth credentials~/​.google-calendar-mcp/
token.jsonAuth token (auto-created)~/​.google-calendar-mcp/
~/​.claude.jsonClaude Code configUser home directory

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View