# Microsoft Outlook (TUI, CLI & MCP)

> Microsoft Outlook (TUI, CLI & MCP) is an open-source MCP server for communication. Terminal TUI, CLI and MCP server for Outlook mail, calendar and To Do with offline search. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Windows, Linux, API
- **Website:** https://bitefoundry.dev
- **Repository:** https://github.com/bitefoundry/outlook
- **MCP Registry name:** io.github.BiteFoundry/outlook
- **Categories:** [communication](https://ai-powered.com/categories/communication), [productivity](https://ai-powered.com/categories/productivity)
- **Listing updated:** 2026-11-27

## About

Outlook from a keyboard-driven terminal. Mail, calendar events, contacts and Microsoft To Do can be browsed in an interactive interface, scripted from the shell, or reached through a local HTTP API and an MCP server for AI clients.

Messages and tasks are kept in a local SQLite cache with full-text search, so cached lookups keep working offline while sending, archiving and calendar changes go to Microsoft Graph. Writes such as archive, flag or complete apply immediately in the interface and are sent to the service.

It suits developers and power users who live in the terminal, and teams wiring Outlook data into agents or shell scripts. Commands return compact JSON by default, with a flag for full output. It is one of several BiteFoundry tools covering other Microsoft 365 and workplace services.

## Features

- **Terminal mail and calendar:** Browse mail, agenda and To Do lists in a ratatui interface with keyboard navigation and inline image preview.
- **Offline cached search:** Messages sync into a SQLite FTS5 cache so searches run locally without a network connection.
- **Scriptable CLI:** Commands such as read, send, calendar and add-task accept a --json flag for use in shell scripts.
- **Local HTTP API:** An Axum server on localhost exposes mail and calendar endpoints protected by a bearer key.
- **MCP server for agents:** A stdio MCP server exposes Outlook tools to AI clients such as Claude Code and Cursor.
- **Flexible sign-in:** Supports interactive login, device code, an OAuth access token or token file, and custom Entra ID apps.

## Good for

- Triage an inbox and archive or flag messages from the terminal
- Let an AI agent search, read and draft Outlook email through MCP
- Schedule meetings and respond to invitations from a shell script
- Export cached mail or attachments for offline review
- Manage Microsoft To Do lists alongside other terminal work

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add outlook --env OUTLOOK_ACCESS_TOKEN='<OUTLOOK_ACCESS_TOKEN>' -- docker run -i --rm -e OUTLOOK_ACCESS_TOKEN ghcr.io/bitefoundry/outlook:0.3.2
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "outlook": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "OUTLOOK_ACCESS_TOKEN",
        "ghcr.io/bitefoundry/outlook:0.3.2"
      ],
      "env": {
        "OUTLOOK_ACCESS_TOKEN": "<OUTLOOK_ACCESS_TOKEN>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "outlook": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "OUTLOOK_ACCESS_TOKEN",
        "ghcr.io/bitefoundry/outlook:0.3.2"
      ],
      "env": {
        "OUTLOOK_ACCESS_TOKEN": "<OUTLOOK_ACCESS_TOKEN>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "outlook": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "OUTLOOK_ACCESS_TOKEN",
        "ghcr.io/bitefoundry/outlook:0.3.2"
      ],
      "env": {
        "OUTLOOK_ACCESS_TOKEN": "<OUTLOOK_ACCESS_TOKEN>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "outlook": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "OUTLOOK_ACCESS_TOKEN",
        "ghcr.io/bitefoundry/outlook:0.3.2"
      ],
      "env": {
        "OUTLOOK_ACCESS_TOKEN": "<OUTLOOK_ACCESS_TOKEN>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add outlook --env OUTLOOK_ACCESS_TOKEN='<OUTLOOK_ACCESS_TOKEN>' -- docker run -i --rm -e OUTLOOK_ACCESS_TOKEN ghcr.io/bitefoundry/outlook:0.3.2
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.outlook]
command = "docker"
args = ["run", "-i", "--rm", "-e", "OUTLOOK_ACCESS_TOKEN", "ghcr.io/bitefoundry/outlook:0.3.2"]
env = { OUTLOOK_ACCESS_TOKEN = "<OUTLOOK_ACCESS_TOKEN>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "outlook": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "OUTLOOK_ACCESS_TOKEN",
        "ghcr.io/bitefoundry/outlook:0.3.2"
      ],
      "env": {
        "OUTLOOK_ACCESS_TOKEN": "<OUTLOOK_ACCESS_TOKEN>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e OUTLOOK_ACCESS_TOKEN='<OUTLOOK_ACCESS_TOKEN>' outlook docker -- run -i --rm -e OUTLOOK_ACCESS_TOKEN ghcr.io/bitefoundry/outlook:0.3.2

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "outlook": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "OUTLOOK_ACCESS_TOKEN",
        "ghcr.io/bitefoundry/outlook:0.3.2"
      ],
      "env": {
        "OUTLOOK_ACCESS_TOKEN": "<OUTLOOK_ACCESS_TOKEN>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "outlook": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "OUTLOOK_ACCESS_TOKEN",
        "ghcr.io/bitefoundry/outlook:0.3.2"
      ],
      "env": {
        "OUTLOOK_ACCESS_TOKEN": "<OUTLOOK_ACCESS_TOKEN>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "outlook": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "OUTLOOK_ACCESS_TOKEN",
        "ghcr.io/bitefoundry/outlook:0.3.2"
      ],
      "env": {
        "OUTLOOK_ACCESS_TOKEN": "<OUTLOOK_ACCESS_TOKEN>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "outlook": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "OUTLOOK_ACCESS_TOKEN",
        "ghcr.io/bitefoundry/outlook:0.3.2"
      ],
      "env": {
        "OUTLOOK_ACCESS_TOKEN": "<OUTLOOK_ACCESS_TOKEN>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "outlook": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "OUTLOOK_ACCESS_TOKEN",
        "ghcr.io/bitefoundry/outlook:0.3.2"
      ],
      "env": {
        "OUTLOOK_ACCESS_TOKEN": "<OUTLOOK_ACCESS_TOKEN>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "outlook": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "OUTLOOK_ACCESS_TOKEN",
        "ghcr.io/bitefoundry/outlook:0.3.2"
      ],
      "env": {
        "OUTLOOK_ACCESS_TOKEN": "<OUTLOOK_ACCESS_TOKEN>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "outlook": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "OUTLOOK_ACCESS_TOKEN",
        "ghcr.io/bitefoundry/outlook:0.3.2"
      ],
      "env": {
        "OUTLOOK_ACCESS_TOKEN": "<OUTLOOK_ACCESS_TOKEN>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "outlook": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "OUTLOOK_ACCESS_TOKEN",
        "ghcr.io/bitefoundry/outlook:0.3.2"
      ],
      "env": {
        "OUTLOOK_ACCESS_TOKEN": "<OUTLOOK_ACCESS_TOKEN>"
      }
    }
  }
}
```

## FAQ

### Is Microsoft Outlook (TUI, CLI & MCP) free to use?

The project is MIT licensed and distributed on npm and GitHub Releases.

### Which platforms does Microsoft Outlook (TUI, CLI & MCP) run on?

Windows, macOS and Linux, with an npm package containing prebuilt binaries.

### Can Microsoft Outlook (TUI, CLI & MCP) work offline?

Cached search works offline, while cloud reads, edits and sync use the connected Microsoft service.

### How many MCP tools does Microsoft Outlook (TUI, CLI & MCP) expose?

The outlook mcp command exposes 23 Outlook tools over stdio.

### How do I add Microsoft Outlook (TUI, CLI & MCP) to Claude Code?

Run this command in your terminal: claude mcp add outlook --env OUTLOOK_ACCESS_TOKEN='<OUTLOOK_ACCESS_TOKEN>' -- docker run -i --rm -e OUTLOOK_ACCESS_TOKEN ghcr.io/bitefoundry/outlook:0.3.2

### What are the best alternatives to Microsoft Outlook (TUI, CLI & MCP)?

The closest alternatives to Microsoft Outlook (TUI, CLI & MCP) are Outlook, Outlook Mail, Outlook MCP, Office Outlook MCP and Outlook Email.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Outlook](https://ai-powered.com/mcp/outlook-2): Outlook is an open-source MCP server for communication.
- [Outlook Mail](https://ai-powered.com/mcp/outlook-mail): Outlook Mail is an open-source MCP server for communication.
- [Outlook MCP](https://ai-powered.com/mcp/outlook-mcp-2): Outlook MCP is an open-source MCP server for communication.
- [Office Outlook MCP](https://ai-powered.com/mcp/office-outlook-mcp): Office Outlook MCP is an MCP server for communication.
- [Outlook Email](https://ai-powered.com/mcp/outlook-email): Outlook Email is an MCP server for communication.
- [Outlook](https://ai-powered.com/mcp/outlook): Outlook is an open-source MCP server for communication.
- [MCP Outlook](https://ai-powered.com/mcp/mcp-outlook): MCP Outlook is an open-source MCP server for communication.
- [Outlook Personal MCP](https://ai-powered.com/mcp/outlook-personal-mcp): Outlook Personal MCP is an open-source MCP server for communication.

---
Source: https://ai-powered.com/mcp/microsoft-outlook-tui-cli-and-mcp
