Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Lightweight MCP server that enables AI agents to manage Microsoft Outlook email, calendar, and files using PKCE authentication with only a Client ID.

README.md

mcp-outlook-lite

The lightest way to connect AI agents to Microsoft Outlook. No client secret. No complex OAuth. Just a Client ID and you're done.

![License: MIT](LICENSE) ![Tests]() ![Coverage]() ![TypeScript]() ![Node]()

Tired of getting stuck on Outlook MCP auth? Most Outlook MCP servers require client secrets, complex permission grants, and multi-step OAuth configurations that break silently. This one uses PKCE — the browser handles login, no secrets stored anywhere. If you can create an Azure app registration, you can use this.

---

Why this one?

| | mcp-outlook-lite | Other Outlook MCPs | |---|---|---| | Auth setup | Client ID only, zero secrets | Client ID + Client Secret + certificates | | Auth flow | PKCE (browser popup) + device code (headless) | Complex OAuth requiring manual token management | | First-time experience | Register app > paste ID > done | Register app > create secret > configure redirect > manage tokens > debug errors | | Token management | Auto-refresh, encrypted at rest, zero maintenance | Often manual refresh or re-auth required | | Token efficiency | Focused tool schemas, minimal response payloads | Verbose responses eating your context window | | Headless support | Auto-detects SSH/containers, prints device code | Browser-only or manual token injection |

The auth problem is real. If you've tried other Outlook MCPs and got stuck after creating the Azure app — authorization failures, redirect URI mismatches, token exchange errors — that's because they use flows designed for server apps. PKCE is designed for exactly this use case: local tools that can't store secrets.

---

3-step setup

Step 1: Register an Azure app (5 min, one-time)

  1. Azure Portal > App registrations > New registration
  2. Name: anything (e.g. Outlook MCP). Account type:
  • Work/school: "Accounts in this organizational directory only"
  • Personal: "Accounts in any org directory and personal Microsoft accounts"
  1. Redirect URI: Web > http://localhost/callback
  2. Authentication > enable Allow public client flows > Save
  3. API permissions > Add Microsoft Graph delegated permissions:
   Mail.Read  Mail.ReadWrite  Mail.Send  Calendars.Read  Calendars.ReadWrite
   User.Read  MailboxSettings.Read  Files.Read.All  Sites.Read.All  offline_access
  1. Copy Application (client) ID from the Overview page
  2. Determine your Tenant ID:
  • Personal account (outlook.com / hotmail.com / live.com): use consumers
  • Work/school account: use the Directory (tenant) ID from the Overview page
  • Both: use common

That's it. No client secret. No certificates. No admin consent (for personal accounts). ⚠️ Personal account users: You must set AZURE_TENANT_ID=consumers. Using the Directory (tenant) ID from Azure Portal will authenticate successfully but Graph API calls will return 401 because your mailbox lives in the consumer identity system, not in that Azure AD tenant.

Step 2: Install

npx mcp-outlook-lite

Or add to your MCP client config:

<details> <summary><b>Claude Code</b></summary>

# Personal account (outlook.com / hotmail.com / live.com)
claude mcp add outlook \
  -e AZURE_CLIENT_ID=your-client-id \
  -e AZURE_TENANT_ID=consumers \
  -- npx mcp-outlook-lite

# Work/school account
claude mcp add outlook \
  -e AZURE_CLIENT_ID=your-client-id \
  -e AZURE_TENANT_ID=your-directory-tenant-id \
  -- npx mcp-outlook-lite

</details>

<details> <summary><b>Claude Desktop</b></summary>

{
  "mcpServers": {
    "outlook": {
      "command": "npx",
      "args": ["mcp-outlook-lite"],
      "env": {
        "AZURE_CLIENT_ID": "your-client-id",
        "AZURE_TENANT_ID": "consumers"
      }
    }
  }
}

Replace consumers with your Directory (tenant) ID for work/school accounts.

</details>

<details> <summary><b>Cursor / Windsurf / Other MCP clients</b></summary>

