Google Calendar MCP Server
highlight-ing
README
Google Calendar MCP 服务器
一个模型上下文协议 (MCP) 服务器,提供与 Google Calendar API 交互的工具。 此服务器使您能够通过 MCP 接口以编程方式管理您的日历事件。
功能
日历工具
list_events
: 列出即将到来的日历事件,并支持按日期范围过滤create_event
: 创建包含参与者的新日历事件update_event
: 更新现有日历事件delete_event
: 删除日历事件
前提条件
- Node.js: 安装 Node.js 14 或更高版本
- Google Cloud Console 设置:
- 前往 Google Cloud Console
- 创建一个新项目或选择一个现有项目
- 启用 Google Calendar API:
- 前往 "API 和服务" > "库"
- 搜索并启用 "Google Calendar API"
- 设置 OAuth 2.0 凭据:
- 前往 "API 和服务" > "凭据"
- 点击 "创建凭据" > "OAuth 客户端 ID"
- 选择 "Web 应用程序"
- 将 "已授权的重定向 URI" 设置为包含:
http://localhost:3000/code
- 记下客户端 ID 和客户端密钥
设置说明
-
克隆和安装:
git clone https://github.com/yourusername/google-calendar-mcp-server.git cd google-calendar-mcp-server npm install
-
创建 OAuth 凭据: 在根目录中创建一个
credentials.json
文件:{ "web": { "client_id": "YOUR_CLIENT_ID", "client_secret": "YOUR_CLIENT_SECRET", "redirect_uris": ["http://localhost:3000/code"], "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://oauth2.googleapis.com/token" } }
-
获取刷新令牌:
node get-refresh-token.js
这将:
- 打开您的浏览器进行 Google OAuth 身份验证
- 请求以下权限:
https://www.googleapis.com/auth/calendar
- 将凭据保存到
token.json
- 在控制台中显示刷新令牌
-
配置 MCP 设置: 将服务器配置添加到您的 MCP 设置文件:
- 对于 VSCode Claude 扩展:
~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
- 对于 Claude 桌面应用程序:
~/Library/Application Support/Claude/claude_desktop_config.json
将以下内容添加到
mcpServers
对象:{ "mcpServers": { "google-calendar": { "command": "node", "args": ["/path/to/google-calendar-server/build/index.js"], "env": { "GOOGLE_ACCESS_TOKEN": "your_access_token", } } } }
- 对于 VSCode Claude 扩展:
-
构建和运行:
npm run build
使用示例
日历操作
-
列出事件:
{ "maxResults": 10, "timeMin": "2024-01-01T00:00:00Z", "timeMax": "2024-12-31T23:59:59Z" }
-
创建事件:
{ "summary": "团队会议", "location": "会议室", "description": "每周同步", "start": "2024-01-24T10:00:00Z", "end": "2024-01-24T11:00:00Z", "attendees": ["colleague@example.com"] }
-
更新事件:
{ "eventId": "event_id", "summary": "已更新的会议", "location": "虚拟", "description": "重新安排的每周同步", "start": "2024-01-25T10:00:00Z", "end": "2024-01-25T11:00:00Z" }
-
删除事件:
{ "eventId": "event_id" }
许可证
MIT
推荐服务器
Google Drive MCP Server
启用与 Google Drive 的集成,用于列出、读取和搜索文件,支持各种文件类型,并为 Google Workspace 文件提供自动导出功能。

AWS MCP Server
一个模型上下文协议服务器实现,使 Claude 能够通过自然语言命令在 S3 和 DynamoDB 服务上执行 AWS 操作。
Google Drive MCP Server
与 Google Drive 集成,以实现文件列表、搜索和读取,以及 Google 表格的读取和写入。
Azure MCP Server
这个服务器实现了模型上下文协议,可以与 Azure Blob 存储和 Cosmos DB 无缝交互,从而实现操作的自动日志记录和审计跟踪。
Box MCP Server
Box MCP 服务器方便使用开发者令牌认证在 Box 中搜索和读取 PDF 和 Word 文件。
MCP JSON Document Collection Server
一个模型上下文协议服务器,允许创建和管理多个 Fireproof JSON 数据库,并提供 CRUD 操作、查询功能以及云同步,以便与他人共享数据库。

Unstructured Document Processor MCP
一个模型上下文协议服务器,它使大型语言模型能够从各种文件格式的非结构化文档中提取和使用内容。
Firebase MCP Server
一个提供统一接口以与 Firebase 服务(包括身份验证、Firestore 和存储)交互的服务器。
MCP Server for Apache OpenDAL™
一个模型上下文协议服务器,通过 Apache OpenDAL™ 提供对包括 S3、Azure Blob 存储和 Google Cloud Storage 在内的多个存储服务的无缝访问。
Cloudinary MCP Server
这个服务器提供了一些工具,可以使用 Claude/Cline 直接将图片和视频上传到 Cloudinary,从而方便资源管理,并提供可定制的选项,例如资源类型和公共 ID。