连接器指南阅读约 5 分钟19 个 MCP 工具7 种语言

Outlook MCP:连接 Microsoft Copilot

让你的 AI 在 Outlook 中工作:搜索和阅读邮件、将邮件归入文件夹、起草、发送和回复邮件、查看日历、创建和改期会议,以及查找同事的空闲时间。通过 Microsoft Graph 支持 Microsoft 365 和 Outlook.com,使用你的 Microsoft 账户登录。

HC作者:HelpCode 团队更新于 5 分钟阅读 在 GitHub 开源

无需信用卡 · 7 天试用 · 提供自托管方案

Outlook (Microsoft 365 Mail and Calendar)

Outlook (Microsoft 365 Mail and Calendar)

Let your AI work in Outlook: search and read email, file messages in folders, draft, send and reply, check the calendar, create and move meetings, and find free time with colleagues. Microsoft 365 and Outlook.com through Microsoft Graph, signed in with your Microsoft account.

个工具

19

区域

INTL

类别

电子邮件

身份验证

OAuth 2.0

所需环境变量

MICROSOFT_CLIENT_IDMICROSOFT_CLIENT_SECRETMICROSOFT_TENANT_ID
在 Cloud 上一键安装

7 天免费试用 · 无需信用卡

  • 7 天免费试用
    无需信用卡
  • 符合 GDPR,SOC 2 就绪
    数据驻留欧盟,审计日志
  • 在 GitHub 开源
    开源 · AGPL-3.0
  • 支持 ChatGPT、Claude、Gemini
    任何兼容 MCP 的客户端

跳过安装。2 分钟内即可运行。

在 cloud.anythingmcp.com 开始免费试用,一键添加 Outlook (Microsoft 365 Mail and Calendar),然后将你的 AI 客户端(Claude、ChatGPT、Copilot 或 Cursor)指向生成的 MCP 端点。无需 Docker,无需 git clone,无需任何工程经验。

开始免费试用

摘要

让你的 AI 在 Outlook 中工作:搜索和阅读邮件、将邮件归入文件夹、起草、发送和回复邮件、查看日历、创建和改期会议,以及查找同事的空闲时间。通过 Microsoft Graph 支持 Microsoft 365 和 Outlook.com,使用你的 Microsoft 账户登录。

试试这样问

Outlook (Microsoft 365 Mail and Calendar) 的示例提示

点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。

Outlook (Microsoft 365 Mail and Calendar) · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Outlook (Microsoft 365 Mail and Calendar)、粘贴凭证、生成 MCP API key — 完成。无 Docker、无 git clone、无本地服务器。

Outlook (Microsoft 365 Mail and Calendar) + Microsoft Copilot

让你的 AI 在 Outlook 中工作:搜索和阅读邮件、将邮件归入文件夹、起草、发送和回复邮件、查看日历、创建和改期会议,以及查找同事的空闲时间。通过 Microsoft Graph 支持 Microsoft 365 和 Outlook.com,使用你的 Microsoft 账户登录。

前提条件

完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:

MICROSOFT_CLIENT_ID, MICROSOFT_CLIENT_SECRET, MICROSOFT_TENANT_ID

步骤 1 — 获取凭证

  1. 打开 Microsoft Entra 管理中心(entra.microsoft.com)或 Azure 门户,进入 Applications → App registrations → New registration。

  2. 为应用命名(例如 "AnythingMCP Outlook"),并选择 Supported account types。这一选择决定 MICROSOFT_TENANT_ID 填什么:

    • Accounts in this organizational directory only(单租户):只有你组织内的用户可以登录。填写应用 Overview 页面上的 Directory (tenant) ID(一个 GUID),或你的域名,例如 contoso.onmicrosoft.com。
    • Accounts in any organizational directory(多租户):填写 organizations。
    • Accounts in any organizational directory and personal Microsoft accounts:填写 common(工作、学校和 Outlook.com 账户)或 consumers(仅 Outlook.com)。

    如果该值与账户类型不符,Microsoft 会拒绝登录(AADSTS50194 或 AADSTS50020)。

  3. 在 Redirect URI 下选择平台 Web,填写 https://cloud.anythingmcp.com/api/mcp-oauth/callback。如果你自行托管 AnythingMCP,则改为填写 https://your-anythingmcp-host/api/mcp-oauth/callback。URI 必须逐字符一致,否则 Microsoft 会返回 AADSTS50011。

  4. 打开 API permissions → Add a permission → Microsoft Graph → Delegated permissions,添加 offline_access、User.Read、Mail.ReadWrite、Mail.Send 和 Calendars.ReadWrite。不要把它们添加为 Application permissions:应用权限会让该应用无需任何人登录即可访问租户中的每一个邮箱。连接器不需要这些权限,它以登录用户的身份工作。offline_access 让 Microsoft 签发刷新令牌;缺少它,连接器会在授权一小时后停止工作。

  5. 打开 Certificates & secrets → New client secret。复制密钥的 Value,而不是 Secret ID;它只显示一次。记下到期日期:密钥过期后,连接器会停止工作,直到你创建新密钥并填入。

  6. 将 Overview 页面上的 Application (client) ID 填入 MICROSOFT_CLIENT_ID,将密钥值填入 MICROSOFT_CLIENT_SECRET,将第 2 步中的租户值填入 MICROSOFT_TENANT_ID,然后安装连接器。

  7. 在连接器页面点击 Authorize with Provider,用 AI 要处理的邮箱登录。刷新令牌会加密保存,访问令牌(有效期约一小时)会自动续期。

  8. 先运行 outlook_get_me:它会显示连接器登录的是哪个邮箱。

