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 整合