Google Calendar MCP 服务器是一个用于 Google 日历集成的 Claude Desktop 模型上下文协议(MCP)服务器。借助该服务器,AI 助手能够通过自然语言交互来管理 Google 日历事件,为用户提供便捷的日历管理体验。
本服务器允许 AI 助手通过自然语言交互管理 Google 日历事件,你可以按照以下步骤进行安装和设置。
要通过 Smithery 自动安装 Claude Desktop 的 Google 日历集成,可使用以下命令:
npx -y @smithery/cli install @gongrzhe/server-calendar-mcp --client claude
使用以下命令进行手动安装:
npm install @gongrzhe/server-calendar-mcp
GOOGLE_CLIENT_ID 和 GOOGLE_CLIENT_SECRET。GOOGLE_REFRESH_TOKEN。{
"calendar": {
"command": "npx",
"args": [
"@gongrzhe/server-calendar-mcp"
],
"env": {
"GOOGLE_CLIENT_ID": "your_client_id_here",
"GOOGLE_CLIENT_SECRET": "your_client_secret_here",
"GOOGLE_REFRESH_TOKEN": "your_refresh_token_here"
}
}
}
# 创建新日历
curl -X POST http://localhost:3000/calendars \
-H 'Content-Type: application/json' \
-d '{"name": "My Calendar"}'
# 在指定日历中创建事件
curl -X POST http://localhost:3000/calendars/[CALENDAR_ID]/events \
-H 'Content-Type: application/json' \
-d '{"summary": "Meeting", "start": {"dateTime": "2024-01-01T10:00:00"}, "end": {"dateTime": "2024-01-01T11:00:00"}}'
# 获取所有日历
curl http://localhost:3000/calendars
# 获取特定日历的事件
curl http://localhost:3000/calendars/[CALENDAR_ID]/events
欢迎贡献!请随意提交 Pull Request。
本项目使用 ISC 许可证。
gongrzhe