{
  "mcpServers": {
    "outlook": {
      "command": "npx",
      "args": ["mcp-outlook-lite"],
      "env": {
        "AZURE_CLIENT_ID": "your-client-id",
        "AZURE_TENANT_ID": "consumers"
      }
    }
  }
}

Replace consumers with your Directory (tenant) ID for work/school accounts.

</details>

Step 3: Use it

The first tool call triggers auth automatically:

  • Desktop: browser opens for Microsoft login
  • SSH / container: device code printed to stderr — follow the link

After that, tokens refresh silently. No re-login between sessions.

---

46 tools, 6 categories

| Category | Count | Highlights | |----------|-------|------------| | Email | 15 | List, search, send, reply, forward, draft, move, flag, categorize, batch | | Calendar | 17 | Events, recurring meetings, availability, online meetings, timezone handling | | Attachments | 4 | List, download with auto-parsing (PDF/Word/Excel/PPT), upload, scan | | Folders | 4 | List, create, rename, stats | | SharePoint | 3 | Access files via sharing links or direct IDs | | Rules | 3 | List, create, delete server-side inbox rules |

Example prompts

"Show me unread emails from this week"
"Find all emails from Alice about the budget"
"Reply to that email thanking her for the update"
"What meetings do I have tomorrow?"
"Schedule a 30-min call with Bob next Tuesday at 2pm"
"Download and summarize the PDF from the latest Finance email"

---

How PKCE auth works

Agent calls a tool
       |
       v
  Token cached?  ---yes--->  Use it
       | no
  Refresh works? ---yes--->  Silent refresh (no browser)
       | no
  PKCE flow:
    1. Generate code_verifier + code_challenge
    2. Browser opens -> Microsoft login
    3. Redirect to localhost with auth code
    4. Exchange code + verifier for tokens
    5. Encrypt and store tokens locally

No client secret anywhere in this flow. The PKCE challenge/verifier pair cryptographically proves the caller's identity. Tokens are encrypted at rest using the OS keychain or AES-256 with a random key.

---

Configuration

| Variable | Required | Description | |----------|----------|-------------| | AZURE_CLIENT_ID | Yes | Application (client) ID from Azure | | AZURE_TENANT_ID | Yes | consumers for personal accounts, Directory (tenant) ID for work/school, or common for both | | MCP_OUTLOOK_DEVICE_CODE | No | Set to 1 to force device code flow | | MCP_OUTLOOK_WORK_DIR | No | Directory for large file downloads | | DEBUG | No | Enable debug logging on stderr |

---

Development

TypeScript with noImplicitAny. 769 tests, 81% coverage.

npm test              # Run tests
npm run typecheck     # Type check
npm run build         # Compile to dist/
npm run dev           # Dev mode with tsx

<details> <summary>Project structure</summary>

server/
  index.ts              # MCP server entry
  types.ts              # Shared interfaces
  auth/                 # PKCE + device code auth
  graph/                # Microsoft Graph client with rate limiting
  tools/                # 46 tool handlers
  schemas/              # MCP tool schemas
  utils/                # Validation, caching, error handling
  tests/                # 769 tests

</details>

---

Security

  • Tokens encrypted at rest (OS keychain or AES-256)
  • All Graph API calls scoped to /me/ (your mailbox only)
  • No sensitive data in tool responses
  • Recipient validation before sending emails

Report vulnerabilities via GitHub private reporting. See SECURITY.md.

---

See Also

outlook-cli-skill — Lightweight alternative by the same author. No MCP server needed — a thin CLI handles OAuth, and AI agents call Microsoft Graph API directly via skill files. Works with any AI agent (Claude Code, Cursor, Codex, Gemini), not just MCP clients.

| | mcp-outlook-lite | outlook-cli-skill | |---|---|---| | Approach | MCP server (46 tools) | CLI + skill files (26 ops) | | Scope | Full Outlook (email, calendar, SharePoint, attachments) | Email-focused | | Best for | MCP clients needing calendar + document parsing | Any AI agent, minimal overhead | | Runtime | Long-running server process | No server, on-demand CLI calls | | Attachment parsing | Auto-parse PDF/Word/Excel/PPT | Raw download |

---

License

MIT

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Communication servers.