Google Calendar MCP
Google 日历集成项目
该项目提供与 Google 日历 API 的集成,以编程方式管理和与日历事件交互。
先决条件
Python 3.8 或更高版本
Google 云端平台帐户
已启用 Google 日历 API
OAuth 2.0 凭据已配置
Related MCP server: Google Calendar MCP Server
设置说明
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 Google 日历集成项目:
npx -y smithery install @Avik-creator/googlecalendarMCP --client claude手动安装
克隆存储库
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
特征
创建、读取、更新和删除日历事件
设置重复事件
管理活动参与者
处理事件通知和提醒
项目结构
googlecalendarMCP/
├── auth.py # Authentication handling
├── main.py # Main application entry point
├── requirements.txt # Project dependencies
├── .env # Environment variables
├── credentials.json # Google OAuth credentials
└── token.json # Generated OAuth token依赖项
该项目使用以下主要依赖项:
google-auth-oauthlib
google-auth-httplib2
google-api-python-客户端
python-dotenv
部署的配置:
{
"mcpServers": {
"google_calendar_mcp": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp-google-calendar.avikm744.workers.dev/sse"
]
}
}
}安全说明
切勿将您的
credentials.json、token.json或.env文件提交到版本控制确保您的 OAuth 凭证安全
定期轮换您的凭证和令牌
贡献
分叉存储库
创建功能分支
提交你的更改
推送到分支
创建拉取请求
执照
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅 LICENSE 文件。
This server cannot be deployed
Maintenance
Related MCP Connectors
Calendar API for AI agents: events, availability, Google/Microsoft setup, scheduling, and iCal.
Manage Google, Outlook & Apple calendars and create private sync rules from chat.
Schedule and manage Google Calendar events directly from your workspace. Check availability, view…
Sync Google, Outlook, and iCloud calendars and manage events, availability, and booking links.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables 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.9 npm2MIT
- AlicenseNot gradedqualityCmaintenanceEnables management of Google Calendar events across multiple calendars with natural language support, including searching events, checking availability, creating/updating/deleting events, responding to invitations, and auto-generating Google Meet links.106 npm49MIT
- AlicenseNot gradedqualityDmaintenanceEnables managing Google Calendar events including creating, listing, updating, and deleting events through natural language.4 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Google Calendar events through natural language interactions, including creating, updating, deleting, and listing events.8 npmISC