Google Calendar MCP server

Integrates with Google Calendar to enable natural language-based event management, scheduling, and productivity insights.
Back to servers
Provider
Nick
Release date
Jan 08, 2025
Language
TypeScript
Stats
2 stars

This MCP server allows you to interact with your Google Calendar directly through Claude Desktop. By leveraging the Model Context Protocol (MCP), you can create, view, and analyze calendar events using natural language prompts with Claude.

Installation Requirements

  • Node.js (v14 or higher)
  • Google Cloud Project with Calendar API enabled
  • OAuth 2.0 Client credentials

Setting Up the Server

Install the Server

  1. Clone the repository to your local machine
  2. Install dependencies:
npm install
  1. Build the server:
npm run build

Configure Claude Desktop

Add the server configuration to Claude Desktop by editing the config file:

  • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%/Claude/claude_desktop_config.json

Add the following configuration:

{
  "mcpServers": {
    "Google Calendar": {
      "command": "/path/to/Google Calendar/build/index.js"
    }
  }
}

Make sure to replace /path/to/Google Calendar/build/index.js with the actual path to the built server file.

Google Cloud Setup

  1. Visit the Google Cloud Console
  2. Create a new project or select an existing one
  3. Enable the Google Calendar API for your project
  4. Create OAuth 2.0 credentials:
    • Select "Desktop application" as the application type
    • Download the client secret JSON file
    • Rename it to .client_secret.json
    • Place it in the root directory of the MCP server

Authentication

The first time you run the server, you'll need to authenticate:

  1. The server will provide an authentication URL
  2. Open the URL in your browser
  3. Sign in to your Google account and grant the requested permissions
  4. Copy the authorization code provided
  5. Paste the code back into the CLI prompt

Using the MCP Server

Once configured, you can interact with your Google Calendar through Claude Desktop using the following capabilities:

Viewing Calendar Events

Use the list_events tool to view your upcoming calendar events:

Can you show me my upcoming calendar events?

Creating Calendar Events

Use the create_event tool to add new events to your calendar:

Please create a calendar event for a team meeting tomorrow at 2pm for 1 hour with Bob and Alice

The tool accepts parameters like title, time, description, and attendees.

Analyzing Your Schedule

Use the analyze_schedule prompt to get insights about your calendar:

Can you analyze my calendar for the next week and help me identify any scheduling conflicts or busy periods?

Troubleshooting

Debugging with MCP Inspector

If you're having issues with the server, you can use the MCP Inspector for debugging:

npm run inspector

This will provide a URL to access debugging tools in your browser, allowing you to inspect the communication between Claude and the MCP server.

Common Issues

  • Authentication Errors: Make sure your .client_secret.json file is correctly placed and formatted
  • Connection Issues: Verify that the path in claude_desktop_config.json is correct
  • Permission Errors: Ensure you've granted all necessary permissions during the OAuth flow

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later