SM

surana-mudit/google-calendar-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

5 stars 3 forks 质量 59 趋势 6MIT

Google 日历的 MCP 服务器

概览

这个 MCP 服务器提供访问您的 Google Calendar 事件,并允许您通过 MCP 接口管理它们. 它可以和克洛德桌面或任何其他MCP相容客户端一起使用. - MCP需要 Python 3.10+ - Google Cloud 项目,日历 API 启用 - OAuth 认证证书 - 任何日期或日期范围 -- -- 标题、时间、说明、地点和参与者 -- -- 有新的细节 -- -- 共同日历行动 2. 用 Python 3.10 或以上创建虚拟环境: 或者,可以使用uv进行更快速的安装(建议): 4. 建立谷歌日历API证书:a. 转到 Google Cloud Console b. 创建新项目或选择现有的一个 c. 启用 Google Calendar API d. 创建 OAuth 证书 (Desktop 客户端 OAuth ID) e. 下载证书 JSON 文件并将其保存为证书. json 在项目目录中 1. 从官方网站安装克洛德桌面 2. 在克洛德桌面安装 MCP 服务器:

概述(AI 翻译)

这个 MCP 服务器提供访问您的 Google Calendar 事件,并允许您通过 MCP 接口管理它们. 它可以和克洛德桌面或任何其他MCP相容客户端一起使用.

□ 要求

-P 3.10或以上- MCP需要 Py 3.10+

  • 启用日历 API 的 Google Cloud 项目
  • 认证证书

□ 特性

  • ** 任何日期或日期范围的日历活动**
  • ** 创建新活动**,包括标题、时间、说明、地点和参与者
  • ** 更新现有事件** 提供新的细节
  • ** 共同日历行动的预建提示**

□ 安装

  1. 克隆此存储器:

  2. 用 Python 3.10 或以上创建虚拟环境:

  3. 使用页码安装依赖性 :

或者,可以使用 uv 以更快的安装(建议):

  1. 建立谷歌日历 API 证书:

(单位:千美元) 去Google 云控台吧 b. 创建新项目或选择现有项目 c. 启用 Google 日历 API d. 创建 OAuth 证书( Desktop 客户端 OAuth ID) e. 下载JSON文件并将其保存为credentials.json

□ 使用量

使用 Claude 桌面

  1. 联合国.

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Google Calendar MCP Server

This MCP server provides access to your Google Calendar events and allows you to manage them through an MCP interface. It can be used with Claude Desktop or any other MCP-compatible client.

Requirements

  • Python 3.10 or higher - MCP requires Python 3.10+
  • Google Cloud project with Calendar API enabled
  • OAuth credentials for authentication

Features

  • View calendar events for any date or date range
  • Create new events with title, time, description, location, and attendees
  • Update existing events with new details
  • Pre-built prompts for common calendar actions

Installation

  1. Clone this repository:

    git clone 
    cd google-calendar-mcp
    
  2. Create a virtual environment with Python 3.10 or higher:

    # Check your Python version
    python --version
    
    # Create a virtual environment with the correct Python version
    # For Python 3.10
    python3.10 -m venv venv
    # OR for Python 3.11
    python3.11 -m venv venv
    # OR for Python 3.12
    python3.12 -m venv venv
    
    # Activate the virtual environment
    source venv/bin/activate  # On Windows: venv\Scripts\activate
    
  3. Install dependencies using pip:

    pip install -r requirements.txt
    

    Alternatively, you can use uv for faster installation (recommended):

    # Install uv if you don't have it
    curl -fsSL https://astral.sh/uv/install.sh | sh
    # On Windows: powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
    
    # Install dependencies with uv
    uv pip install -r requirements.txt
    
  4. Set up Google Calendar API credentials:

    a. Go to the Google Cloud Console b. Create a new project or select an existing one c. Enable the Google Calendar API d. Create OAuth credentials (Desktop client OAuth ID) e. Download the credentials JSON file and save it as credentials.json in the project directory

Usage

Using with Claude Desktop

  1. Install Claude Desktop from the official website

  2. Install the MCP server in Claude Desktop:

    # Make sure you're in the project directory with the virtual environment activated
    mcp install calendar_mcp_server.py
    
  3. Configure Claude Desktop to use the MCP server by editing the Claude Desktop configuration file:

    • Locate the Claude configuration file at /path/to/your/claude_desktop_config.json (Mac) or appropriate location for your OS
    • Add or modify the configuration to include the Google Calendar MCP:
    {
      "Google Calendar": {
        "command": "/path/to/your/venv/bin/mcp",
        "args": [
          "run",
          "/path/to/your/project/calendar_mcp_server.py"
        ]
      }
    }
    
    • Replace /path/to/your/venv/ with the actual path to your virtual environment
    • Replace /path/to/your/project/ with the actual path to your project directory
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →