draw.io
Create draw.io diagrams in chat from Mermaid or XML, shown live and interactive. 10,000+ shapes.
MCP server for Microsoft Graph: Outlook mail and calendar, plus read-only Microsoft Teams
选择你使用的 AI 应用,然后复制设置。
通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月14日
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要填写 2 项设置(MSGRAPH_MCP_CLIENT_ID, MSGRAPH_MCP_TENANT_ID) · 需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
把这段话复制到 Claude 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude 安装 MCP server MSGraph MCP,按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "msgraph": { "command": "uvx", "args": [ "msgraph-mcp-server" ], "env": { "MSGRAPH_MCP_CLIENT_ID": "your-value", "MSGRAPH_MCP_TENANT_ID": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) MSGRAPH_MCP_CLIENT_ID, MSGRAPH_MCP_TENANT_ID 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 MSGraph MCP 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version
安装一次,所有需要 uv 的工具都能用
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
MSGRAPH_MCP_CLIENT_ID Client ID of your Entra (Azure AD) app registrationMSGRAPH_MCP_TENANT_ID Entra tenant ID (or 'common' / 'organizations' / 'consumers')说明仍为英文原文。
SettingsDeveloperEdit Config
{
"mcpServers": {
"msgraph": {
"command": "uvx",
"args": [
"msgraph-mcp-server"
],
"env": {
"MSGRAPH_MCP_CLIENT_ID": "your-value",
"MSGRAPH_MCP_TENANT_ID": "your-value"
}
}
}
}用 MSGraph MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 MSGraph MCP,或回答中出现 MSGraph MCP 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
MSGRAPH_MCP_TOKEN_CACHE_PATH Override the token cache location (default ~/.msgraph-mcp/token_cache.bin)说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 MSGraph MCP
MSGraph MCP 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
A · 使用能连接 MSGraph MCP 的应用
B · 聊天与邮件 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
可连接 Claude Code,但需要先准备
需要填写 2 项设置(MSGRAPH_MCP_CLIENT_ID, MSGRAPH_MCP_TENANT_ID) · 需要先在电脑上安装 Python (uv)(只需一次)
把这段话复制到 Claude Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude Code 安装 MCP server MSGraph MCP,按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):claude mcp add --scope user msgraph --env MSGRAPH_MCP_CLIENT_ID=your-value --env MSGRAPH_MCP_TENANT_ID=your-value -- uvx msgraph-mcp-server 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) MSGRAPH_MCP_CLIENT_ID, MSGRAPH_MCP_TENANT_ID 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 MSGraph MCP 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version
安装一次,所有需要 uv 的工具都能用
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
MSGRAPH_MCP_CLIENT_ID Client ID of your Entra (Azure AD) app registrationMSGRAPH_MCP_TENANT_ID Entra tenant ID (or 'common' / 'organizations' / 'consumers')说明仍为英文原文。
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
claude mcp add --scope user msgraph --env MSGRAPH_MCP_CLIENT_ID=your-value --env MSGRAPH_MCP_TENANT_ID=your-value -- uvx msgraph-mcp-server应能看到 MSGraph MCP 在列表中并显示已连接
用 MSGraph MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 MSGraph MCP,或回答中出现 MSGraph MCP 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
MSGRAPH_MCP_TOKEN_CACHE_PATH Override the token cache location (default ~/.msgraph-mcp/token_cache.bin)说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要填写 2 项设置(MSGRAPH_MCP_CLIENT_ID, MSGRAPH_MCP_TENANT_ID) · 需要先在电脑上安装 Python (uv)(只需一次)
把这段话复制到 Cursor 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Cursor 安装 MCP server MSGraph MCP,按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "msgraph": { "command": "uvx", "args": [ "msgraph-mcp-server" ], "env": { "MSGRAPH_MCP_CLIENT_ID": "your-value", "MSGRAPH_MCP_TENANT_ID": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) MSGRAPH_MCP_CLIENT_ID, MSGRAPH_MCP_TENANT_ID 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 MSGraph MCP 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version
安装一次,所有需要 uv 的工具都能用
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
MSGRAPH_MCP_CLIENT_ID Client ID of your Entra (Azure AD) app registrationMSGRAPH_MCP_TENANT_ID Entra tenant ID (or 'common' / 'organizations' / 'consumers')说明仍为英文原文。
在 MSGraph MCP 的设置中,MSGRAPH_MCP_CLIENT_ID, MSGRAPH_MCP_TENANT_ID 还是空的,填入你的密钥并保存
用 MSGraph MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 MSGraph MCP,或回答中出现 MSGraph MCP 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
MSGRAPH_MCP_TOKEN_CACHE_PATH Override the token cache location (default ~/.msgraph-mcp/token_cache.bin)说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要填写 2 项设置(MSGRAPH_MCP_CLIENT_ID, MSGRAPH_MCP_TENANT_ID) · 需要先在电脑上安装 Python (uv)(只需一次)
把这段话复制到 VS Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 VS Code 安装 MCP server MSGraph MCP,按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "servers": { "msgraph": { "type": "stdio", "command": "uvx", "args": [ "msgraph-mcp-server" ], "env": { "MSGRAPH_MCP_CLIENT_ID": "your-value", "MSGRAPH_MCP_TENANT_ID": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) MSGRAPH_MCP_CLIENT_ID, MSGRAPH_MCP_TENANT_ID 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 MSGraph MCP 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version
安装一次,所有需要 uv 的工具都能用
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
MSGRAPH_MCP_CLIENT_ID Client ID of your Entra (Azure AD) app registrationMSGRAPH_MCP_TENANT_ID Entra tenant ID (or 'common' / 'organizations' / 'consumers')说明仍为英文原文。
在 MSGraph MCP 的设置中,MSGRAPH_MCP_CLIENT_ID, MSGRAPH_MCP_TENANT_ID 还是空的,填入你的密钥并保存
用 MSGraph MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 MSGraph MCP,或回答中出现 MSGraph MCP 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
MSGRAPH_MCP_TOKEN_CACHE_PATH Override the token cache location (default ~/.msgraph-mcp/token_cache.bin)说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
Claude Code
claude mcp add --scope user msgraph --env MSGRAPH_MCP_CLIENT_ID=your-value --env MSGRAPH_MCP_TENANT_ID=your-value -- uvx msgraph-mcp-serverClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"msgraph": {
"command": "uvx",
"args": [
"msgraph-mcp-server"
],
"env": {
"MSGRAPH_MCP_CLIENT_ID": "your-value",
"MSGRAPH_MCP_TENANT_ID": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"msgraph": {
"command": "uvx",
"args": [
"msgraph-mcp-server"
],
"env": {
"MSGRAPH_MCP_CLIENT_ID": "your-value",
"MSGRAPH_MCP_TENANT_ID": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"msgraph": {
"type": "stdio",
"command": "uvx",
"args": [
"msgraph-mcp-server"
],
"env": {
"MSGRAPH_MCP_CLIENT_ID": "your-value",
"MSGRAPH_MCP_TENANT_ID": "your-value"
}
}
}
}MSGRAPH_MCP_CLIENT_ID 必填 envMSGRAPH_MCP_TENANT_ID 必填 envMSGRAPH_MCP_TOKEN_CACHE_PATH env说明仍为英文原文。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月15日
注册名称已通过 GitHub 账户 timfurlong 验证,该账户拥有此仓库
代码最后更新于前天
使用 MIT
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
OSV.dev 中没有 msgraph-mcp-server@0.5.2 的记录
只检查这个版本的包本身,不包括所有依赖 · 检查于 2026年11月15日
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
还没有评价
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于前天,最新版本(0.5.2)于3天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:draw.io, Vexa, emailmd, Kite Discord Bot Builder, e2a — email for AI agents
同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Create draw.io diagrams in chat from Mermaid or XML, shown live and interactive. 10,000+ shapes.
Meeting bot and transcripts for Google Meet, Teams and Zoom. Live or after, speakers labelled.
Render markdown into email-safe HTML, lint drafts for deliverability problems, and preview emails.
Build and fix Discord bots from a chat. Kite hosts them 24/7, with no code to deploy.
Authenticated email gateway for AI agents — per-agent inboxes, HITL approval, SPF/DKIM verified.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
A Model Context Protocol (MCP) server for Microsoft Graph. It exposes Microsoft Outlook mail and calendar, plus read-only Microsoft Teams message history, to AI agents via the Microsoft Graph SDK. It acts as the signed-in user, using delegated permissions and MSAL device code flow, so it can only reach what that user can reach.
You need Python ≥ 3.11 and an Entra (Azure AD) app registration. The app registration takes about ten minutes and may need an administrator, so do that first: see the Entra setup section below.
uv tool install msgraph-mcp-server # or: pip install msgraph-mcp-server
The package is msgraph-mcp-server. It installs three commands: msgraph-mcp and its alias msgraph-mcp-server, which both start the stdio server, plus msgraph-mcp-login for the one-time sign-in.
1. Set your Entra app credentials.
export MSGRAPH_MCP_CLIENT_ID=<your app's client ID>
export MSGRAPH_MCP_TENANT_ID= # or: common / organizations / consumers
2. Sign in once. This prints a URL and a code; visit the URL and enter the code. No client secret is involved or stored.
msgraph-mcp-login
A token cache is written to ~/.msgraph-mcp/token_cache.bin.
3. Wire the server into your MCP host.
Claude Code:
claude mcp add msgraph \
--env MSGRAPH_MCP_CLIENT_ID=$MSGRAPH_MCP_CLIENT_ID \ --env MSGRAPH_MCP_TENANT_ID=$MSGRAPH_MCP_TENANT_ID \ -- msgraph-mcp
Any other host, over stdio:
{
"mcpServers": { "msgraph": { "command": "msgraph-mcp", "args": [], "env": { "MSGRAPH_MCP_CLIENT_ID": " ", "MSGRAPH_MCP_TENANT_ID": " " } } } }
To run without installing, use "command": "uvx" with "args": ["msgraph-mcp-server"]. Note that uvx does not put msgraph-mcp-login on your PATH, so sign in with the uvx --from form shown in step 2.
MSGRAPH_MCP_TOKEN_CACHE_PATH optionally overrides the cache location. All three variables can also come from a .env file in the working directory; the process environment wins over it.
The app registration requires:
MSGRAPH_MCP_TENANT_ID to common, organizations, or consumers)https://login.microsoftonline.com/common/oauth2/nativeclientMail.ReadWrite, Mail.ReadWrite.Shared, Mail.SendMailboxSettings.ReadWrite (Graph requires this for the messageRules endpoints)Calendars.ReadWrite, Calendars.ReadWrite.SharedUser.ReadChat.Read, Team.ReadBasic.All, Channel.ReadBasic.All, ChannelMessage.Read.AllChannelMessage.Read.All always needs tenant admin consent, and the *.Shared permissions may need it depending on your tenant.
The scope list is all-or-nothing. Sign-in requests every scope at once, so without admin consent for
ChannelMessage.Read.Allthe login fails outright and mail and calendar are unavailable too. For the same reason, adding scopes later means re-runningmsgraph-mcp-login; until you do, *every* tool fails withNotAuthenticatedError, not just the ones needing the new scope.
| Group | Tools |
|---|---|
| Util | whoami |
| Mail — read | list_messages, search_messages, get_message, list_attachments, download_attachment |
| Mail — write | send_message, create_draft, reply_message, reply_all_message, forward_message, update_message, delete_message |
| Mail — folders | list_folders, create_folder, update_folder, delete_folder, move_message |
| Mail — actions | archive_message, mark_read, mark_unread, flag_message, unflag_message |
| Mail — batch | batch_archive_messages, batch_move_messages, batch_mark_read, batch_mark_unread, batch_flag_messages, batch_unflag_messages |
| Mail — rules | list_rules, get_rule, create_rule, update_rule, delete_rule |
| Calendar | list_calendars, list_events, get_event, create_event, update_event, delete_event, cancel_event, respond_to_event, find_meeting_times |
| Teams (read) | list_chats, list_chat_messages, list_joined_teams, list_channels, list_channel_messages, list_message_replies, download_hosted_content |
Behavior shared across tools:
snippet. Pass include_body=true to get_message, list_chat_messages, list_channel_messages, or list_message_replies for the full body, which for Teams is also what surfaces Adaptive Card content. Pass include_raw=true to any tool returning a Graph object to get the full payload alongside the trimmed one; the batch_* tools return per-message status only and do not accept it.mailbox (email or user ID) to target a shared or delegated mailbox. Omit it for your own. Teams tools are read-only, cover only your own chats, and take no mailbox.limit (1-100, default 25) and page_token, except list_channel_messages and list_message_replies, which Graph caps at 50. list_folders, list_rules, list_attachments, and list_calendars return the whole collection and take neither. On list_joined_teams and list_channels, limit is applied after fetching because Graph rejects $top there, so it saves tokens rather than round-trips.batch_* tools apply one action to up to 1000 messages via Graph's $batch endpoint, returning a per-message result plus a {total, succeeded, failed} summary.download_attachment and download_hosted_content return images as native MCP image blocks the agent can view. Pass save_path (a file, or an existing directory) to write bytes to disk and get back a path instead.list_messages defaults to the inbox; pass folder_id for another folder, unread_only=true, or a raw OData filter for predicates KQL cannot express. search_messages passes your query to Graph's $search as KQL.Outgoing attachments are capped at 3 MB total per message; chunked upload is not supported. SharePoint-backed Teams file attachments cannot be downloaded, only inline hosted content.
The token cache holds your refresh token, which can mint access tokens for your mail, calendar, and Teams data. Treat the file as a credential. It lives at ~/.msgraph-mcp/token_cache.bin with mode 0600 inside a 0700 directory.
To revoke access, or to switch accounts, delete the cache and sign in again:
rm -f ~/.msgraph-mcp/token_cache.bin ~/.outlook-mcp/token_cache.bin
The second path matters if you ever ran this server under its former name outlook-mcp: that cache is still used as a fallback when the current one is absent, so deleting only the first file leaves a working refresh token on disk. To revoke fully, also remove the app at https://account.microsoft.com or in your organization's identity portal.
msgraph-mcp-login. If it recurs immediately, a requested scope has not been consented yet; see the note under Entra setup..env in the working directory, or in your MCP host's env config.search_messages — the query goes to Graph's $search as KQL. Quote literal phrases ("weekly report") or use fielded forms (from:alice). For predicates KQL cannot express, use list_messages with filter=.msgraph-mcp (or uvx) over stdio and can find that binary on its PATH.See CONTRIBUTING.md.