Outlook-Mail-MCP
Click on "Install 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 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