pypi iris-mcpstdioMITupdated 17d ago
A Microsoft 365 mail server for AI agents that cannot send email.
O que dá para fazer com iris?
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.
- 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. Add nothing else. Do not addMail.Send— if it is present, the guarantee above is void. - 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
| 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_create_draft |
Writes a draft (to/cc/bcc, subject, body or HTML, optional reply-to) |
iris_list_drafts |
Lists what is waiting in the draft folder |
iris_update_draft |
Revises a draft in place |
iris_delete_draft |
Deletes 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 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.
License
MIT — see LICENSE.
Instalação
Adicione iris ao seu cliente. Escolha o que você usa.
claude mcp add iris-mcp -- uvx iris-mcpcodex mcp add iris-mcp -- uvx iris-mcpamp mcp add iris-mcp -- uvx iris-mcp{
"mcpServers": {
"iris-mcp": {
"command": "uvx",
"args": [
"iris-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"iris-mcp": {
"command": "uvx",
"args": [
"iris-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"iris-mcp","command":"uvx","args":["iris-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"iris-mcp": {
"command": "uvx",
"args": [
"iris-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"iris-mcp": {
"command": "uvx",
"args": [
"iris-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"iris-mcp": {
"command": "uvx",
"args": [
"iris-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"iris-mcp": {
"type": "local",
"command": "uvx",
"args": [
"iris-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"iris-mcp": {
"command": {
"path": "uvx",
"args": [
"iris-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
uvx iris-mcpRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
7 ferramentas
iris expõe 7 ferramentas a um agente conectado.
- 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_create_draft
- Writes a draft (to/cc/bcc, subject, body or HTML, optional reply-to)
- iris_list_drafts
- Lists what is waiting in the draft folder
- iris_update_draft
- Revises a draft in place
- iris_delete_draft
- Deletes a draft; requires `confirm=true`
Pontuação
75 / 100
Boa
- Documentação25/25
- Manutenção19/25
- Confiança13/20
- Capacidade6/15
- Instalação12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 9 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 7 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
Histórico de versões
| Versões | Publicada |
|---|---|
| 0.1.0Mais recente | 22 de ago. de 2026 |