I tried retrieving schedule items with Google Calendar connector in Claude Code

I tried retrieving schedule items with Google Calendar connector in Claude Code

2026.03.08

This page has been translated by machine translation. View original

Introduction

I'm kasama from the Data Business Division.
With Claude Code v2.1.46 (released February 17, 2026), connectors added in Claude.ai can now be used in Claude Code as well. This means connectors like Google Calendar can be used in Claude Code. Today, I'd like to try retrieving calendar events using this Google Calendar connector.

https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md#2146:~:text=Added support for using claude.ai MCP connectors in Claude Code

Prerequisites

What is the Google Calendar Connector?

The Google Calendar connector allows Claude to retrieve, create, update, and delete events in Google Calendar. It is developed by Google.

https://claude.com/connectors/google-calendar

To use it in Claude Code, you need to be logged in with a paid Claude plan account (Pro/Max/Team, etc.). The official documentation states:

If you've logged into Claude Code with a Claude.ai account, MCP servers you've added in Claude.ai are automatically available in Claude Code

https://code.claude.com/docs/en/mcp

How It Works

Connectors use MCP to connect Claude Code with external services. According to the Connectors Directory FAQ, in the case of Claude Code, your PC connects directly to the MCP server. OAuth is used for authentication with MCP servers that require it.

https://support.claude.com/en/articles/11596036-anthropic-connectors-directory-faq

Setup

First, add Google Calendar in the settings screen (settings/connectors) of Claude Web or Claude Desktop.
Screenshot 2026-03-07 at 23.07.43

The browser will automatically redirect, and you'll need to authorize your Google account.
Screenshot 2026-03-07 at 21.01.45
After authorization, you can configure the tool's permissions. Since I don't need write access, I blocked everything.
Screenshot 2026-03-07 at 23.12.44
I launched Claude Code, executed the /mcp command, and confirmed that the Google Calendar connector was showing as connected.
Screenshot 2026-03-07 at 23.16.55
MCP servers added in Claude.ai appear as claudeai in Claude Code's /plugin screen.
Screenshot 2026-03-07 at 23.18.00

Testing It Out

I asked Claude Code to "show me tomorrow's schedule."
The calendar events came back without any issues!
Screenshot 2026-03-07 at 23.20.16

Security Considerations

Calendar data retrieved through connectors may include content you didn't create yourself, such as invitation events from external sources.
If malicious instructions are embedded in an event's description, Claude might read them and attempt to execute commands using Bash tools, etc. (indirect prompt injection).
In Claude Code, a confirmation prompt is displayed by default before executing tools, allowing you to reject suspicious operations.

Countermeasures

  • Don't disable confirmation prompts: Using options like --dangerously-skip-permissions for automatic approval could allow malicious commands to execute
  • Be cautious of suspicious calendar invitations: Event descriptions from external invitations could contain prompt injections
  • Don't use connectors in environments with strict security requirements: Depending on your risk tolerance, disabling connectors entirely may be an option

Security company LayerX has reported similar vulnerabilities for Claude Desktop Extensions (DXT).

https://layerxsecurity.com/blog/claude-desktop-extensions-rce/

Conclusion

I tried retrieving calendar events using Claude Code's Google Calendar MCP connector.
Traditionally, using the Google Calendar API required creating a Google Cloud project and setting up OAuth client IDs, but with connectors, these developer-side setups are no longer necessary—you can start using it just by authorizing your Google account. On the other hand, since the structure allows LLMs to read external data, be aware of indirect prompt injection risks and keep the above countermeasures in mind. I hope this information is helpful.

Share this article

FacebookHatena blogX