Outlook-Mail-MCP
Outlook-Mail-MCP
家机的极简邮箱 MCP:连接一个 Outlook 邮箱,读取邮件并回复邮件。
🤝 Co-created by Lynn & Sage (ChatGPT)
这个项目由 Lynn 与 Sage(ChatGPT)共同设计、实现和调试。
这个项目只做三件事:
📬 查看最近邮件
📖 阅读邮件
↩️ 回复邮件
不做日历、不做网盘、不做 Power Automate,也不做多账号管理。
适用方案
本方案以 Render Web Service + Microsoft Outlook / Microsoft Graph + OAuth 2.0 为主要部署方式,适合把邮箱能力作为一个远程 MCP 服务提供给家机。
也可以在任何支持 Node.js、HTTPS 和持久化 Token 存储的环境中运行,但项目默认配置和部署文件以 Render 为准。
Related MCP server: outlook-mcp
使用方式
部署到 Render 后,打开服务首页,点击 连接 Outlook 邮箱,完成 Microsoft 登录和授权。
授权完成后,把 MCP 地址 https://你的服务地址/mcp 接到家机即可。
Microsoft 配置
在 Microsoft Entra / Azure App Registration 创建一个应用,并启用以下 Delegated permissions:
openidprofileoffline_accessUser.ReadMail.ReadMail.ReadWriteMail.Send
Redirect URI 使用:
https://你的服务地址/auth/callback应用类型选择 Web。
环境变量
MS_CLIENT_ID=你的 Application (client) ID
MS_CLIENT_SECRET=你的 Client Secret VALUE
MS_TENANT_ID=common
TOKEN_DIR=/data在 Render 上,服务器会优先使用 PUBLIC_URL,否则使用 Render 自动提供的 RENDER_EXTERNAL_URL 生成 OAuth 回调地址。
Render 部署
仓库已经包含 render.yaml,可以直接使用 Render Blueprint 部署。
Render 配置包含:
Node.js Web Service
/health健康检查1 GB 持久化磁盘
/dataToken 存储目录Microsoft OAuth 所需环境变量
Token 保存在 Render 持久化磁盘中,不会提交到 GitHub。
MCP 工具
工具 | 作用 |
| 查看最近邮件 |
| 阅读指定邮件 |
| 回复指定邮件 |
本地运行
npm install
npm start默认地址:http://localhost:3000/。
本地 OAuth 回调:http://localhost:3000/auth/callback。
安全
OAuth 密码不会交给家机。Microsoft 登录完成后,服务只保存 OAuth token;Token 文件权限设置为仅当前进程用户可读写。
Credits
Lynn × Sage(ChatGPT)
一个人类开发者 + 一个 AI 搭档,一起把这个小工具蹬出来。 🫳
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityAmaintenanceMCP server that provides 62 tools to manage Outlook mail, calendar, contacts, and tasks for personal Microsoft accounts via Microsoft Graph API.6222MIT
- Alicense-qualityBmaintenanceMCP server for sending and managing Microsoft Outlook email via the Microsoft Graph API, including drafts, replies, contacts, and directory search.42MIT
- FlicenseAqualityBmaintenanceAn MCP server that enables reading and managing Microsoft 365 / Outlook emails through Microsoft Graph API, allowing users to list, search, send, draft, and authenticate using device code flow.17
- Alicense-qualityCmaintenanceMCP server providing full control over Outlook.com, Hotmail, Live, or Microsoft 365 email via Microsoft Graph API, enabling reading, searching, sending, and managing messages and folders securely.MIT
Related MCP Connectors
Outlook Mail (Microsoft 365) MCP Pack
Read, search, send, organize, draft and schedule email across your inboxes from any MCP client.
Outlook Contacts (Microsoft 365) MCP Pack
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Lynnker-0904/Outlook-Mail-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server