管理员同意:这些委托权限通常不需要管理员,但许多组织关闭了用户同意。如果登录时显示 "Need admin approval"(AADSTS65001 或 AADSTS90094),需要租户管理员(例如 Global Administrator 或 Cloud Application Administrator)打开一次应用注册,点击 API permissions → Grant admin consent 为整个组织授予同意。之后每个用户都可以授权。由管理员授权的连接器仍然只读取管理员自己的邮箱:每个连接器只为登录的那个账户工作。

只读设置:在连接器的 OAuth 设置中将 scopes 替换为 offline_access User.Read Mail.Read Calendars.Read,重新授权,并停用发送或写入的工具。

常见错误:401 InvalidAuthenticationToken 表示授权已被撤销或客户端密钥已过期;如有需要填入新密钥,然后再次点击 Authorize with Provider。403 ErrorAccessDenied 表示缺少第 4 步中的某个权限,或该权限未获同意。MailboxNotEnabledForRESTAPI 表示该账户没有 Exchange Online 邮箱(例如本地部署的邮箱或没有许可证的用户)。outlook_get_free_busy 不支持个人 Outlook.com 账户。

连接器不会删除邮件或日历事件,也不处理附件、联系人、邮箱规则、其他用户的邮箱或共享邮箱。

步骤 2 — 安装 adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

步骤 3 — 在 Microsoft Copilot 中添加连接器

