Google Calendar MCP Server

Integrations

  • Uses .env files for secure configuration and storage of credentials needed for Google Calendar API access.

  • Enables intelligent, context-aware calendar management including listing upcoming events, creating new events with custom details, updating existing events, and deleting events across multiple calendars.

  • Utilizes Google Cloud Platform and OAuth 2.0 for secure authentication and token management when accessing Google Calendar data.

Google 日历 MCP 服务器

强大的模型上下文协议 (MCP) 服务器与 Google 日历集成,提供智能、上下文感知的日历管理功能。

特征

  • 智能日历管理
    • 列出并查看即将发生的事件及其详细信息
    • 使用自定义标题、地点和参加者创建新活动
    • 使用新信息更新现有事件
    • 从日历中删除事件
    • 支持多种日历
  • 上下文感知操作
    • 维护日历操作之间的上下文
    • 智能事件格式和显示
    • 安全身份验证和令牌管理
    • 强大的错误处理和验证

先决条件

  • Node.js(v16 或更高版本)
  • Google 云端平台帐户
  • 已启用 Google 日历 API
  • 来自 Google Cloud Console 的 OAuth 2.0 凭据

设置

  1. 克隆存储库:
    git clone https://github.com/yourusername/google-calendar-mcp.git cd google-calendar-mcp
  2. 安装依赖项:
    npm install
  3. 创建.env文件:
    cp .env.example .env
  4. 使用您的 Google 日历 API 凭据更新.env文件:
    • GOOGLE_CLIENT_ID :您的 Google Cloud Console 客户端 ID
    • GOOGLE_CLIENT_SECRET :您的 Google Cloud Console 客户端密钥
    • GOOGLE_REDIRECT_URI :您配置的重定向 URI
  5. 构建项目:
    npm run build
  6. 启动服务器:
    npm start

使用示例

MCP 服务器通过自然语言命令支持各种日历操作:

活动列表

  • “显示接下来的 5 个即将发生的事件”
  • “列出下周的所有活动”
  • “我的日历上明天有什么安排?”

活动创建

  • “安排明天下午 2 点与 John 和 Sarah 会面”
  • “下周五中午 12 点与团队一起安排午餐活动”
  • “添加下周一上午 10 点的医生预约”

活动更新

  • “将我下午 2 点的会议改到下午 3 点”
  • “让 Mike 参加明天的团队会议”
  • “更新周五会议的地点”

事件删除

  • “取消我今天下午 3 点的会议”
  • “从下周五开始取消团队午餐”

安全

  • 所有凭证和令牌均安全存储,并且不提交版本控制
  • OAuth 2.0 身份验证确保安全访问 Google 日历
  • 环境变量用于敏感配置

贡献

欢迎贡献代码!欢迎提交 Pull 请求。

-
security - not tested
F
license - not found
-
quality - not tested

一个模型上下文协议服务器,可以与 Google 日历进行自然语言交互,让用户通过上下文感知操作查看、创建、更新和删除日历事件。

  1. Features
    1. Prerequisites
      1. Setup
        1. Usage Examples
          1. Event Listing
          2. Event Creation
          3. Event Updates
          4. Event Deletion
        2. Security
          1. Contributing
            ID: skol6yx2c2