Skip to content
MCP server

Microsoft Outlook (TUI, CLI & MCP)

Terminal TUI, CLI and MCP server for Outlook mail, calendar and To Do with offline search

Runs locally

Microsoft Outlook (TUI, CLI & MCP) is an open-source MCP server for communication. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, macOS, Windows
Runs
Locally
Version
0.3.2
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a 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

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

Or share it with your project

Add to .mcp.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 Code setup guide

Add to claude_desktop_config.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.

Claude Desktop setup guide

Add to ~/.cursor/mcp.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.

Cursor setup guide

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.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>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "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>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.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.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.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.

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "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.

    Junie

    Add to ~/.junie/mcp/mcp.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.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.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.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • OUTLOOK_ACCESS_TOKENMicrosoft Graph delegated bearer token for Microsoft Outlook.
  • OUTLOOK_TOKEN_FILEPath to a file containing a Microsoft Graph bearer token (read live on demand).

About Microsoft Outlook (TUI, CLI & MCP)

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.

What it does

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

Pricing

Open source

Free and MIT licensed; requires a Microsoft 365 account.

Prices change. Check bitefoundry.dev before you buy.

Microsoft Outlook (TUI, CLI & MCP) 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.

How AIPoweredBot checks servers