outlook — Claude Code MCP server: what it does, how to install
MCP server that connects coding assistants to Microsoft Outlook and OneDrive through Microsoft Graph.
claude mcp add outlook -- npx -y olkcliWhat outlook does
This integration connects coding agents to Microsoft services using the olk CLI. It supports personal Outlook.com setups alongside corporate Microsoft 365 environments. Assistants can locate email threads, check upcoming calendar slots, and browse OneDrive folders.
The package also builds HTML message drafts with embedded images under 3 MB. For safety, long-term refresh tokens stay inside the OS keychain. Without running olk auth login in your terminal first, the server cannot reach your mailbox.
What it helps with
- search email messages by sender or subject keywords
- generate HTML reply drafts with embedded images
- check upcoming calendar agenda for the week
- browse folders and files stored in OneDrive
Example prompts for the agent
- Search my Outlook inbox for urgent emails sent this morning
- Show my calendar agenda for the next 7 days
- Draft a reply to message ID 12345 with the revised project summary
How to install outlook
Platform CLI
claude mcp add outlook -- npx -y olkcliPlatform CLI
codex mcp add outlook -- npx -y olkcliConfig file
{
"mcpServers": {
"outlook": {
"command": "npx",
"args": [
"-y",
"olkcli"
]
}
}
}Config file
{
"servers": {
"outlook": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"olkcli"
]
}
}
}Platform CLI
gemini mcp add outlook npx -y olkcliStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about outlook
How to install outlook in Claude Code?
Run claude mcp add outlook -- npx -y olkcli in your terminal. Next, sign in to your Microsoft profile by typing olk auth login.
What does the outlook MCP server do?
It exposes Microsoft Graph features to your agent. The assistant can search mail, prepare drafts, check appointments, and navigate OneDrive.
How do I connect a work Microsoft 365 account?
Authenticate your work or school account by running olk auth login --enterprise in your terminal.