# iris [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/SuperAngryMonkey/iris  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/iris

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

## Tools
Capabilities this server exposes over MCP:

- **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

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "iris": {
    "command": "uvx",
    "args": ["iris-mcp"],
    "env": {
      "IRIS_CLIENT_ID": "",
      "IRIS_TENANT_ID": "",
      "IRIS_TOKEN_CACHE": "",
      "IRIS_FLOW_FILE": "",
      "IRIS_AUDIT_LOG": "",
      "IRIS_DRAFT_FOLDER": "",
      "IRIS_DISABLE_READ": "",
      "IRIS_ENABLE_SEND": ""
    }
  }
}
```

**Requires environment variables:** `IRIS_CLIENT_ID`, `IRIS_TENANT_ID`, `IRIS_TOKEN_CACHE`, `IRIS_FLOW_FILE`, `IRIS_AUDIT_LOG`, `IRIS_DRAFT_FOLDER`, `IRIS_DISABLE_READ`, `IRIS_ENABLE_SEND` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What the iris MCP server does

The iris MCP server gives an AI client access to a Microsoft 365 mailbox through Microsoft Graph. Its default scope is delegated `Mail.ReadWrite`, which supports reading mail and managing drafts but does not grant permission to send messages. Drafts can be stored in a dedicated top-level folder named `AI Drafts` by default, or in another selected folder.

The server is designed for workflows where an agent gathers mailbox context, proposes a response, and leaves a real Outlook draft for a person to review. It does not provide autonomous sending in its default configuration. The read operations do not mark messages as read or create folders, and calls are recorded in an audit log.

## How it works

iris runs locally as a stdio MCP server. The MCP client starts it as a child process, and the process communicates directly with the Microsoft Graph service from the same machine. There is no hosted service or shared application registration; each deployment uses an Entra application created by the operator.

Authentication uses the device-code flow. Call `iris_login` to receive a URL and code, complete the sign-in in a browser, and then call `iris_login_finish`. The latter can be called repeatedly while the user enters the code. Authentication status reports the signed-in identity, granted scopes, and Graph connectivity. Tokens are cached locally with restrictive file permissions.

The iris MCP server exposes separate operations for mailbox discovery, message retrieval, search, conversation reading, and draft management. Message search accepts Outlook/KQL-style expressions such as sender, subject, and received-date filters. Message content comes from the mailbox and should be treated as data rather than agent instructions.

## Setup and configuration

Use Python 3.10 or newer. The documented launch options are `uvx iris-mcp` or installation with `pip install iris-mcp`. Register an Entra application, enable public client flows, add delegated Microsoft Graph `Mail.ReadWrite`, and provide its application and directory IDs to the MCP client.

A minimal configuration sets `IRIS_CLIENT_ID` and `IRIS_TENANT_ID` while launching `iris-mcp` through `uvx`. Optional settings can select the token cache, pending device-code flow file, audit log, and default draft folder. `IRIS_DISABLE_READ=1` removes the read tools, while `IRIS_DRAFT_FOLDER` controls the default draft destination. Separate instances can use separate paths and credentials for different tenants or mailboxes.

## Tools and capabilities

Available tools cover:

- Device-code login, login completion, and authentication status.
- Top-level folder listing and recent-message listing, with unread and date filters.
- Outlook/KQL mailbox search, full-message retrieval, and whole-thread retrieval.
- Draft creation with recipients, subject, plain text or HTML body, reply-to details, and an optional folder.
- Draft listing, in-place updates, and confirmed deletion.

`iris_send_draft` is registered only when `IRIS_ENABLE_SEND=1`. Enabling it also requires delegated `Mail.Send` permission and renewed consent. Sending requires `confirm=true`, verifies that the item remains an unsent draft, and checks the recipient allowlist again. The tool never combines composition and sending in one operation.

## Limitations and notes

The default iris MCP server cannot send mail because its Microsoft Graph token lacks `Mail.Send`; a confirmation prompt alone is not the security boundary. Enabling sending changes that guarantee and should be done only when the weaker, code-level confirmation model is acceptable.

The server supports local stdio clients, including Claude Desktop and Cursor. It does not directly support clients that accept only remote HTTP MCP connectors. Drafts placed in a dedicated folder may not appear in Outlook's normal Drafts view, so users must open that folder to review them. Reply creation can also result in a new message ID after Graph moves the draft into its configured folder.

_Full upstream README: https://allmcps.com/mcp/iris/readme_

