outlook-mcp

outlook-mcp

MCP server for Outlook — enables AI assistants to access email, contacts, and calendars via Windows COM interface.

Category
Visit Server

README

outlook-mcp

PyPI version Python License: MIT

MCP server for Outlook — enables AI assistants to access email, contacts, and calendars via Windows COM interface.

Built on the Model Context Protocol (MCP), works with Claude Code and other MCP-compatible clients.

Features

  • Email: Search, read, send, reply, forward, flag, move, delete
  • Contacts: Search by name or email
  • Calendar: List calendars, create events
  • Multi-account: Supports all accounts configured in Outlook
  • Safe by design: Send/reply/forward opens Outlook compose window for user confirmation — never auto-sends
  • Local only: All operations via local COM interface, no cloud API or OAuth needed

Requirements

  • Windows with Outlook desktop client installed and running
  • Python >= 3.10

Install

pip install outlook-mcp-server

Verify installation:

outlook-mcp-server --version

Usage with Claude Code

Add to your project's .mcp.json:

{
  "mcpServers": {
    "outlook": {
      "command": "outlook-mcp-server"
    }
  }
}

Then restart Claude Code. The 14 Outlook tools will be available to Claude automatically.

Alternative: run from source

git clone https://github.com/lihaokun/outlook-mcp.git
cd outlook-mcp
pip install -e .
{
  "mcpServers": {
    "outlook": {
      "command": "uv",
      "args": [
        "--directory", "C:\\path\\to\\outlook-mcp",
        "run", "outlook-mcp-server"
      ]
    }
  }
}

Available Tools

Accounts & Folders

Tool Description
listAccounts List all configured email accounts (name, email, type)
listFolders List all folders with message counts and unread counts
createFolder Create a new subfolder under a specified parent

Email Search & Read

Tool Description
searchMessages Search by keyword (subject/sender/recipient), with date range and sort
getRecentMessages Get recent messages by days, folder, and unread filter
getMessage Read full message content (body, HTML, attachments)

Email Operations

Tool Description
sendMail Compose new email (opens Outlook compose window)
replyToMessage Reply or reply-all (opens compose window)
forwardMessage Forward with original attachments (opens compose window)
updateMessage Mark read/unread, flag/unflag, move to folder, or trash
deleteMessages Batch delete messages

Contacts & Calendar

Tool Description
searchContacts Search contacts by name or email
listCalendars List all calendars with item count and writable status
createEvent Create calendar event (opens Outlook event window)

Safety

This server is designed with safety as a priority:

  • No auto-send: sendMail, replyToMessage, forwardMessage, and createEvent all call .Display() instead of .Send() / .Save(). This opens the Outlook compose window so the user can review and confirm before sending.
  • Outlook Object Model Guard: Outlook may show additional security prompts for send operations. This is expected behavior.
  • Local only: All data stays on your machine. No external API calls, no cloud services, no OAuth tokens.

Technical Details

  • COM interface: Uses pywin32 (win32com.client) to control Outlook
  • MCP transport: stdio (standard input/output)
  • Message ID: Uses Outlook's EntryID as unique identifier
  • Search: Uses Items.Restrict() with DASL filters for efficient server-side filtering
  • Internationalization: Automatically handles both "Inbox" and "收件箱" folder names

Related Projects

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured