Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Setting Up AI Google Calendar Automation | Smarter Communication & Time Control
Agentic AI for Automating Daily Office Tasks

bookSetting Up AI Google Calendar Automation

In this setup, you will connect the Google Calendar MCP server.

Google Cloud Console Configuration

The Google Calendar API requires a dedicated project configuration within Google Cloud Console. This process mirrors the Gmail setup but requires specific Calendar API permission.

Project Creation Steps
expand arrow
  1. Access Google Cloud Console through browser;
  2. Create new project with descriptive name (e.g., "gcalendar agent");
  3. Switch to newly created project once initialization completes.
OAuth Consent Screen Configuration
expand arrow
  1. If prompted, click "Configure consent screen";
  2. Enter application name (e.g., "calendar mcp");
  3. Specify authorized email address;
  4. Select "External Audience" for user type restrictions;
  5. Provide contact information using the same email;
  6. Accept User Data Policy requirements.
Calendar API Activation
expand arrow
  1. Navigate to APIs and Services β†’ Library;
  2. Search for "Calendar API";
  3. Select first result and enable API access;
  4. Verify API status shows as "Enabled".
Credentials Generation
expand arrow
  1. Access Credentials section in the APIs and Services;
  2. Create OAuth client ID;
  3. Select "Desktop Application" as application type;
  4. Download generated JSON credentials file;
  5. Temporarily store file on Desktop for easy access (optional).

Option 1: Run Prompts in Claude (Recommended)

Cloning the MCP Server Repository
expand arrow

In Claude, copy and paste the following prompt:

Create a new folder named projects in my Documents directory to store all MCP servers.
Then clone the repository using: git clone https://github.com/nspady/google-calendar-mcp.git into that folder.
After cloning, move the file gcp-oauth.keys.json from my Desktop into the cloned repo.

Claude will automatically create the projects folder, clone the repository, move the credentials JSON file into the repo.

Verify File Placement (Optional)
expand arrow
  • Open your Documents folder;
  • Check for a new projects folder;
  • Inside, a cloned repo find the new folder(e.g., google-calendar-mcp). The gcp-oauth.keys.json file placed inside the repo.
Adding Config Block
expand arrow

Run next prompt in Claude:

add next config block to claude config file
    "google-calendar": {
      "command": "npx",
      "args": ["@cocal/google-calendar-mcp"],
      "env": {
        "GOOGLE_OAUTH_CREDENTIALS": "/path/to/your/gcp-oauth.keys.json"
      }
    }
Verify Config File (Optional)
expand arrow
  • Open Settings β†’ shortcut: Cmd + , on Mac or Ctrl + , on Windows;
  • Go to the Developer tab β†’ click Edit Config;
  • Open claude_desktop_config.json file with text editor. The JSON file should now show the new config block with the correct path to your credentials file;
  • If correct, close the config window.
Restarting Claude
expand arrow
  • Fully exit Claude (Mac: Cmd + Q, Windows: Alt + F4);
  • Restart the app;
  • Upon launch, you'll be redirected to a Google authentication page:
    • Select the same Google account used for the project;
    • When prompted, click Allow to grant access;
    • Once you see authentication successful, close the tab.

