Back to Browse

Iris MCP Server

Developer ToolsModerate5.2MCP RegistryLocal
Free

Server data from the Official MCP Registry

Microsoft 365 mail MCP that drafts but cannot send: no Mail.Send scope.

About

Microsoft 365 mail MCP that drafts but cannot send: no Mail.Send scope.

Security Report

5.2
Moderate5.2Moderate Risk

iris is a well-architected Microsoft 365 mail MCP server with strong security fundamentals. The core design deliberately removes send capability at the permission boundary (Mail.ReadWrite only, never Mail.Send), making it structurally resistant to prompt injection and jailbreaks. Code quality is solid with proper input validation, thoughtful error handling, and appropriate use of environment variables. Minor quality issues around broad exception handling and one informational finding about token cache permissions do not materially impact the security posture. Supply chain analysis found 8 known vulnerabilities in dependencies (0 critical, 5 high severity). Package verification found 1 issue.

4 files analyzed · 12 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

env_vars

Check that this permission is expected for this type of plugin.

File System Read

Reads files on your machine. Normal for tools that analyze or process local data.

File System Write

Writes or modifies files on your machine. Check that this is expected for the tool.

HTTP Network Access

Connects to external APIs or services over the internet.

What You'll Need

Set these up before or after installing:

Application (client) ID of YOUR OWN Entra app registration. There is no shared app; you register one.Optional

Environment variable: IRIS_CLIENT_ID

Directory (tenant) ID. Defaults to 'organizations'.Optional

Environment variable: IRIS_TENANT_ID

Mail folder drafts are written to, created on first use. Defaults to 'AI Drafts'. Empty string uses Drafts.Optional

Environment variable: IRIS_DRAFT_FOLDER

Path to a recipient allowlist file. If absent or empty, all recipients are permitted.Optional

Environment variable: IRIS_ALLOWLIST

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-superangrymonkey-iris": {
      "env": {
        "IRIS_ALLOWLIST": "your-iris-allowlist-here",
        "IRIS_CLIENT_ID": "your-iris-client-id-here",
        "IRIS_TENANT_ID": "your-iris-tenant-id-here",
        "IRIS_DRAFT_FOLDER": "your-iris-draft-folder-here"
      },
      "args": [
        "iris-mcp"
      ],
      "command": "uvx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

iris

A Microsoft 365 mail server for AI agents that cannot send email.

Not "will not". Cannot. 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.

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+.

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.

  1. Entra admin centre → App registrationsNew registration. Single tenant is fine. No redirect URI needed.
  2. Authentication → Settings → enable Allow public client flows. Device code sign-in needs this. No client secret is used anywhere.
  3. API permissions → Microsoft Graph → Delegated → add Mail.ReadWrite. Add nothing else. Do not add Mail.Send — if it is present, the guarantee above is void.
  4. 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.

Tools

ToolWhat it does
iris_loginStarts device-code sign-in, returns a URL and a code
iris_login_finishCompletes sign-in; safe to call repeatedly while you type the code
iris_auth_statusWho is signed in, which scopes, and whether Graph is reachable
iris_create_draftWrites a draft (to/cc/bcc, subject, body or HTML, optional reply-to)
iris_list_draftsLists what is waiting in the draft folder
iris_update_draftRevises a draft in place
iris_delete_draftDeletes a draft; requires confirm=true

Where drafts go

Into a dedicated top-level mail folder, AI Drafts by default (IRIS_DRAFT_FOLDER). It is created on first use. Set the variable to an empty string to use the normal Drafts folder instead.

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.

Other controls

  • Recipient allowlistrecipients.allow, one address or domain per line. Absent or empty means all recipients are permitted. Point IRIS_ALLOWLIST elsewhere if you prefer.
  • Kill switch — create a DISABLED file beside the server, or set IRIS_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.

License

MIT — see LICENSE.

Reviews

No reviews yet

Be the first to review this server!