Permet aux agents IA de lire les e-mails Microsoft 365 et de créer des brouillons dans Outlook tout en maintenant une barrière de sécurité structurelle empêchant l'envoi automatique.
Aussi connu sous SuperAngryMonkey/iris, iris-mcp
- Étoiles
- 0
- Outils
- 13
- Téléchargements, 30 jours
- 359
- Dernière version
- 0.3.0
- Dernier commit
- 27 sept. 2026
- Licence
- MIT
Qu'est-ce que iris MCP ?
iris est un serveur MCP. Permet aux agents IA de lire les e-mails Microsoft 365 et de créer des brouillons dans Outlook tout en maintenant une barrière de sécurité structurelle empêchant l'envoi automatique. Il expose 13 outils, comme iris_login, iris_login_finish, iris_auth_status.
Résumé généré à partir du README du projet
À propos du MCP server iris
La gestion des communications Microsoft 365 via des agents IA est sécurisée par iris, qui permet aux agents de lire les messages et de rédiger des brouillons sans pouvoir les envoyer. Par défaut, le serveur utilise le scope Mail.ReadWrite et ne possède pas la permission Mail.Send, créant ainsi une barrière de sécurité structurelle imposée par Microsoft Graph. Cela garantit que même si un agent est compromis ou mal orienté, il ne peut pas transmettre de messages sans une intervention humaine explicite dans Outlook.
Les développeurs configurent cela localement en tant que MCP server via stdio pour des clients comme Claude Desktop, Cursor ou la CLI Grok. Cela nécessite un enregistrement d'application Entra personnel avec un Client ID et un Tenant ID. Les utilisateurs doivent effectuer une connexion par code d'appareil via iris_login pour authentifier leur boîte de réception spécifique. Bien que le serveur se concentre principalement sur la lecture des messages et la gestion des brouillons dans un dossier dédié AI Drafts, les utilisateurs peuvent opter pour les capacités d'envoi en activant la variable d'environnement IRIS_ENABLE_SEND et en consentant à nouveau aux permissions nécessaires.
Ce que vous pouvez faire avec
- 1Rédaction de réponses par e-mailUn agent IA peut composer une réponse à un fil de discussion spécifique et l'enregistrer en tant que brouillon pour votre révision.
- 2Recherche dans la correspondance ancienneVous pouvez demander à une IA de trouver des messages spécifiques en utilisant la syntaxe Outlook ou KQL, comme l'objet ou l'expéditeur.
- 3Organisation du courrier entrantL'agent peut lister les messages récents dans votre boîte de réception ou dans des dossiers spécifiques pour vous aider à trier votre charge de travail.
Extrait du README du projet. Chaque cas d'utilisation est vérifié par rapport à une citation du document.
Comment installer iris MCP
Formats vérifiés le 10 nov. 2026Installer iris MCP dans Claude Code
$ claude mcp add --env IRIS_CLIENT_ID=<IRIS_CLIENT_ID> iris -- uvx iris-mcpInstaller iris MCP dans Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"iris": {
"command": "uvx",
"args": [
"iris-mcp"
],
"env": {
"IRIS_CLIENT_ID": "<IRIS_CLIENT_ID>"
}
}
}
}Installer iris MCP dans VS Code
.vscode/mcp.json
{
"servers": {
"iris": {
"type": "stdio",
"command": "uvx",
"args": [
"iris-mcp"
],
"env": {
"IRIS_CLIENT_ID": "<IRIS_CLIENT_ID>"
}
}
}
}Installer iris MCP dans Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"iris": {
"command": "uvx",
"args": [
"iris-mcp"
],
"env": {
"IRIS_CLIENT_ID": "<IRIS_CLIENT_ID>"
}
}
}
}Installer iris MCP dans Codex
~/.codex/config.toml
[mcp_servers.iris] command = "uvx" args = ["iris-mcp"] [mcp_servers.iris.env] IRIS_CLIENT_ID = "<IRIS_CLIENT_ID>"
Installer iris MCP dans Gemini CLI
~/.gemini/settings.json
{
"mcpServers": {
"iris": {
"command": "uvx",
"args": [
"iris-mcp"
],
"env": {
"IRIS_CLIENT_ID": "<IRIS_CLIENT_ID>"
}
}
}
}Outils MCP iris 13
Détectés depuis le READMEiris_loginiris_login_finishiris_auth_statusiris_list_foldersiris_list_messagesiris_search_messagesiris_get_messageiris_get_threadiris_create_draftiris_list_draftsiris_update_draftiris_delete_draft
| iris_login | — | |
| iris_login_finish | — | |
| iris_auth_status | — | |
| iris_list_folders | — | |
| iris_list_messages | — | |
| iris_search_messages | — | |
| iris_get_message | — | |
| iris_get_thread | — | |
| iris_create_draft | — | |
| iris_list_drafts | — | |
| iris_update_draft | — | |
| iris_delete_draft | — |
Afficher les 13 outilsAfficher moins d'outils
iris_send_draft
| iris_send_draft | — |
Configuration
IRIS_CLIENT_IDRequisApplication (client) ID of YOUR OWN Entra app registration. There is no shared app; you register one.
IRIS_ALLOWLISTPath to a recipient allowlist file. If absent or empty, all recipients are permitted.
IRIS_AUDIT_LOGIRIS_DISABLE_READSet to '1' to unregister the read tools (list/search/get messages and threads) for a drafts-only surface.
IRIS_DRAFT_FOLDERMail folder drafts are written to, created on first use. Defaults to 'AI Drafts'. Empty string uses Drafts.
IRIS_ENABLE_SENDSet 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.
IRIS_FLOW_FILEIRIS_TENANT_IDDirectory (tenant) ID. Defaults to 'organizations'.
IRIS_TOKEN_CACHE
| Nom | Description | Type |
|---|---|---|
| IRIS_CLIENT_ID | Application (client) ID of YOUR OWN Entra app registration. There is no shared app; you register one. | Requis |
| IRIS_ALLOWLIST | Path to a recipient allowlist file. If absent or empty, all recipients are permitted. | |
| IRIS_AUDIT_LOG | — | |
| IRIS_DISABLE_READ | Set to '1' to unregister the read tools (list/search/get messages and threads) for a drafts-only surface. | |
| IRIS_DRAFT_FOLDER | Mail folder drafts are written to, created on first use. Defaults to 'AI Drafts'. Empty string uses Drafts. | |
| IRIS_ENABLE_SEND | Set 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. | |
| IRIS_FLOW_FILE | — | |
| IRIS_TENANT_ID | Directory (tenant) ID. Defaults to 'organizations'. | |
| IRIS_TOKEN_CACHE | — |
Vérifications automatisées
Exécuté le 14 nov. 2026Rapport complet →A passé nos vérifications automatisées. Il ne s'agit pas d'un audit de sécurité : lisez le code et donnez au serveur l'accès le plus restreint dont il a besoin. Fonctionnement des vérifications
- Dépôt source lié et accessiblesuperangrymonkey/iris is public and reachablegithub.com/superangrymonkey/iris ↗Réussi
- Le paquet cite ce dépôt comme sourceiris-mcp names superangrymonkey/iris as sourcepypi.org/project/iris-mcp/ ↗Réussi
- Provenance du build (attestation Sigstore)Sigstore attestation for iris-mcppypi.org/project/iris-mcp/ ↗Réussi
- Licence open source (OSI)MITspdx.org/licenses/MIT.html ↗Réussi
- Commit ou version publiée au cours de l'année écouléeLast commit or release 2026-09-27github.com/superangrymonkey/iris ↗Réussi
- OpenSSF ScorecardNon vérifié
- Nom du package non proche d'un package populaireNo popular package one edit away from iris-mcpRéussi
- Aucun avis critique dans le paquet ni ses dépendances34 resolved dependencies checked; no critical advisoryosv.dev ↗Réussi
- Aucune instruction cachée destinée au modèle13 tool descriptions and the README read; no override phrases, credential paths or hidden charactersRéussi
- Les outils destructifs sont étiquetésNo tool named like delete, drop or execRéussi
- L'endpoint distant répond au handshake MCPNon vérifié
README
Voir sur GitHubiris
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 leaveMail.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": "<application (client) id>",
"IRIS_TENANT_ID": "<directory (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": "<app id in the other tenant>",
"IRIS_TENANT_ID": "<other 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) alongsideMail.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.
Questions sur iris MCP
Comment ajouter iris MCP à Claude Code ?
Exécutez claude mcp add --env IRIS_CLIENT_ID=<IRIS_CLIENT_ID> iris -- uvx iris-mcp dans votre terminal. Ajoutez --scope user pour le rendre disponible dans tous les projets.
Comment ajouter iris MCP à Cursor ?
Ouvrez ~/.cursor/mcp.json et ajoutez le serveur sous mcpServers, avec la configuration Cursor indiquée dans la section d'installation ci-dessus.
Quels outils iris MCP fournit-il ?
Il expose 13 outils, dont iris_login, iris_login_finish, iris_auth_status, iris_list_folders, iris_list_messages.
L'IA peut-elle envoyer des e-mails automatiquement ?
Non, l'envoi est désactivé par défaut. Même s'il est activé via une option d'adhésion, chaque envoi nécessite une confirmation humaine et une vérification sur liste blanche.
Où sont stockés les brouillons générés par l'IA ?
Les brouillons sont placés par défaut dans un dossier dédié nommé 'AI Drafts' afin de ne pas encombrer votre vue habituelle des brouillons Outlook.
iris prend-il en charge les pièces jointes ?
Non, l'implémentation actuelle ne prend pas en charge les pièces jointes.