Option 2: Manual Setup (if Option 1 Doesn't Work)

Directory Structure Creation
expand arrow

In your Terminal (Mac) or Command Line (Windows), start from the root directory (by default) and navigate to the folder where you will store all future AI Agent directories.

  • To access a folder, use the command cd folder_name, for example:
cd Documents

To create a new folder, use the command mkdir new_folder_name, for example:

mkdir projects

And navigate to this new folder with the cd command:

cd projects
Repository Download
expand arrow

Use the git clone link command to clone the GitHub repo:

git clone https://github.com/nspady/google-calendar-mcp.git

Move to the newly created repository by using the cd command:

cd google-calendar-mcp
Note
Note

If Git is not installed, download from the official Git website.

Credentials Integration
expand arrow

Now you need to move the file with credentials to the folder with the AI agent (google_calendar_mcp). You can do that manually by moving the file icon to the opened folder in the file explorer. Or use Terminal/Command Line and copy the file with the command cp path/to/file_name ., for example:

cp ~/Desktop/gsp-oauth.keys.json .

The dot (.) at the end specifies current directory as destination.

You can check if the JSON file was successfully moved to the folder using the ls command in the Terminal and find the file name in the list.

After moving the file, delete it from its original location (e.g., Desktop).

Package Installation
expand arrow

In the Terminal/Command Line use

npm install

This command downloads all required packages and dependencies.

Server Startup
expand arrow

Continue work in Terminal/Command Line and run

npm start

This command runs the default start script defined in the project's package.json file, which typically launches the application or server, in our case, it launches authentication flow.

Authentication Flow
expand arrow
  1. Browser window opens automatically;
  2. Select appropriate Google account;
  3. Grant calendar access permissions;
  4. Confirm "Authentication successful" message;
  5. Close browser window.
Config Block Addition
expand arrow

Claude Desktop Integration

  • Copy configuration block:
    "google-calendar": {
      "command": "node",
      "args": [
        "/path/to/build/index.js"
      ]
    }
  • Access Claude config file via Command/Ctrl + , β†’ "Developer" β†’ "Edit Config";
  • Open config file claude_desktop_config.json with text editor;
  • Add new config as next block after existing configurations and before the two last closing curly brackets;
  • Ensure proper JSON syntax with correct bracket closure and commas after each config block except the last one.
Path Configuration
expand arrow

In the Terminal/Command Line run

pwd

Copy the full directory path and insert before "/build" in config file.

Save configuration file Command/Ctrl + S.

Service Activation
expand arrow
  1. Restart Claude Desktop completely;
  2. Verify new server appears in available tools.
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 2

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

Awesome!

Completion rate improved to 10

bookSetting Up AI Google Calendar Automation

Swipe to show menu

In this setup, you will connect the Google Calendar MCP server.

Google Cloud Console Configuration

The Google Calendar API requires a dedicated project configuration within Google Cloud Console. This process mirrors the Gmail setup but requires specific Calendar API permission.

Project Creation Steps
expand arrow
  1. Access Google Cloud Console through browser;
  2. Create new project with descriptive name (e.g., "gcalendar agent");
  3. Switch to newly created project once initialization completes.
OAuth Consent Screen Configuration
expand arrow
  1. If prompted, click "Configure consent screen";
  2. Enter application name (e.g., "calendar mcp");
  3. Specify authorized email address;
  4. Select "External Audience" for user type restrictions;
  5. Provide contact information using the same email;
  6. Accept User Data Policy requirements.
Calendar API Activation
expand arrow
  1. Navigate to APIs and Services β†’ Library;
  2. Search for "Calendar API";
  3. Select first result and enable API access;
  4. Verify API status shows as "Enabled".
Credentials Generation
expand arrow
  1. Access Credentials section in the APIs and Services;
  2. Create OAuth client ID;
  3. Select "Desktop Application" as application type;
  4. Download generated JSON credentials file;
  5. Temporarily store file on Desktop for easy access (optional).

Option 1: Run Prompts in Claude (Recommended)

Cloning the MCP Server Repository
expand arrow

In Claude, copy and paste the following prompt:

Create a new folder named projects in my Documents directory to store all MCP servers.
Then clone the repository using: git clone https://github.com/nspady/google-calendar-mcp.git into that folder.
After cloning, move the file gcp-oauth.keys.json from my Desktop into the cloned repo.

Claude will automatically create the projects folder, clone the repository, move the credentials JSON file into the repo.

Verify File Placement (Optional)
expand arrow
  • Open your Documents folder;
  • Check for a new projects folder;
  • Inside, a cloned repo find the new folder(e.g., google-calendar-mcp). The gcp-oauth.keys.json file placed inside the repo.
Adding Config Block
expand arrow

Run next prompt in Claude:

add next config block to claude config file
    "google-calendar": {
      "command": "npx",
      "args": ["@cocal/google-calendar-mcp"],
      "env": {
        "GOOGLE_OAUTH_CREDENTIALS": "/path/to/your/gcp-oauth.keys.json"
      }
    }
Verify Config File (Optional)
expand arrow
  • Open Settings β†’ shortcut: Cmd + , on Mac or Ctrl + , on Windows;
  • Go to the Developer tab β†’ click Edit Config;
  • Open claude_desktop_config.json file with text editor. The JSON file should now show the new config block with the correct path to your credentials file;
  • If correct, close the config window.
Restarting Claude
expand arrow
  • Fully exit Claude (Mac: Cmd + Q, Windows: Alt + F4);
  • Restart the app;
  • Upon launch, you'll be redirected to a Google authentication page:
    • Select the same Google account used for the project;
    • When prompted, click Allow to grant access;
    • Once you see authentication successful, close the tab.

Option 2: Manual Setup (if Option 1 Doesn't Work)

Directory Structure Creation
expand arrow

In your Terminal (Mac) or Command Line (Windows), start from the root directory (by default) and navigate to the folder where you will store all future AI Agent directories.

  • To access a folder, use the command cd folder_name, for example:
cd Documents

To create a new folder, use the command mkdir new_folder_name, for example:

mkdir projects

And navigate to this new folder with the cd command:

cd projects
Repository Download
expand arrow

Use the git clone link command to clone the GitHub repo:

git clone https://github.com/nspady/google-calendar-mcp.git

Move to the newly created repository by using the cd command:

cd google-calendar-mcp
Note
Note

If Git is not installed, download from the official Git website.

Credentials Integration
expand arrow

Now you need to move the file with credentials to the folder with the AI agent (google_calendar_mcp). You can do that manually by moving the file icon to the opened folder in the file explorer. Or use Terminal/Command Line and copy the file with the command cp path/to/file_name ., for example:

cp ~/Desktop/gsp-oauth.keys.json .

The dot (.) at the end specifies current directory as destination.

You can check if the JSON file was successfully moved to the folder using the ls command in the Terminal and find the file name in the list.

After moving the file, delete it from its original location (e.g., Desktop).

Package Installation
expand arrow

In the Terminal/Command Line use

npm install

This command downloads all required packages and dependencies.

Server Startup
expand arrow

Continue work in Terminal/Command Line and run

npm start

This command runs the default start script defined in the project's package.json file, which typically launches the application or server, in our case, it launches authentication flow.

Authentication Flow
expand arrow
  1. Browser window opens automatically;
  2. Select appropriate Google account;
  3. Grant calendar access permissions;
  4. Confirm "Authentication successful" message;
  5. Close browser window.
Config Block Addition
expand arrow

Claude Desktop Integration

  • Copy configuration block:
    "google-calendar": {
      "command": "node",
      "args": [
        "/path/to/build/index.js"
      ]
    }
  • Access Claude config file via Command/Ctrl + , β†’ "Developer" β†’ "Edit Config";
  • Open config file claude_desktop_config.json with text editor;
  • Add new config as next block after existing configurations and before the two last closing curly brackets;
  • Ensure proper JSON syntax with correct bracket closure and commas after each config block except the last one.
Path Configuration
expand arrow

In the Terminal/Command Line run

pwd

Copy the full directory path and insert before "/build" in config file.

Save configuration file Command/Ctrl + S.

Service Activation
expand arrow
  1. Restart Claude Desktop completely;
  2. Verify new server appears in available tools.
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 2
some-alt