Microsoft 365 Calendar

io.github.mindstone由 GitHub 账号 mindstone 发布v0.2.0更新于 Oct 24, 2026

Microsoft 365 Outlook calendar via Graph: list, get, create, update, respond, free/busy.

发布方自己的服务:Microsoft Learn MCP

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

概览

AI 生成的概览

本地 MCP 服务器,让助手通过 Microsoft Graph 读取和管理 Microsoft 365 Outlook 日历。

可以做什么
按日期范围列出并读取事件,含每位参与者的回复状态和附件元数据,并列出用户可访问的日历。创建、更新、删除和取消事件,包括参与者、重复规则和可选的 Teams 会议。接受、拒绝或暂定接受邀请。查询用户的空闲/忙碌状态,并在所有指定参与者都有空时推荐会议时段。
适用场景
适合让助手回答 Outlook 日历相关问题、安排或修改会议、回复邀请,或与同事寻找共同空闲时间,并与其它 Mindstone Microsoft 365 连接器共用同一次 Microsoft 登录。
运行要求
需在本地运行,依赖 Node.js 20+ 和 npm,通常通过 npx 启动。需要 MS_CLIENT_ID(Microsoft Entra 应用客户端 ID)和 MS_CONFIG_DIR(每用户配置目录)。它本身不执行 OAuth:需由宿主应用完成登录,并把令牌文件和 accounts.json 写入该目录,复用 Mindstone Microsoft 邮件服务器的登录。可选:MS_ACCOUNT_EMAIL、MS_MCP_PACKAGE_ID、MICROSOFT_REQUEST_TIMEOUT_MS、MICROSOFT_DISABLE_REFRESH。
安装前请注意
它会从 MS_CONFIG_DIR 读取 OAuth 令牌文件,请只指向你可控的目录。它可以创建、更新、删除和取消事件并向邀请发送回复,会改动真实日历并通知参与者。登录委托给单独的邮件连接器,因此还需要该服务器及其凭据。来自 Graph 的日历文本会作为不可信内容返回给模型。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@mindstone/mcp-server-microsoft-calendar

[npm version] [License: FSL-1.1-MIT]

Microsoft 365 Outlook Calendar MCP server — list, get, create, update, delete, cancel, and respond to events, check free/busy, find meeting times, and list calendars via the Microsoft Graph API.

Cohort-style Microsoft 365 calendar MCP. Reuses the OAuth surface owned by @mindstone/mcp-server-microsoft-mail so the host signs in once and gets calendar plus mail plus files plus Teams plus SharePoint from the same credentials.

Status

Why this exists

When we ported this in May 2026, Microsoft's own Graph MCP lineup did not yet ship a stand-alone Outlook Calendar server, and the community options at the time treated calendar as its own login surface — every connector ran a separate OAuth dance and stored its own copy of the refresh token. We pulled the bundled connector out of MindstoneRebel as a 1:1 port so that the same five-connector Microsoft 365 cohort (mail, calendar, files, teams, SharePoint) shares a single set of credentials, a single shared-library package for token persistence and request timeouts, and the structured auth_required envelope the host already knows how to recover from. Calendar reuses @mindstone/mcp-server-microsoft-mail's authenticate_microsoft_account tool rather than declaring its own.

Example interaction

"What's on my calendar this afternoon, and find a 30-minute slot tomorrow when both Alice and I are free."

Tools the host calls:

  1. list_events — date range covering the rest of today.
  2. find_meeting_times — suggests slots tomorrow when both Alice and the user are free.

Response (trimmed):

json
{  "today": [    { "id": "AA...=", "subject": "Q3 review", "start": "2026-05-19T15:00:00Z", "end": "2026-05-19T16:00:00Z" }  ],  "tomorrow_suggestions": [    { "start": "2026-05-20T10:00:00", "end": "2026-05-20T10:30:00" },    { "start": "2026-05-20T14:30:00", "end": "2026-05-20T15:00:00" }  ]}

Requirements

  • Node.js 20+
  • npm
  • A host application that performs the Microsoft OAuth flow and writes per-account token files into ${MS_CONFIG_DIR}/credentials/${sanitised-email}.token.json and an ${MS_CONFIG_DIR}/accounts.json index. This server reads those files; it does not initiate OAuth itself.

One-click install

[Add to Cursor] [Add to VS Code] [Add to VS Code Insiders]

After clicking the button, your host will prompt you to fill: MS_CLIENT_ID, MS_CONFIG_DIR, MS_MCP_PACKAGE_ID, MICROSOFT_REQUEST_TIMEOUT_MS.

Manual config for Claude Desktop / Claude Code / Goose / Continue.dev (Microsoft 365 Calendar)
json
{  "mcpServers": {    "Microsoft 365 Calendar": {      "command": "npx",      "args": [        "-y",        "@mindstone/mcp-server-microsoft-calendar"      ],      "env": {        "MS_CLIENT_ID": "",        "MS_CONFIG_DIR": "",        "MS_MCP_PACKAGE_ID": "Microsoft365Calendar",        "MICROSOFT_REQUEST_TIMEOUT_MS": "60000"      }    }  }}

