Calendar MCP Server

Calendar MCP Server

镜子 (jìng zi)

MCP-Mirror

云存储
访问服务器

README

Calendar MCP Server

一个用于 Claude Desktop 中 Google 日历集成的模型上下文协议 (MCP) 服务器。该服务器使 AI 助手能够通过自然语言交互来管理 Google 日历事件。

smithery badge npm version License: ISC

功能

  • 创建包含标题、时间、描述和地点的日历事件
  • 通过事件 ID 检索事件详细信息
  • 更新现有事件(标题、时间、描述、地点)
  • 删除事件
  • 列出指定时间范围内的事件
  • 与 Google Calendar API 完全集成
  • 安全的 OAuth2 身份验证

安装

通过 Smithery 安装

要通过 Smithery 自动为 Claude Desktop 安装 Google Calendar 集成:

npx -y @smithery/cli install @gongrzhe/server-calendar-mcp --client claude

手动安装

npm install @gongrzhe/server-calendar-mcp

设置

  1. 创建一个 Google Cloud 项目并获取凭据:

    a. 创建一个 Google Cloud 项目:

    • 转到 Google Cloud Console
    • 创建一个新项目或选择一个现有项目
    • 为您的项目启用 Google Calendar API

    b. 创建 OAuth 2.0 凭据:

    • 转到“API 和服务”>“凭据”
    • 单击“创建凭据”>“OAuth 客户端 ID”
    • 选择“桌面应用”作为应用程序类型
    • 给它一个名称,然后单击“创建”
    • 您将获得您的 GOOGLE_CLIENT_IDGOOGLE_CLIENT_SECRET

    c. 获取刷新令牌:

    • 转到 OAuth 2.0 Playground
    • 单击右上角的齿轮图标(设置)
    • 选中“使用您自己的 OAuth 凭据”
    • 输入您的 OAuth 客户端 ID 和客户端密钥
    • 在左侧面板中,找到“Calendar API v3”并选择“https://www.googleapis.com/auth/calendar”
    • 单击“授权 API”并完成 OAuth 流程
    • 单击“Exchange authorization code for tokens”
    • 复制“刷新令牌” - 这是您的 GOOGLE_REFRESH_TOKEN
  2. 在 Claude Desktop 中配置:

{
  "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"
    }
  }
}

使用示例

该服务器提供了几个可以通过 Claude Desktop 使用的工具:

创建事件

{
  "summary": "Team Meeting",
  "start": {
    "dateTime": "2024-01-20T10:00:00Z"
  },
  "end": {
    "dateTime": "2024-01-20T11:00:00Z"
  },
  "description": "Weekly team sync",
  "location": "Conference Room A"
}

列出事件

{
  "timeMin": "2024-01-01T00:00:00Z",
  "timeMax": "2024-12-31T23:59:59Z",
  "maxResults": 10,
  "orderBy": "startTime"
}

更新事件

{
  "eventId": "event123",
  "summary": "Updated Meeting Title",
  "start": {
    "dateTime": "2024-01-20T11:00:00Z"
  },
  "end": {
    "dateTime": "2024-01-20T12:00:00Z"
  }
}

删除事件

{
  "eventId": "event123"
}

安全注意事项

  • 确保您的 Google API 凭据安全
  • 定期轮换您的刷新令牌
  • 将敏感信息存储在 Claude Desktop 配置中
  • 切勿共享或将您的凭据提交到版本控制
  • 刷新令牌可以访问您的 Google 日历,请像密码一样对待它

贡献

欢迎贡献!请随时提交 Pull Request。

许可证

该项目已获得 ISC 许可证的许可。

作者

gongrzhe

支持

如果您遇到任何问题或有疑问,请在 GitHub 存储库上提交问题。

推荐服务器

Google Drive MCP Server

Google Drive MCP Server

启用与 Google Drive 的集成,用于列出、读取和搜索文件,支持各种文件类型,并为 Google Workspace 文件提供自动导出功能。

本地
JavaScript
AWS MCP Server

AWS MCP Server

一个模型上下文协议服务器实现,使 Claude 能够通过自然语言命令在 S3 和 DynamoDB 服务上执行 AWS 操作。

本地
Python
Google Drive MCP Server

Google Drive MCP Server

与 Google Drive 集成,以实现文件列表、搜索和读取,以及 Google 表格的读取和写入。

本地
TypeScript
Azure MCP Server

Azure MCP Server

这个服务器实现了模型上下文协议,可以与 Azure Blob 存储和 Cosmos DB 无缝交互,从而实现操作的自动日志记录和审计跟踪。

Python
Box MCP Server

Box MCP Server

Box MCP 服务器方便使用开发者令牌认证在 Box 中搜索和读取 PDF 和 Word 文件。

JavaScript
MCP JSON Document Collection Server

MCP JSON Document Collection Server

一个模型上下文协议服务器,允许创建和管理多个 Fireproof JSON 数据库,具备 CRUD 操作、查询功能以及云同步能力,以便与他人共享数据库。 (Breakdown of the translation:) * **一个模型上下文协议服务器 (Yī gè móxíng shàngxiàwén xiéyì fúwùqì):** A Model Context Protocol server * **允许 (yǔnxǔ):** allows * **创建和管理 (chuàngjiàn hé guǎnlǐ):** creation and management * **多个 (duō gè):** multiple * **Fireproof JSON 数据库 (Fireproof JSON shùjùkù):** Fireproof JSON databases * **具备 (jùbèi):** with, possesses * **CRUD 操作 (CRUD cāozuò):** CRUD operations (Create, Read, Update, Delete) * **查询功能 (cháxún gōngnéng):** querying capabilities * **以及 (yǐjí):** and * **云同步能力 (yún tóngbù nénglì):** cloud synchronization capability * **以便 (yǐbiàn):** in order to * **与他人共享 (yǔ tārén gòngxiǎng):** sharing with others * **数据库 (shùjùkù):** databases

JavaScript
Unstructured Document Processor MCP

Unstructured Document Processor MCP

一个模型上下文协议服务器,它使大型语言模型能够从各种文件格式的非结构化文档中提取和使用内容。

Python
Firebase MCP Server

Firebase MCP Server

一个提供统一接口以与 Firebase 服务(包括身份验证、Firestore 和存储)交互的服务器。

TypeScript
MCP Server for Apache OpenDAL™

MCP Server for Apache OpenDAL™

一个模型上下文协议服务器,通过 Apache OpenDAL™ 提供对包括 S3、Azure Blob 存储和 Google Cloud Storage 在内的多个存储服务的无缝访问。

Python
Cloudinary MCP Server

Cloudinary MCP Server

这个服务器提供了一些工具,可以使用 Claude/Cline 直接将图片和视频上传到 Cloudinary,从而方便资源管理,并提供可定制的选项,例如资源类型和公共 ID。

JavaScript