谷歌日历JSON-RPC服务

通过JSON-RPC 2.0协议提供谷歌日历事件管理功能的MCP服务器,支持事件查询、创建、编辑和删除操作。

  • by cherya
  • Go
  • 本地部署
  • 更新于
在 GitHub 查看 cherya/google-calendar-mcp

使用说明

日历mcp

用于谷歌日历的MCP服务器。使用JSON-RPC 2.0在stdio上运行。

特性

  • list_事件 --未来N天即将发生的事件(默认值:7)
  • list_events_range --两个日期之间的事件
  • create_event --创建带有日期和时间的事件
  • 编辑事件 --更新现有事件
  • 删除事件 --删除事件

需求

  • 转到1.24+
  • 启用日历API的Google云服务帐户
  • 与服务帐户电子邮件共享的日历

设置

1.谷歌证书

跟随 docs/google-service-account-setup.md 创建服务帐户并获取JSON密钥文件。

2.安装

go install github.com/cherya/google-calendar-mcp@latest

或者从源代码构建:

git clone https://github.com/cherya/google-calendar-mcp.git
cd google-calendar-mcp
go build -o google-calendar-mcp .

3.环境变量

  • GOOGLE_CREDENTIALS_FILE --服务帐户JSON密钥的路径
  • CALENDAR_ID --谷歌日历ID(通常是您的电子邮件地址)
  • CALENDAR_TIMEZONE --IANA时区(例如。 Europe/Berlin),默认为 UTC

使用Claude Desktop

添加到您的 claude_desktop_config.json:

{
  "mcpServers": {
    "google-calendar": {
      "command": "google-calendar-mcp",
      "env": {
        "GOOGLE_CREDENTIALS_FILE": "/path/to/service-account.json",
        "CALENDAR_ID": "your-email@gmail.com",
        "CALENDAR_TIMEZONE": "America/New_York"
      }
    }
  }
}

许可证

麻省理工学院