Iris
概览
作者提供的说明(英文原文)
Microsoft 365 mail MCP: reads mail, drafts into Outlook; sending is opt-in (IRIS_ENABLE_SEND).
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 聊天与邮件
- 你需要填写:IRIS_CLIENT_ID
安装
选择你使用的 AI 应用,然后复制设置。
通过 2/2 项检查 · 在你的电脑上运行
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要 Iris 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
打开电脑版 Claude 应用的设置文件
SettingsDeveloperEdit Config
粘贴这些设置并保存文件
{ "mcpServers": { "iris": { "command": "uvx", "args": [ "iris-mcp" ], "env": { "IRIS_CLIENT_ID": "your-value", "IRIS_TENANT_ID": "your-value", "IRIS_DRAFT_FOLDER": "your-value", "IRIS_ALLOWLIST": "your-value", "IRIS_DISABLE_READ": "your-value", "IRIS_ENABLE_SEND": "your-value" } } } }只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
退出 Claude 再重新打开
试一试
用 Iris 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 Iris,或回答中出现 Iris 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 Iris
Iris 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
你可以改用这些方式
A · 使用能连接 Iris 的应用
- 需要 Iris 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
- 需要 Iris 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Python (uv)(只需一次)
- 需要 Iris 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Python (uv)(只需一次)
- 需要 Iris 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Python (uv)(只需一次)
B · 聊天与邮件 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
- Inbox Zero✓ ChatGPT
- Agent-Native Chat✓ ChatGPT
- draw.io✓ ChatGPT
可连接 Claude Code,但需要先准备
需要 Iris 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Python (uv)(只需一次)
注册并创建 Iris 的密钥
打开开发者网站,注册账户并创建 API 密钥,下一步要用。可能收费。
获取密钥的方法见下方开发者的 README
打开终端
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
粘贴这条命令并按 Enter
claude mcp add iris --env IRIS_CLIENT_ID=your-value --env IRIS_TENANT_ID=your-value --env IRIS_DRAFT_FOLDER=your-value --env IRIS_ALLOWLIST=your-value --env IRIS_DISABLE_READ=your-value --env IRIS_ENABLE_SEND=your-value -- uvx iris-mcp按 Enter 前,把“your-value”改成你的密钥
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Claude Code 中输入 /mcp
应能看到 Iris 在列表中并显示已连接
试一试
用 Iris 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 Iris,或回答中出现 Iris 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要 Iris 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Python (uv)(只需一次)
注册并创建 Iris 的密钥
打开开发者网站,注册账户并创建 API 密钥,下一步要用。可能收费。
获取密钥的方法见下方开发者的 README
填写你的密钥
在 Iris 的设置中,IRIS_CLIENT_ID, IRIS_TENANT_ID, IRIS_DRAFT_FOLDER, IRIS_ALLOWLIST, IRIS_DISABLE_READ, IRIS_ENABLE_SEND 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Cursor 中以 Agent 模式打开 AI 聊天
试一试
用 Iris 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 Iris,或回答中出现 Iris 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要 Iris 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Python (uv)(只需一次)
注册并创建 Iris 的密钥
打开开发者网站,注册账户并创建 API 密钥,下一步要用。可能收费。
获取密钥的方法见下方开发者的 README
填写你的密钥
在 Iris 的设置中,IRIS_CLIENT_ID, IRIS_TENANT_ID, IRIS_DRAFT_FOLDER, IRIS_ALLOWLIST, IRIS_DISABLE_READ, IRIS_ENABLE_SEND 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 VS Code 中以 Agent 模式打开 AI 聊天
试一试
用 Iris 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 Iris,或回答中出现 Iris 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
开发者专用:终端命令和 JSON 设置
安装在电脑上
Claude Code
claude mcp add iris --env IRIS_CLIENT_ID=your-value --env IRIS_TENANT_ID=your-value --env IRIS_DRAFT_FOLDER=your-value --env IRIS_ALLOWLIST=your-value --env IRIS_DISABLE_READ=your-value --env IRIS_ENABLE_SEND=your-value -- uvx iris-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"iris": {
"command": "uvx",
"args": [
"iris-mcp"
],
"env": {
"IRIS_CLIENT_ID": "your-value",
"IRIS_TENANT_ID": "your-value",
"IRIS_DRAFT_FOLDER": "your-value",
"IRIS_ALLOWLIST": "your-value",
"IRIS_DISABLE_READ": "your-value",
"IRIS_ENABLE_SEND": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"iris": {
"command": "uvx",
"args": [
"iris-mcp"
],
"env": {
"IRIS_CLIENT_ID": "your-value",
"IRIS_TENANT_ID": "your-value",
"IRIS_DRAFT_FOLDER": "your-value",
"IRIS_ALLOWLIST": "your-value",
"IRIS_DISABLE_READ": "your-value",
"IRIS_ENABLE_SEND": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"iris": {
"type": "stdio",
"command": "uvx",
"args": [
"iris-mcp"
],
"env": {
"IRIS_CLIENT_ID": "your-value",
"IRIS_TENANT_ID": "your-value",
"IRIS_DRAFT_FOLDER": "your-value",
"IRIS_ALLOWLIST": "your-value",
"IRIS_DISABLE_READ": "your-value",
"IRIS_ENABLE_SEND": "your-value"
}
}
}
}需要你填写的值
IRIS_CLIENT_ID必填 envApplication (client) ID of YOUR OWN Entra app registration. There is no shared app; you register one.IRIS_TENANT_IDenvDirectory (tenant) ID. Defaults to 'organizations'.IRIS_DRAFT_FOLDERenvMail folder drafts are written to, created on first use. Defaults to 'AI Drafts'. Empty string uses Drafts.IRIS_ALLOWLISTenvPath to a recipient allowlist file. If absent or empty, all recipients are permitted.IRIS_DISABLE_READenvSet to '1' to unregister the read tools (list/search/get messages and threads) for a drafts-only surface.IRIS_ENABLE_SENDenvSet to '1' to enable sending. ALSO requires Mail.Send granted on the Entra app and a fresh sign-in. Off by default; when unset, iris cannot send and the send tool is not registered.
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
一览
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月12日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 SuperAngryMonkey 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于上个月
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“聊天与邮件”中的其他服务器比较i
- 星标数多于此分类中其他 1962 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 1962 个服务器的 35% 更新
- 基础检查结果等于或优于此分类中其他 1962 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Iris 安全吗?
它在 2 项适用的基础检查中通过了 2 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:IRIS_CLIENT_ID
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于上个月,最新版本(0.3.0)于2个月前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
有什么可以替代它?
同一分类中有:Inbox Zero, Agent-Native Chat, draw.io
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Agent-Native Chat
Minimal chat-first app with durable threads, actions, and the app-agent loop
draw.io
Create draw.io diagrams in chat from Mermaid or XML, shown live and interactive. 10,000+ shapes.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
iris
A Microsoft 365 mail server for AI agents that reads your mailbox and writes drafts, but does not send email — until you decide it should.
By default iris requests the delegated Graph scope Mail.ReadWrite and never Mail.Send. The access token it holds has no capability to transmit a message, so no prompt, no jailbreak and no bug in this code can make one go out. It writes drafts into a folder in your mailbox; you open Outlook and press Send.
Sending is an explicit opt-in (IRIS_ENABLE_SEND=1) that requires granting the Mail.Send scope and re-consenting — and even then every send is human-confirmed and allowlist-checked. Leave it off (the default) and the no-send property is structural, as above. See Enabling send.
That is the whole design. Everything else is detail.
Why this shape
The usual worry about giving an agent your mailbox is that it will send something you did not sanction — to the wrong person, with the wrong tone, or because someone talked it into doing so. The common answer is a confirmation prompt, which is a guardrail: code that asks permission, and code can be bypassed.
iris removes the capability instead. Microsoft Graph will reject a send attempt made with this token, because the consent screen you approved never included that permission. The security boundary is Microsoft's, not this program's, and it holds even if this program is wrong.
The trade is real: a human is in the loop on every message, by construction. If you want autonomous sending, iris is the wrong tool.
Install
uvx iris-mcp # run without installing
pip install iris-mcp
Python 3.10 or newer. macOS ships Python 3.9, which is too old — mcp requires 3.10+. Use uv (it comes with uvx and manages its own Python), or install a current Python with Homebrew (brew install python@3.12). The system python3 on macOS will not work.
Setup
You must register your own Entra application. There is no shared app registration and no hosted service — iris talks directly from your machine to your tenant. This is deliberate: a shared app would mean trusting someone else's client ID with access to your mail.
- Entra admin centre → App registrations → New registration. Single tenant is fine. No redirect URI needed.
- Authentication → Settings → enable Allow public client flows. Device code sign-in needs this. No client secret is used anywhere.
- API permissions → Microsoft Graph → Delegated → add `Mail.ReadWrite`. For draft-only use (the default), add nothing else and leave
Mail.Sendoff — that omission is what makes the no-send property structural. AddMail.Sendonly if you intend to enable sending (see Enabling send). - Copy the Application (client) ID and Directory (tenant) ID. Neither is a secret.
Then add iris to your MCP client:
{
"mcpServers": { "iris": { "command": "uvx", "args": ["iris-mcp"], "env": { "IRIS_CLIENT_ID": " ", "IRIS_TENANT_ID": " " } } } }
Sign in once: call iris_login, open the URL, enter the code, then call iris_login_finish. The token cache is written next to the server, mode 600.
Deploying to a whole team? See the Administrator Deployment Guide — authorizing iris across a Microsoft 365 tenant: admin consent, per-user assignment, and why it stays the delegated model rather than application permissions.
Clients
iris is a local stdio MCP server: your MCP client launches it as a child process on the same machine. It works with any client that supports local stdio servers — Claude Desktop, Cursor, and the Grok CLI (grok mcp add iris -- uvx iris-mcp) among them.
It does not work with clients that only accept remote MCP connectors over HTTP. The Grok app / Grok Bot is in that category — it takes hosted HTTP servers, not local stdio ones — so iris cannot attach to it as-is. Bridging iris to an HTTP transport is possible, but out of scope for this project.
Tools
| Tool | What it does |
|---|---|
iris_login | Starts device-code sign-in, returns a URL and a code |
iris_login_finish | Completes sign-in; safe to call repeatedly while you type the code |
iris_auth_status | Who is signed in, which scopes, and whether Graph is reachable |
iris_list_folders | Lists your top-level mail folders, so you can pick one for a draft |
iris_list_messages | Lists recent messages in a folder, newest first (Inbox by default; unread_only, since) |
iris_search_messages | Searches the mailbox with Outlook/KQL syntax (from:, subject:, received>=…) |
iris_get_message | Reads one message in full: headers, plain-text body, attachment names |
iris_get_thread | Reads a whole conversation, oldest first |
iris_create_draft | Writes a draft (to/cc/bcc, subject, body or HTML, optional reply-to, optional folder) |
iris_list_drafts | Lists what is waiting in a draft folder (optional folder) |
iris_update_draft | Revises a draft in place |
iris_delete_draft | Deletes a draft; requires confirm=true |
iris_send_draft | Only present when `IRIS_ENABLE_SEND=1`. Sends an existing draft; requires confirm=true, re-checks the allowlist |
Reading mail
The four read tools are read-only: they never mark a message read, never create folders, and every call is written to the audit log. Message bodies are third-party text — an agent should treat them as data, never as instructions. Set IRIS_DISABLE_READ=1 to unregister them if you want a drafts-only tool surface (the granted scope is the same either way; see SECURITY.md).
More than one mailbox
Run a second copy under another name in your MCP client config, with its own IRIS_CLIENT_ID / IRIS_TENANT_ID (for a mailbox in another tenant) and its own IRIS_TOKEN_CACHE, IRIS_FLOW_FILE and IRIS_AUDIT_LOG paths so the two never share a sign-in:
"iris-work": {
"command": "iris-mcp", "env": { "IRIS_CLIENT_ID": " ", "IRIS_TENANT_ID": " ", "IRIS_TOKEN_CACHE": "~/.config/iris-work/token_cache.json", "IRIS_FLOW_FILE": "~/.config/iris-work/pending_flow.json", "IRIS_AUDIT_LOG": "~/.config/iris-work/audit.log" } }
Use absolute paths if your client does not expand ~.
Where drafts go
Into a dedicated top-level mail folder, AI Drafts by default (IRIS_DRAFT_FOLDER), created on first use. Set the variable to an empty string to use the normal Drafts folder instead.
You can also choose the folder per draft: pass folder to iris_create_draft (and iris_list_drafts) to target any folder by name, created on first use if it does not exist. Pass "" or "Drafts" for the normal Outlook Drafts folder, or call iris_list_folders first to pick from what already exists. Omitting folder uses the IRIS_DRAFT_FOLDER default, so nothing changes for existing setups.
These are real drafts and Outlook sends them normally — but because they live in their own folder, they do not appear in the Drafts view. That is the point: agent-written mail sits somewhere you have to go and look, rather than mixed in with your own half-finished messages.
One wrinkle worth knowing: Graph's createReply always lands a reply in Drafts first, so iris moves it afterwards, and a move assigns a new message id.
Enabling send
Sending is off by default and, by design, takes three deliberate steps — miss any one and iris still cannot send:
- In your Entra app registration, add `Mail.Send` (Delegated) alongside
Mail.ReadWrite. - Set
IRIS_ENABLE_SEND=1in the server's environment. Only then isMail.Sendrequested and theiris_send_drafttool registered at all. - Run
iris_loginagain to re-consent — the cached token predates the new scope and will not carry it until you do.
Then iris_send_draft(draft_id, confirm=true) sends an existing draft. It refuses without confirm, re-verifies the message is still an unsent draft, and re-runs the recipient allowlist before sending. The flow stays compose → review → send; iris never composes and sends in one shot.
Understand the trade. With send off, "cannot send" is enforced by Microsoft against your consent and holds even if this code is wrong. With send on, the last line of defence is a per-call confirmation — a guardrail *in this code*, which is exactly the kind of check a bug or a cleverly-worded prompt can talk past. Enable it only where that weaker guarantee is acceptable.
Other controls
- Recipient allowlist —
recipients.allow, one address or domain per line. Absent or empty means all recipients are permitted. PointIRIS_ALLOWLISTelsewhere if you prefer. - Kill switch — create a
DISABLEDfile beside the server, or setIRIS_DISABLED=1, and every tool refuses. - Audit log — every call is appended to
audit.log(IRIS_AUDIT_LOG).
Limits
No attachments. No shared or delegated mailboxes — /me only. No folder nesting via parentFolderId. Sign-in is delegated device-code as a public client, so the blast radius is exactly one mailbox: yours.
Security
The no-send guarantee, how to verify it yourself, and — just as important — what iris *can* reach with Mail.ReadWrite: see SECURITY.md.
Run it as an HTTP server (Cloudflare Worker)
Besides pip install iris-mcp (stdio), iris ships a Cloudflare Python Worker in worker/ that speaks MCP over HTTP — for agents that can only reach a remote URL (for example a hosted chatbot). One-click deploy and full setup are in worker/README.md.
License
MIT — see LICENSE.