NG

nspady/google-calendar-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

1221 stars 337 forks 质量 87 趋势 15MIT

用于管理事件的 Google 日历的 MCP 集成。

概览

一个模型上下文协议(MCP)服务器,为像Claude这样的AI助手提供谷歌日历集成。 - : 连接多个 Google 账户(例如工作账户、个人账户)并同时查询 - : 在单一请求中列出多个日历的事件 - : 检测任意日历组合中的重叠事件 - : 创建、更新、删除和搜索日历事件 - : 针对重复事件的高级修改功能 - : 检查跨日历的可用性 - : 自然语言识别日期和时间 - : 从图片、PDF 或网页链接添加日历事件 1. 一个支持 Calendar API 的 Google Cloud 项目 2.OAuth 2.0 凭证(桌面应用类型) 1. 进入 Google Cloud 控制台 2.创建新项目或选择已有项目。3. 启用你的项目的 Google 日历 API。确保在启用 API 前,从顶部栏中选中正确的项目。4. 创建 OAuth 2.

概述(AI 翻译)

一个模型上下文协议(MCP)服务器,为像Claude这样的AI助手提供谷歌日历集成。

我还做了Cocal,这是我想要的聊天日历集成:Claude里的可视化日历,显示你一天的预定时间,还有你从对话中管理的预订链接和邀请。它是托管的,所以在桌面和移动端都能使用,无需Google Cloud设置。

真实的Cocal界面,包含示例日历数据。点击任一截图可放大。 试试可卡→


特色

  • 多账户支持:连接多个谷歌账户(如工作账户、个人账户)并同时查询
  • 多日历支持:在单一请求中列出多个日历的事件
  • 跨账户冲突:检测任意日历组合中的重叠事件
  • 事件管理:创建、更新、删除和搜索日历事件
  • 重复事件:针对重复事件的高级修改功能
  • 空闲/忙碌查询:检查日历间可用性
  • 智能调度:对日期和时间的自然语言理解
  • 智能导入:从图片、PDF或网页链接添加日历事件

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Google Calendar MCP Server

A Model Context Protocol (MCP) server that provides Google Calendar integration for AI assistants like Claude.


Features

  • Multi-Account Support: Connect multiple Google accounts (e.g., work, personal) and query them simultaneously
  • Multi-Calendar Support: List events from multiple calendars in a single request
  • Cross-Account Conflicts: Detect overlapping events across any combination of calendars
  • Event Management: Create, update, delete, and search calendar events
  • Recurring Events: Advanced modification capabilities for recurring events
  • Free/Busy Queries: Check availability across calendars
  • Smart Scheduling: Natural language understanding for dates and times
  • Intelligent Import: Add calendar events from images, PDFs, or web links

Quick Start

Don’t want to set up a Google Cloud project? Cocal is a hosted option that works in Claude on desktop and mobile.

Prerequisites

  1. A Google Cloud project with the Calendar API enabled
  2. OAuth 2.0 credentials (Desktop app type)

Google Cloud Setup

  1. Go to the Google Cloud Console
  2. Create a new project or select an existing one.
  3. Enable the Google Calendar API for your project. Ensure that the right project is selected from the top bar before enabling the API.
  4. Create OAuth 2.0 credentials:
    • Go to Credentials
    • Click “Create Credentials” > “OAuth client ID”
在 GitHub 查看完整 README

安装

npx @cocal/google-calendar-mcp
新手?先看 mcpskill.org 教程 →

配置

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