Outlook-Mail-MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Outlook-Mail-MCPList my recent unread emails"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Outlook-Mail-MCP
Minimalist email MCP for the home machine: connect one Outlook mailbox, read emails, and reply to emails.
🤝 Co-created by Lynn & Sage (ChatGPT)
This project was designed, implemented, and debugged together by Lynn and Sage (ChatGPT).
This project does only three things:
📬 View recent emails
📖 Read emails
↩️ Reply to emails
No calendar, no cloud drive, no Power Automate, and no multi-account management.
Approach
This solution uses Render Web Service + Microsoft Outlook / Microsoft Graph + OAuth 2.0 as the primary deployment method, suitable for providing mailbox capabilities as a remote MCP service to the home machine.
It can also run in any environment that supports Node.js, HTTPS, and persistent token storage, but the project's default configuration and deployment files are based on Render.
Related MCP server: outlook-mcp
Usage
After deploying to Render, open the service homepage, click Connect Outlook Mailbox, and complete Microsoft sign-in and authorization.
After authorization, connect the MCP address https://你的服务地址/mcp to your home machine.
Microsoft Configuration
Create an app in Microsoft Entra / Azure App Registration and enable the following delegated permissions:
openidprofileoffline_accessUser.ReadMail.ReadMail.ReadWriteMail.Send
Redirect URI:
https://你的服务地址/auth/callbackSelect Web as the application type.
Environment Variables
MS_CLIENT_ID=你的 Application (client) ID
MS_CLIENT_SECRET=你的 Client Secret VALUE
MS_TENANT_ID=common
TOKEN_DIR=/dataOn Render, the server prefers PUBLIC_URL; otherwise, it uses RENDER_EXTERNAL_URL automatically provided by Render to generate the OAuth callback URL.
Render Deployment
The repository already includes render.yaml and can be deployed directly using Render Blueprint.
The Render configuration includes:
Node.js Web Service
/healthhealth check1 GB persistent disk
/datatoken storage directoryEnvironment variables required by Microsoft OAuth
Tokens are stored on Render's persistent disk and will not be committed to GitHub.
MCP Tools
Tool | Description |
| View recent emails |
| Read a specific email |
| Reply to a specific email |
Local Run
npm install
npm startDefault address: http://localhost:3000/.
Local OAuth callback: http://localhost:3000/auth/callback.
Security
OAuth password is not handed over to the home machine. After Microsoft sign-in is complete, the service only saves the OAuth token; the token file permissions are set to allow read/write only by the current process user.
Credits
Lynn × Sage(ChatGPT)
A human developer + an AI partner, who built this little tool together. 🫳
This server cannot be deployed
Maintenance
Related MCP Connectors
A MCP server for Outlook email that lets you search, read, and draft emails and replies.
A MCP server that works with Outlook Calendar to manage event listing, reading, and updates.
An MCP server that provides email capabilities, hosted on Alpic platform
Related MCP Servers
- AlicenseBqualityAmaintenanceMCP server that provides 62 tools to manage Outlook mail, calendar, contacts, and tasks for personal Microsoft accounts via Microsoft Graph API.6229MIT
- AlicenseNot gradedqualityBmaintenanceMCP server for sending and managing Microsoft Outlook email via the Microsoft Graph API, including drafts, replies, contacts, and directory search.86 npmMIT
- 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-
- AlicenseNot gradedqualityCmaintenanceMCP 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.1MIT