Google Calendar

com.pulsemcp由 pulsemcp.com 发布v0.0.13更新于 Oct 24, 2026

MCP server for Google Calendar integration with service account support and domain-wide delegation.

已验证STDIO仅桌面效率与工作流沟通与协作

概览

AI 生成的概览

本地 MCP 服务器,让助手通过服务账号读取和管理 Google 日历的事件、日历与空闲/忙碌时间。

可以做什么
  • 列出与读取事件:按时间范围和条件浏览事件,并获取单个事件的完整详情
  • 创建与修改事件:新建带参与人、地点和描述的事件,局部更新已有事件,或删除事件并可选通知参与人
  • 查看日历:列出被模拟用户可用的日历
  • 查询空闲情况:跨一个或多个日历查询空闲/忙碌时段
适用场景
适合需要助手回答日程问题、查找空闲时段,或为特定 Workspace 用户创建、修改、删除 Google 日历事件,且不想走交互式 OAuth 登录的场景。
运行要求
通过 npx 在本地运行(需 Node.js)。需要启用 Calendar API 的 Google Cloud 项目、启用了全域委派的服务账号,以及 Workspace 管理员授权日历范围。需设置 GCAL_SERVICE_ACCOUNT_CLIENT_EMAIL、GCAL_SERVICE_ACCOUNT_PRIVATE_KEY 和 GCAL_IMPERSONATE_EMAIL;ENABLED_TOOLGROUPS 可限制为只读。
安装前请注意
需要服务账号私钥(GCAL_SERVICE_ACCOUNT_PRIVATE_KEY),该密钥可访问被模拟用户的日历;请勿提交到版本库并定期轮换。写入工具默认开启,可创建、修改、删除事件并向参与人发送邮件;设为 ENABLED_TOOLGROUPS=readonly 可禁用。全域委派权限范围大,应只授予最小必要范围。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Google Calendar,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Google Calendar Workspace MCP Server

An MCP (Model Context Protocol) server for Google Calendar integration using service account authentication with domain-wide delegation. This server enables AI assistants to interact with Google Calendar to list events, create events, manage calendars, and query availability.

Features

  • List Events: View calendar events within a specified time range with filtering
  • Get Event Details: Retrieve complete information about specific events
  • Create Events: Create new calendar events with attendees, location, and descriptions
  • Update Events: Modify existing events (PATCH semantics - only provided fields are updated)
  • Delete Events: Remove events with optional notification to attendees
  • List Calendars: Discover available calendars
  • Query Free/Busy: Check availability and find busy time slots

Prerequisites

  1. Google Cloud Project with Calendar API enabled
  2. Service Account with domain-wide delegation
  3. Google Workspace Admin access to grant calendar permissions

Setup

1. Create a Google Cloud Service Account

  1. Go to Google Cloud Console
  2. Create or select a project
  3. Enable the Google Calendar API:
    • Navigate to "APIs & Services" > "Library"
    • Search for "Google Calendar API"
    • Click "Enable"
  4. Create a service account:
    • Navigate to "IAM & Admin" > "Service Accounts"
    • Click "Create Service Account"
    • Provide a name and description
    • Click "Create and Continue"
    • Skip granting roles (not needed for domain-wide delegation)
    • Click "Done"
  5. Create a key for the service account:
    • Click on the created service account
    • Go to "Keys" tab
    • Click "Add Key" > "Create new key"
    • Select "JSON" format
    • Download the key file
  6. Note the service account's Client ID (found in the service account details)

2. Enable Domain-Wide Delegation

  1. In the service account details, click "Show domain-wide delegation"
  2. Check "Enable Google Workspace Domain-wide Delegation"
  3. Save the changes
  4. Note the Client ID (you'll need this for the next step)

3. Grant Calendar Permissions in Google Workspace Admin

  1. Go to Google Workspace Admin Console
  2. Navigate to "Security" > "Access and data control" > "API Controls"
  3. Click "Manage Domain Wide Delegation"
  4. Click "Add new"
  5. Enter the service account's Client ID
  6. In the "OAuth Scopes" field, add:
    https://www.googleapis.com/auth/calendar
  7. Click "Authorize"

4. Configure Environment Variables

Extract the following from your downloaded JSON key file:

  • client_email: The service account email
  • private_key: The private key (including -----BEGIN PRIVATE KEY----- and -----END PRIVATE KEY-----)

Set these environment variables:

bash
export GCAL_SERVICE_ACCOUNT_CLIENT_EMAIL="[email protected]"export GCAL_SERVICE_ACCOUNT_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\nYour private key content\n-----END PRIVATE KEY-----"export GCAL_IMPERSONATE_EMAIL="[email protected]"

Note: GCAL_IMPERSONATE_EMAIL should be the email address of the user whose calendar you want to access.

Installation

Using NPX (Recommended)

bash
npx google-calendar-workspace-mcp-server

Using NPM

bash
npm install -g google-calendar-workspace-mcp-servergoogle-calendar-workspace-mcp-server

Usage with Claude Desktop

Add this configuration to your Claude Desktop config file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

json
{  "mcpServers": {    "google-calendar": {      "command": "npx",      "args": ["google-calendar-workspace-mcp-server"],      "env": {        "GCAL_SERVICE_ACCOUNT_CLIENT_EMAIL": "[email protected]",        "GCAL_SERVICE_ACCOUNT_PRIVATE_KEY": "-----BEGIN PRIVATE KEY-----\nYour private key\n-----END PRIVATE KEY-----",        "GCAL_IMPERSONATE_EMAIL": "[email protected]"      }    }  }}

Tool Groups

By default, all tools are enabled (read + write access). You can restrict the server to read-only operations by setting the ENABLED_TOOLGROUPS environment variable:

json
{  "mcpServers": {    "google-calendar": {      "command": "npx",      "args": ["google-calendar-workspace-mcp-server"],      "env": {        "GCAL_SERVICE_ACCOUNT_CLIENT_EMAIL": "...",        "GCAL_SERVICE_ACCOUNT_PRIVATE_KEY": "...",        "GCAL_IMPERSONATE_EMAIL": "...",        "ENABLED_TOOLGROUPS": "readonly"      }    }  }}

Available tool groups:

GroupTools Included
readwriteAll 7 tools (read + write) - included by default
readonlyRead-only tools: list_calendar_events, get_calendar_event, list_calendars, query_calendar_freebusy

When using only readonly, the write tools (create_calendar_event, update_calendar_event, delete_calendar_event) are not available.

Available Tools

list_calendar_events

Lists events from a calendar within an optional time range.

Parameters:

  • calendar_id (optional): Calendar ID (default: "primary")
  • time_min (optional): Start time in RFC3339 format
  • time_max (optional): End time in RFC3339 format
  • max_results (optional): Maximum events to return (default: 10, max: 250)
  • query (optional): Free text search query
  • single_events (optional): Expand recurring events (default: true)
  • order_by (optional): "startTime" or "updated"

Example:

List my events for the next week

get_calendar_event

Retrieves detailed information about a specific event.

Parameters:

  • event_id (required): The event ID
  • calendar_id (optional): Calendar ID (default: "primary")

Example:

Get details for event ID abc123

create_calendar_event

Creates a new calendar event.

Parameters:

  • summary (required): Event title
  • start_datetime OR start_date (required): Event start time
  • end_datetime OR end_date (required): Event end time
  • description (optional): Event description
  • location (optional): Event location
  • attendees (optional): Array of email addresses
  • calendar_id (optional): Calendar ID (default: "primary")

Example:

Create a meeting tomorrow at 2pm for 1 hour titled "Team Sync"

update_calendar_event

Updates an existing calendar event. Uses PATCH semantics - only the fields you provide will be updated; other fields remain unchanged.

Parameters:

  • event_id (required): The event ID to update
  • calendar_id (optional): Calendar ID (default: "primary")
  • summary (optional): New event title
  • description (optional): New event description
  • location (optional): New event location
  • start_datetime OR start_date (optional): New start time
  • end_datetime OR end_date (optional): New end time
  • attendees (optional): Updated array of attendee email addresses
  • send_updates (optional): "all", "externalOnly", or "none" - whether to send update notifications

Example:

Update event abc123 to change the title to "Team Standup"

delete_calendar_event

Deletes a calendar event.

Parameters:

  • event_id (required): The event ID to delete
  • calendar_id (optional): Calendar ID (default: "primary")
  • send_updates (optional): "all", "externalOnly", or "none" - whether to send cancellation notifications

Example:

Delete event abc123

list_calendars

Lists all calendars available to the authenticated user.

Parameters:

  • max_results (optional): Maximum calendars to return (default: 50, max: 250)

Example:

Show all my calendars

query_calendar_freebusy

Queries availability information for calendars.

Parameters:

  • time_min (required): Start time in RFC3339 format
  • time_max (required): End time in RFC3339 format
  • calendar_ids (required): Array of calendar IDs to check
  • timezone (optional): Time zone for the query

Example:

Check if I'm free tomorrow between 2pm and 4pm

Development

bash
# Install dependenciesnpm run install-all
# Build the projectnpm run build
# Run in development modenpm run dev
# Run testsnpm test
# Run integration testsnpm run test:integration
# Run all testsnpm run test:all

Security Considerations

  • Private Key Security: Never commit your service account private key to version control
  • Least Privilege: Only grant the minimum required OAuth scopes
  • Key Rotation: Regularly rotate service account keys
  • Access Logging: Monitor service account usage in Google Cloud Console

Troubleshooting

Authentication Failed

  • Verify service account credentials are correct
  • Ensure domain-wide delegation is enabled
  • Check that the correct OAuth scope is authorized in Admin Console
  • Verify the impersonate email address is correct

Permission Denied

  • Ensure the calendar scope (https://www.googleapis.com/auth/calendar) is granted in Google Workspace Admin Console
  • Verify the impersonated user has access to the calendar

Calendar Not Found

  • Check that the calendar ID is correct
  • Verify the impersonated user has access to the calendar
  • Use list_calendars to discover available calendar IDs

License

MIT

Contributing

See CONTRIBUTING.md for guidelines.

来源:experimental/google-calendar/README.md,提交 0ed34de

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.0.13最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分