你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(https://cloud.anythingmcp.com/mcp/…)。本指南中出现 YOUR_SERVER_ID 的地方都用它替换。

Microsoft Copilot 通过在 Copilot Studio 中构建的智能体使用 MCP 服务器:把 AnythingMCP 作为工具添加到智能体,然后把智能体发布到 Microsoft 365 Copilot 和 Teams。Copilot Studio 从 Microsoft 的云端通过 Streamable HTTP 连接,AnythingMCP 支持这种方式。

  1. 在 Copilot Studio 中打开你的智能体(或新建一个),进入 Tools,选择 Add a tool → New tool → Model Context Protocol。
  2. 填写 Server name(例如 AnythingMCP)、说明连接器用途的 Server description,以及 Server URL https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID。Copilot Studio 根据描述决定何时调用该服务器。
  3. 身份验证选择 API key,把 Type 设为 Header,请求头名称填 X-API-Key,然后选择 Create。
  4. 在 Add tool 中选择 Create a new connection,粘贴 AnythingMCP 的 MCP API 密钥(MCP Servers → 你的服务器 → API keys),然后选择 Add to agent。
  5. 在智能体的 Test 窗格中试一试:提出需要用到 Outlook (Microsoft 365 Mail and Calendar) 的工具的请求。
  6. 选择 Publish,然后进入 Channels → Microsoft 365 and Microsoft Teams,保持勾选 Make agent available in Microsoft Copilot,再选择 Add channel。See agent in Teams 会为你安装该智能体;在 Microsoft 365 Copilot 中输入 @ 并选择该智能体。

希望每个用户各自登录?请选择 OAuth 2.0 → Dynamic discovery 代替 API 密钥:每个用户会在智能体首次调用时登录 AnythingMCP。

自托管?请用你实例的公网 HTTPS 地址替换 https://cloud.anythingmcp.com。Copilot Studio 从 Microsoft 的云端连接,因此 localhost 无法使用。

可用工具

ToolWhat it does
outlook_get_meReturn the signed-in Microsoft 365 or Outlook.com user: id, display name, email address (mail) and user principal name
outlook_list_mail_foldersList the top-level mail folders of the mailbox (Inbox, Sent Items, Drafts, Archive and the user's own folders) with id, displayName…
outlook_list_child_foldersList the subfolders of one mail folder, with the same fields as outlook_list_mail_folders
outlook_list_messagesList the messages of one mail folder, newest first unless orderby says otherwise
outlook_search_messagesSearch or filter messages across the whole mailbox, all folders included (Deleted Items too)
outlook_get_messageGet one message in full: subject, sender, all recipients, dates, flags, conversationId, internetMessageId, attachments flag and the body as…
outlook_create_draftCreate a draft message in the Drafts folder without sending it
outlook_send_draftSend an existing draft (from outlook_create_draft or one written in Outlook)
outlook_send_mailCompose and send a new email in one step, from the signed-in mailbox
outlook_reply_to_messageReply to the sender of a message (or to its Reply-To addresses) and send the reply at once, quoting the original below the comment
outlook_reply_all_to_messageReply to the sender and every other recipient of a message and send the reply at once, quoting the original below the comment
outlook_move_messageMove a message to another mail folder (for example to archive it or file it in a project folder)
outlook_list_calendarsList the user's calendars with id, name, color, owner, whether it is the default calendar and whether the user can edit it
outlook_list_eventsList the events of the default calendar that fall within a time range, with recurring meetings expanded into their single occurrences
outlook_list_calendar_eventsList the events of one specific calendar (a shared, secondary or team calendar) within a time range, with recurring meetings expanded
outlook_get_eventGet one calendar event in full: subject, body (HTML), start and end, location, organizer, attendees with their responses, recurrence…
outlook_create_eventCreate an event in the user's default calendar
outlook_update_eventChange an existing event: only the fields given are changed, the others stay as they are
outlook_get_free_busyGet free/busy availability of up to several people, rooms or distribution lists in the same organisation for a time window, to find a slot…

FAQ

这适用于哪个 Copilot? 适用于工作中的 Microsoft 365 Copilot,通过 Copilot Studio 的智能体实现。面向个人账户的 Microsoft Copilot 应用无法添加自己的 MCP 服务器。

我需要什么? 一个可以使用 Copilot Studio 的工作账户(许可证或试用版),用于构建智能体。在 Microsoft 365 Copilot 或 Teams 中使用它的人需要拥有该智能体的访问权限:把它共享给他们,或请管理员为整个组织发布。如果你的组织对 Power Platform 连接器设置了数据策略,这些策略同样适用于 MCP 服务器。

智能体不调用工具。 检查请求头名称是否正好是 X-API-Key,密钥是否属于与 URL 相同的 MCP 服务器,并把 Server description 写得具体:Copilot Studio 根据它决定何时调用服务器。每次修改后重新发布智能体;在已打开的对话中输入 "start over" 即可使用新版本。

下一步

这份指南对你有帮助吗?

你的 Outlook 智能体只差一次点击。

安装连接器,粘贴密钥,向 Microsoft Copilot 提问。免费试用 7 天,无需信用卡。

相关指南

连接器

Outlook MCP:连接 ChatGPT 管理邮件与日历

让你的 AI 在 Outlook 中工作:搜索和阅读邮件、将邮件归入文件夹、起草、发送和回复邮件、查看日历、创建和改期会议,以及查找同事的空闲时间。通过 Microsoft Graph 支持 Microsoft 365 和 Outlook.com,使用你的 Microsoft 账户登录。

连接器

Outlook MCP:连接 Claude 管理邮件与日历

让你的 AI 在 Outlook 中工作:搜索和阅读邮件、将邮件归入文件夹、起草、发送和回复邮件、查看日历、创建和改期会议,以及查找同事的空闲时间。通过 Microsoft Graph 支持 Microsoft 365 和 Outlook.com,使用你的 Microsoft 账户登录。

连接器

Outlook MCP:连接 Cursor 管理邮件与日历

让你的 AI 在 Outlook 中工作:搜索和阅读邮件、将邮件归入文件夹、起草、发送和回复邮件、查看日历、创建和改期会议,以及查找同事的空闲时间。通过 Microsoft Graph 支持 Microsoft 365 和 Outlook.com,使用你的 Microsoft 账户登录。

连接器

Outlook MCP:连接 Gemini CLI

让你的 AI 在 Outlook 中工作:搜索和阅读邮件、将邮件归入文件夹、起草、发送和回复邮件、查看日历、创建和改期会议,以及查找同事的空闲时间。通过 Microsoft Graph 支持 Microsoft 365 和 Outlook.com,使用你的 Microsoft 账户登录。

连接器

Outlook MCP:连接 Meta Muse

让你的 AI 在 Outlook 中工作:搜索和阅读邮件、将邮件归入文件夹、起草、发送和回复邮件、查看日历、创建和改期会议,以及查找同事的空闲时间。通过 Microsoft Graph 支持 Microsoft 365 和 Outlook.com,使用你的 Microsoft 账户登录。

连接器

Outlook MCP 服务器:邮件与日历

让你的 AI 在 Outlook 中工作:搜索和阅读邮件、将邮件归入文件夹、起草、发送和回复邮件、查看日历、创建和改期会议,以及查找同事的空闲时间。通过 Microsoft Graph 支持 Microsoft 365 和 Outlook.com,使用你的 Microsoft 账户登录。