Outlook logo

Outlook

Read and manage Outlook mail, calendars, contacts, tasks, and OneDrive files through Microsoft Graph and MCP.

Install Outlook

Run the project’s own setup commands, in order.

Setup steps from the project

outlook installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    brew install rlrghb/tap/olk
    
  2. 2. Install
    go install github.com/rlrghb/olkcli/cmd/olk@latest
    
  3. 3. Install
    npm install -g olkcli
    
  4. 4. Sign in
    olk auth login
    

Overview

outlook MCP server exposes curated Microsoft Outlook and OneDrive operations through Microsoft Graph, covering mail, calendars, contacts, tasks, and files. Run it as the `olk` CLI for scripts or start MCP mode with `olk mcp` for agent use. Read operations are the default, while mutations require explicit opt-in, making it suited to agent workflows that need controlled access to workplace data. It supports personal Outlook.com accounts and enterprise Microsoft 365 accounts.

Use cases

  • Search Outlook mail by sender or subject
  • Review the next week of calendar events
  • Find contacts by name
  • Browse OneDrive files from an agent
  • Create controlled email reply drafts

Key features

  • Microsoft Graph access for Outlook and OneDrive
  • Read-first MCP tools with opt-in mutations
  • Mail, calendar, contacts, tasks, and file operations
  • JSON, TSV, and table output modes
  • HTML drafts with inline image attachments
  • Personal and enterprise Microsoft account support

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 83d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars25Stargazers on the source repository.
Last commit13d agoMost recent push to the default branch.
Directory activity10 viewsConfig copies, upvotes, and views on AllMCPs.

How Outlook works

What outlook does

outlook provides a command-line interface and MCP server for Microsoft Outlook and OneDrive. It connects to Microsoft Graph and gives scripts or agents access to mail, calendars, contacts, task lists, and files. The same installation supports interactive terminal commands, JSON-oriented automation, and MCP-based agent workflows.

The server is designed around read-first access. Agents can inspect messages, search mail, view upcoming calendar items, find contacts, list task lists, browse OneDrive, and synchronize changes. Actions that alter data, such as sending mail or creating drafts, require explicit mutation opt-in when exposed through MCP.

How it works

Install the olk command with Homebrew, Go, or npm, then authenticate with olk auth login. Enterprise work or school accounts use olk auth login --enterprise. olk auth status and olk whoami show the signed-in account. Start the MCP interface with olk mcp.

CLI output can be returned as JSON, TSV, or aligned tables. JSON combined with --results-only, --select, and tools such as jq supports scripts that need predictable fields. --concise can reduce large bodies and previews. Command results go to standard output, while diagnostics and prompts use standard error.

Refresh tokens are stored in the operating system keychain, and access tokens remain in memory. macOS users may be prompted to allow Keychain access after an upgrade.

Setup and configuration

Install one of the following:

  • brew install rlrghb/tap/olk
  • go install github.com/rlrghb/olkcli/cmd/olk@latest
  • npm install -g olkcli

After installation, run olk auth login, check the account with olk auth status, and launch olk mcp when connecting an MCP client. Use the enterprise login option for work or school accounts and enterprise-only features. No environment variables are required by the documented setup.

Tools and capabilities

  • List, search, inspect, send, and draft Outlook mail.
  • Create reply or reply-all drafts, including HTML drafts with inline images.
  • View calendar entries over a selected number of days.
  • Search and list contacts.
  • List to-do lists and work with task data.
  • Browse OneDrive files and directories.
  • Retrieve synchronized changes with olk changes.
  • Limit returned fields and choose JSON, TSV, or table output.

HTML drafts can reference local images with cid: URLs and repeatable --inline CID=PATH arguments. Each inline file must be an image under 3 MB, and every content ID must be unique within the HTML. Inline images apply to new drafts and threaded reply or reply-all drafts; immediate sends and forwards do not accept them.

Limitations and notes

Use --no-write --no-send --no-input for unattended read-only CLI runs. MCP mutations are not enabled implicitly and require explicit opt-in. Mail, calendar, contact, and file text can be wrapped with --wrap-untrusted for safer agent consumption.

The service depends on Microsoft Graph access and the permissions of the authenticated account. Personal Outlook.com accounts and enterprise Microsoft 365 accounts are supported, with enterprise login required for work or school scenarios. Review the security and privacy guidance before connecting an agent or sharing logs.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Outlook

outlook is an MCP server that connects AI agents to Microsoft Outlook and OneDrive through Microsoft Graph. Its main tools cover mail, calendars, contacts, task lists, and files, with read-first access and explicit opt-in for mutations such as sending messages or creating drafts.

Install it with Homebrew, Go, or npm, then authenticate with `olk auth login` and start MCP mode with `olk mcp`. The documented options are `brew install rlrghb/tap/olk`, `go install github.com/rlrghb/olkcli/cmd/olk@latest`, and `npm install -g olkcli`.

Use `olk auth login --enterprise` for work or school accounts. Check the selected account with `olk auth status` or `olk whoami`, then run `olk mcp` to expose the authenticated Outlook and OneDrive access to an MCP client.

Yes, outlook can create HTML drafts with inline images by referencing `cid:` URLs and passing matching `--inline CID=PATH` arguments. Each image must be under 3 MB, use a unique content ID, and be supplied as an image file.

Use `--no-write --no-send --no-input` for unattended read-only CLI runs. MCP also uses curated tools and requires explicit opt-in for mutations, while `--wrap-untrusted` can wrap external mail, calendar, contact, and file text for agent-safe consumption.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewOutlook AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/outlook-2?style=directory)](https://allmcps.com/mcp/outlook-2)
HTML Embed
<a href="https://allmcps.com/mcp/outlook-2"><img src="https://allmcps.com/api/badge/outlook-2?style=directory" alt="Outlook on AllMCPs" /></a>