Google Calendar logo

Google Calendar

Community
am2rican5

A Model Context Protocol (MCP) server that integrates with Google Calendar, built with TypeScript.

Publisheram2rican5
Repositorymcp-google-calendar
LanguageTypeScript
Forks
9
Stars
12
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Google Calendar exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    12 stars and 9 forks from the linked repository.

Google Calendar MCP Server

A Model Context Protocol (MCP) server that integrates with Google Calendar, built with TypeScript.

Features

  • Seamless Google Calendar integration with OAuth 2.0 authentication
  • Persistent token storage for automatic authentication
  • List and manage calendars with comprehensive event operations
  • Create, read, update, and delete calendar events
  • Fetch calendar events between specified dates
  • Server-Sent Events (SSE) transport option for real-time updates
  • Simple integration with Claude and other MCP-compatible AI assistants

Installation

bash
npm install -g mcp-google-calendar

Or run directly with:

bash
npx -y mcp-google-calendar

Prerequisites

  1. Node.js (v16 or higher)
  2. Google Cloud Platform account
  3. Google Calendar API enabled
  4. OAuth 2.0 credentials

Setup

1. Google Cloud Configuration

  1. Go to Google Cloud Console
  2. Create a new project or select an existing one
  3. Enable the Google Calendar API:
    • Navigate to "APIs & Services" > "Library"
    • Search for "Google Calendar API"
    • Click "Enable"
  4. Configure OAuth consent screen:
    • Go to "APIs & Services" > "OAuth consent screen"
    • Choose "External" user type (or "Internal" for Google Workspace)
    • Fill in required information:
      • App name: mcp-calendar
      • User support email: (your email)
      • Developer contact information: (your email)
    • Add scopes:
    • Complete the setup
  5. Create OAuth credentials:
    • Go to "Credentials"
    • Click "Create Credentials" > "OAuth Client ID"
    • Choose "Desktop app" as application type
    • Name it (e.g., "MCP Calendar Desktop Client")
    • Download the JSON file and save as credentials.json in your project directory

2. Environment Configuration

Create a .env file in your project root:

# Server configuration
PORT=3420

# Google Calendar API configuration
CREDENTIALS_PATH=./credentials.json

Usage

Starting the Server

Start with standard WebSockets:

bash
npx -y mcp-google-calendar

Start with Server-Sent Events (SSE):

bash
npx -y mcp-google-calendar --sse

With Claude Desktop

Add this to your claude_desktop_config.json:

json
{
   "mcpServers": {
      "mcp-google-calendar": {
         "command": "npx",
         "args": ["-y", "mcp-google-calendar"],
         "env": {
            "CREDENTIALS_PATH": "/path/to/your/credentials.json"
         }
      }
   }
}

Authentication Process

The first time you run the server:

  1. A browser window will open automatically
  2. Sign in with your Google account
  3. Grant the requested calendar permissions
  4. The authentication token is saved to token.json

On subsequent launches:

  • The server uses the saved token automatically
  • No browser interaction is required unless the token expires

Available Tools

ToolDescription
list_calendarsGet all available calendars
list_calendar_eventsRetrieve events between specified dates
create_calendar_eventAdd a new event to your calendar
get_calendar_eventFetch details for a specific event
edit_calendar_eventModify an existing calendar event
delete_calendar_eventRemove an event from your calendar

Development

Clone and set up the project:

bash
git clone https://github.com/am2rican5/mcp-google-calendar.git
cd mcp-google-calendar
npm install

Build the project:

bash
npm run build

Run in development mode:

bash
npm start

Security Considerations

⚠️ Important Security Warning ⚠️

  • credentials.json and token.json contain sensitive authentication information
  • Never commit these files to version control or share them publicly
  • Each user should create their own OAuth credentials
  • If you suspect credential compromise, revoke them immediately in Google Cloud Console
  • The token grants access to your Google Calendar data

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "mcp-google-calendar": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-calendar"
      ],
      "env": {
        "CREDENTIALS_PATH": "/path/to/your/credentials.json"
      }
    }
  }
}

Use Google Calendar MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Google Calendar is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Google Calendar as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Google Calendar MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "google-calendar": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-calendar"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Google Calendar MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Google Calendar MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Google Calendar to help me with this task?
Google Calendar
Sure. I read it.
Here is what I found using Google Calendar.

Frequently asked questions

What is the Google Calendar MCP server used for?

Google Calendar is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Google Calendar MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Google Calendar with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Google Calendar MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Google Calendar connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Google Calendar MCP to TypingMind?

Google Calendar runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Google Calendar MCP provide in TypingMind?

Google Calendar exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Google Calendar MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Google Calendar requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