outlook-mcp

outlook-mcp

Enables AI assistants to read, send, and manage Outlook mail locally on Windows via COM/MAPI, without cloud APIs.

Category
访问服务器

README

outlook-mcp

Let Cursor, Claude Desktop, or OpenCode read and send your Outlook mail — locally on Windows.

This is a small MCP server. It talks to the Outlook app already on your PC (COM/MAPI).
It does not use Microsoft Graph, Azure, or cloud APIs.

Windows + Outlook Desktop only. macOS/Linux are not supported.


What you get

After setup, your AI can:

  • list mailboxes and folders
  • summarize the inbox (unread + recent)
  • search, open, reply, forward, and send mail
  • mark, move, delete messages
  • save attachments to disk

Typical flow the model should use:

  1. list_mailboxes — see accounts
  2. inbox_summary — quick overview
  3. get_mail / search_mail — details
  4. reply_mail or send_mail — act

Requirements

Need Notes
Windows Required
Outlook Desktop Signed in with your mailbox
Node.js 18+ nodejs.org

Outlook may show a security prompt the first time another app accesses mail — allow it.


Install

git clone https://github.com/YOUR_USER/outlook-mcp.git
cd outlook-mcp
npm install
npm run build

Optional: set a default mailbox (otherwise Outlook’s default account is used):

$env:OUTLOOK_MAILBOX = "you@example.com"

Quick check (Outlook only, no AI)

powershell -NoProfile -STA -ExecutionPolicy Bypass `
  -File .\powershell\Invoke-Outlook.ps1 `
  -Action list_mailboxes

If you see JSON with "ok": true and your accounts, the bridge works.


Connect an AI client

  1. Build the project (npm run build).
  2. Copy an example from examples/.
  3. Replace C:\\ABS\\PATH\\TO\\outlook-mcp with your real folder path.
  4. Restart the client.

Use the full path to node.exe and dist\\server.js (recommended on Windows).

Cursor

Settings → MCP, or project file .cursor/mcp.json — see examples/cursor.mcp.json.

Claude Desktop

Edit claude_desktop_config.json:

  • Often: %APPDATA%\Claude\claude_desktop_config.json
  • MSIX/Store installs may instead use:
    %LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\claude_desktop_config.json

Template: examples/claude_desktop_config.json.
Fully quit Claude Desktop (tray icon too), then start it again.

OpenCode CLI

Project or global opencode.json — see examples/opencode.json.

opencode mcp list

You want outlook-mcp = connected.


Tools (cheat sheet)

Tool When to use it
list_mailboxes First call — which accounts exist?
list_folders Where can mail go?
inbox_summary Fast unread + recent overview
read_folder / read_inbox List messages with filters
search_mail Find by text / from / to / subject / date
get_mail Full body of one message (entryId)
list_conversation Same thread
send_mail New email
create_draft Save without sending
reply_mail Reply (optional replyAll, or draft with send: false)
forward_mail Forward
mark_mail Read / unread / categories
move_mail Move to a folder
delete_mail Delete
save_attachments Write attachments to a folder
list_actions Debug: which bridge actions are loaded

How it works

AI client  →  outlook-mcp (Node, stdio)  →  PowerShell  →  Outlook COM/MAPI  →  mailbox

Nothing is sent to Azure for mail access. The AI host only starts this local process.

Project layout

src/                  Node MCP server
  mcp/tools.ts        ← add new MCP tools here
powershell/
  Invoke-Outlook.ps1  loader + shared helpers
  lib/*.ps1           ← add new Outlook actions here
examples/             client config templates

Add your own feature

  1. Create e.g. powershell/lib/60-myfeature.ps1 and register an action.
  2. Add a matching tool in src/mcp/tools.ts.
  3. Run npm run build.

Details: CONTRIBUTING.md.


Troubleshooting

Problem What to try
Bridge JSON error / Outlook COM unavailable Start Outlook once, sign in, retry
Wrong mailbox Set OUTLOOK_MAILBOX or pass mailbox on the tool
Claude MCP not loading Edit the MSIX config path above; restart completely
node not found Use C:\Program Files\nodejs\node.exe in the config
Tools timeout Increase client timeout (OpenCode example uses 60000)
Empty inbox results Confirm the account appears in list_mailboxes

Security

  • Local stdio only — do not publish this as an open network server without auth.
  • send_mail, delete_mail, and save_attachments have real side effects.
  • Prefer drafts (create_draft, or send: false on reply/forward) while testing.

More: SECURITY.md.


License

MIT — see LICENSE.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选