Quick Start

Install & build

bash
cd <path-to-repo>/connectors/microsoft-calendarnpm installnpm run build

npx (once published)

bash
npx -y @mindstone/mcp-server-microsoft-calendar

Local

bash
node dist/index.js

Configuration

This server runs alongside a host application that owns the Microsoft 365 OAuth flow. The host writes credentials to disk; this server reads them.

Required environment variables

NameDescription
MS_CLIENT_IDMicrosoft Entra (Azure AD) application client ID.
MS_CONFIG_DIRPath to the per-user Microsoft config directory (credentials/, accounts.json).

Optional environment variables

NameDescriptionDefault
MS_ACCOUNT_EMAILAccount email when running in multi-account per-instance mode.First account in accounts.json.
MS_MCP_PACKAGE_IDLogical package ID surfaced in error responses.Microsoft365Calendar
MICROSOFT_REQUEST_TIMEOUT_MSOverride the upstream Microsoft Graph request timeout (max 300000 ms).60000
MICROSOFT_DISABLE_REFRESHSet to 1 to disable token refresh on this surface. Tools fail closed with the structured auth_required response so the host can drive reauth. Cloud surfaces set this to 1.unset

Host configuration examples

Claude Desktop / Cursor

json
{  "mcpServers": {    "Microsoft365Calendar": {      "command": "npx",      "args": ["-y", "@mindstone/mcp-server-microsoft-calendar"],      "env": {        "MS_CLIENT_ID": "your-entra-application-client-id",        "MS_CONFIG_DIR": "/absolute/path/to/microsoft-config"      }    }  }}

Sign in via @mindstone/mcp-server-microsoft-mail's authenticate_microsoft_account first; the calendar tools then reuse the credentials it writes to ${MS_CONFIG_DIR}/.

Local development (no npm publish needed)

json
{  "mcpServers": {    "Microsoft365Calendar": {      "command": "node",      "args": ["<path-to-repo>/connectors/microsoft-calendar/dist/index.js"],      "env": {        "MS_CLIENT_ID": "your-entra-application-client-id",        "MS_CONFIG_DIR": "/absolute/path/to/microsoft-config"      }    }  }}

Tools (10)

ToolDescription
list_eventsList calendar events within a date range (JSON with per-attendee RSVP status, or agenda-style text). Reports truncated: true when Graph has more pages — narrow the range or raise top (max 100).
get_eventGet detailed information about a specific calendar event (optionally including attachment metadata; attachmentsTruncated flags further pages).
create_eventCreate a new calendar event (with optional Teams meeting and recurrence).
update_eventUpdate an existing calendar event (including adding/removing attendees and recurrence).
delete_eventDelete a calendar event.
cancel_eventCancel a meeting as organizer with an optional message to attendees.
respond_to_eventAccept, decline, or tentatively accept an event invitation.
get_free_busyCheck availability/free-busy status for users.
find_meeting_timesSuggest slots when all given attendees are free. Slots are only suggested when availability for every requested attendee was resolved; otherwise the unresolved attendees are listed in unresolvableAttendees.
list_calendarsList all calendars the user has access to.

Security notes

  • No authentication tool of its own; sign-in is delegated to @mindstone/mcp-server-microsoft-mail so the cohort has a single OAuth surface.
  • Token files are written by the host with mode 0600; this server reads them via the cohort-shared library, which fails closed on malformed files.
  • MICROSOFT_DISABLE_REFRESH=1 is the default on cloud surfaces so the desktop session remains the sole refresh-token authority.
  • Per-tool Graph calls run under a composed caller + cohort timeout signal.
  • All Graph-sourced text is returned inside <untrusted-content> envelopes; structural-looking fields (IDs, URLs, enum-like values, timestamps) pass through raw only when they match their documented closed format and are enveloped otherwise. Vendor error messages are enveloped before they reach the model.
  • Tool inputs are validated fail-closed (email addresses, ISO date-times, bounded numerics, strict recurrence objects) before any Graph request is made.
  • Event/calendar IDs interpolated into Graph request paths are validated fail-closed (rejecting ?, #, %, \, whitespace, and ./.. segments) before any network request and URL-encoded at the interpolation site, so a crafted ID cannot reroute the authenticated request.
  • Graph pagination is never silently dropped: list endpoints report truncated / attachmentsTruncated instead of following vendor-supplied continuation URLs.

Licence

FSL-1.1-MIT — Functional Source License, Version 1.1, with MIT future licence. Free for non-competing use; relicenses to MIT on the converter date in LICENSE.

来源:connectors/microsoft-calendar/README.md,提交 22c4611

工具

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

版本历史

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

评分

已满足适用检查项的 40%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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

    请在仓库或注册中心条目中声明许可证。

其他 Microsoft 集成