MC

marimerllc/calendar-mcp

开发工具

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

25 stars 10 forks 质量 85 趋势 25MIT

Adjutant - 一个模型上下文协议(MCP)服务器,为 AI 助手提供跨多个账户的统一访问邮件、日历和联系人:Microsoft 365(多租户)、Outlook。

概览

一个模型上下文协议(MCP)服务器,允许AI助手访问多个账户的电子邮件、日历和联系人数据——Microsoft 365、Outlook.com、Google Workspace、IMAP/SMTP邮箱、ICS订阅源和JSON日历文件。 日历MCP将多个供应商的电子邮件、日历和联系方式信息汇聚成一套统一的MCP工具。像Claude Desktop、VS Code配合Copilot以及其他兼容MCP的客户端这样的AI助手,可以同时跨所有账户查询、搜索邮件、查看日历、查找空闲时间、发送消息、创建活动并管理联系人。 每个账户都有独立的授权,所以你可以根据任务需要给助理完全相同的访问权限——阅读一个邮箱但从不发送邮件,使用日历但不触及邮件,等等。两个Gmail账户的范围可以完全不同。

概述(AI 翻译)

一款模型上下文协议(MCP)服务器,允许AI助手访问多个账户的电子邮件、日历和联系人数据——Microsoft 365、Outlook.com、Google Workspace、IMAP/SMTP邮箱、CalDAV/CardDAV(包括iCloud)、ICS订阅源和JSON日历文件。

概述

日历MCP将多个供应商的电子邮件、日历和联系方式信息汇聚成一套统一的MCP工具。像Claude Desktop、VS Code配合Copilot以及其他兼容MCP的客户端这样的AI助手,可以同时跨所有账户查询、搜索邮件、查看日历、查找空闲时间、发送消息、创建活动并管理联系人。

支持的提供者

服务提供者 电子邮件 日历 联系人 认证
Microsoft 365 是的 是的 是的 OAuth 2.0 (MSAL)
Outlook.com 是的 是的 是的 OAuth 2.0(MSAL)
谷歌工作区 / Gmail 是的 是的 是的 OAuth 2.0
IMAP/SMTP 是的 – – 用户名 + 应用密码(静止时加密)
CalDAV / CardDAV – 是的 是的 用户名 + 应用密码(iCloud、Nextcloud、Fastmail 等)
ICS日历订阅 – 只读 – 无(公共网址)

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

README

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

Calendar & Email MCP Server

A Model Context Protocol (MCP) server that gives AI assistants access to email, calendar, and contact data across multiple accounts — Microsoft 365, Outlook.com, Google Workspace, IMAP/SMTP mailboxes, CalDAV/CardDAV (including iCloud), ICS feeds, and JSON calendar files.

Overview

Calendar-MCP aggregates email, calendar, and contact information from multiple providers into a unified set of MCP tools. AI assistants like Claude Desktop, VS Code with Copilot, and other MCP-compatible clients can query across all your accounts at once, search emails, check calendars, find free time, send messages, create events, and manage contacts.

Supported Providers

Provider Email Calendar Contacts Auth
Microsoft 365 Yes Yes Yes OAuth 2.0 (MSAL)
Outlook.com Yes Yes Yes OAuth 2.0 (MSAL)
Google Workspace / Gmail Yes Yes Yes OAuth 2.0
IMAP/SMTP Yes – – Username + app password (encrypted at rest)
CalDAV / CardDAV – Yes Yes Username + app password (iCloud, Nextcloud, Fastmail, …)
ICS Calendar Feeds – Read-only – None (public URLs)
JSON Calendar Files – Read-only – None (local files)

Per-Account Permissions

Each account carries its own independent grants, so you can hand an assistant exactly as much access as a task needs — read one mailbox but never send from it, interact with a calendar but never touch email, and so on. Two Gmail accounts can be scoped completely differently.

Permission Grants
emailRead Read and manage mail: get, search, details, attachments, delete, move, mark read
emailSend Send mail, including mailto unsubscribes
calendarRead List calendars and read events
calendarWrite Create, update, delete, and respond to events
contactsRead Read and search contacts
contactsWrite Create, update, and delete contacts

Everything is granted by default, and grants are intersected with what the provider can actually do — granting calendarRead on an IMAP account still yields no calendar. Set them when adding an account via the CLI, in the admin web UI, or directly in appsettings.json. See Account Permissions.

MCP Tools

The server exposes these tools to AI assistants:

  • list_accounts — List all configured accounts, with each one’s capabilities and permissions
  • get_emails / search_emails — Read and search email across accounts
  • get_email_details — Get full email content
  • get_contextual_email_summary — AI-powered topic clustering and persona analysis
  • send_email — Send email with smart domain-based routing; supports file attachments (base64-encoded, up to 25 MB total)
  • list_calendars / get_calendar_events — View calendars and events
  • get_calendar_event_details — Get full event details
在 GitHub 查看完整 README

安装

docker run -p 8080:8080 -v calendar-mcp-data:/app/data calendar-mcp-http
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "calendar-mcp": { "command": "C:\\Program Files\\Adjutant\\CalendarMcp.StdioServer.exe", "args": [], "env": {} } } }