Google 日历集成项目
该项目提供与 Google 日历 API 的集成,以编程方式管理和与日历事件交互。
先决条件
Python 3.8 或更高版本
Google 云端平台帐户
已启用 Google 日历 API
OAuth 2.0 凭据已配置
设置说明
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 Google 日历集成项目:
手动安装
克隆存储库
git clone https://github.com/Avik-creator/googlecalendarMCP cd googlecalendarMCP设置虚拟环境
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`安装依赖项
pip install -r requirements.txtGoogle 云平台设置
a. 转到Google Cloud Console b. 创建新项目或选择现有项目 c. 启用 Google 日历 API d. 创建 OAuth 2.0 凭据:
前往 API 和服务 > 凭证
点击“创建凭证”>“OAuth 客户端 ID”
选择“桌面应用程序”
下载凭证 JSON 文件
将其重命名为
credentials.json
并将其放在项目根目录中
环境变量
在项目根目录中创建一个
.env
文件,其中包含以下变量:GOOGLE_APPLICATION_CREDENTIALS=path/to/credentials.json CALENDAR_ID=your_calendar_id@group.calendar.google.com
用法
首次身份验证
python auth.py这将打开一个用于 OAuth 身份验证的浏览器窗口。按照提示授权应用程序。
运行应用程序
python main.py
特征
创建、读取、更新和删除日历事件
设置重复事件
管理活动参与者
处理事件通知和提醒
项目结构
依赖项
该项目使用以下主要依赖项:
google-auth-oauthlib
google-auth-httplib2
google-api-python-客户端
python-dotenv
部署的配置:
安全说明
切勿将您的
credentials.json
、token.json
或.env
文件提交到版本控制确保您的 OAuth 凭证安全
定期轮换您的凭证和令牌
贡献
分叉存储库
创建功能分支
提交你的更改
推送到分支
创建拉取请求
执照
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅 LICENSE 文件。
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
通过自然语言交互实现对 Google 日历事件的程序化管理,支持创建、读取、更新和删除事件,并具有重复事件、参加者和提醒的功能。
Related MCP Servers
- -securityAlicense-qualityEnables comprehensive calendar management with capabilities to create, list, update, and delete events through a Model Context Protocol server integrated with Google Calendar.Last updated -143MIT License
- -securityAlicense-qualityEnables AI assistants to manage Google Calendar through natural language interactions with features like creating, updating, and deleting events, searching calendars, and supporting natural language date/time inputs.Last updated -22MIT License
- -securityFlicense-qualityEnables LLMs to read, create, and manage Google Calendar events through a standardized interface, including features like listing calendars, managing events, and processing calendar information from screenshots and images.Last updated -141
- AsecurityAlicenseAqualityProvides comprehensive Google Calendar integration capabilities allowing AI assistants to list, create, update, and delete calendar events through a standardized Model Context Protocol.Last updated -54MIT License