Skip to main content
Glama

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:

  • openid

  • profile

  • offline_access

  • User.Read

  • Mail.Read

  • Mail.ReadWrite

  • Mail.Send

Redirect URI:

https://你的服务地址/auth/callback

Select 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=/data

On 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

  • /health health check

  • 1 GB persistent disk

  • /data token storage directory

  • Environment variables required by Microsoft OAuth

Tokens are stored on Render's persistent disk and will not be committed to GitHub.

MCP Tools

Tool

Description

list_emails

View recent emails

read_email

Read a specific email

reply_email

Reply to a specific email

Local Run

npm install
npm start

Default 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. 🫳

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    A
    maintenance
    MCP server that provides 62 tools to manage Outlook mail, calendar, contacts, and tasks for personal Microsoft accounts via Microsoft Graph API.
    62
    26
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    MCP server for sending and managing Microsoft Outlook email via the Microsoft Graph API, including drafts, replies, contacts, and directory search.
    114
    MIT
  • F
    license
    A
    quality
    B
    maintenance
    An 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
    -
  • A
    license
    Not graded
    quality
    C
    maintenance
    MCP 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

Latest Blog Posts

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