Outlook 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 MCPlist unread emails from my inbox"
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 MCP
An MCP server that connects GitHub Copilot and other AI agents to Microsoft Outlook via the Microsoft Graph API.
Features
Tool | Description |
| List emails from any folder with filtering, sorting, and pagination |
| Read a full email (body + metadata) or its internet headers |
| Search the mailbox using KQL queries |
| List all mail folders, optionally including sub-folders |
| List attachments on a specific email |
| Send a new email (plain text or HTML, CC, BCC, importance) |
| Reply or reply-all to an email |
| Move an email to a different folder |
Related MCP server: MCP Outlook Server
Requirements
Python 3.12+
A Microsoft 365 account with Outlook
A Microsoft Graph API bearer token with
Mail.Read,Mail.Send, andMail.ReadWritescopes
Quick Start
# 1. Clone the repository
git clone https://github.com/your-org/outlook-mcp.git
cd outlook-mcp
# 2. Create a virtual environment and install dependencies
python -m venv .venv
.venv\Scripts\Activate.ps1
pip install -r requirements.txt
# 3. Run setup to configure VS Code
.\setup.ps1Configuration
The server reads these environment variables:
Variable | Required | Description |
| Yes | Microsoft Graph API bearer token |
| No | Corporate HTTP proxy URL |
| No | Set |
Getting an OUTLOOK_TOKEN
For development / testing — use Graph Explorer:
Sign in with your Microsoft 365 account.
Click Access token in the top panel.
Copy the token.
For production — register an Entra ID application with delegated permissions (Mail.Read, Mail.Send, Mail.ReadWrite) and implement OAuth 2.0 to obtain tokens programmatically.
Running manually
export OUTLOOK_TOKEN=your_token_here
python server.pyDocker
docker build -t outlook-mcp .
docker run -e OUTLOOK_TOKEN=your_token_here outlook-mcpVS Code MCP configuration
.vscode/mcp.json (generated by setup.ps1):
{
"servers": {
"outlook-mcp": {
"type": "stdio",
"command": "python",
"args": ["server.py"],
"env": {
"OUTLOOK_TOKEN": "your_token_here"
}
}
}
}License
MIT
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
- Alicense-qualityDmaintenanceEnables interaction with Outlook email through Microsoft Graph API. Supports email management operations like reading, searching, marking as read/unread, and deleting messages through natural language.133MIT
- Flicense-qualityDmaintenanceEnables AI agents to interact with Microsoft Outlook via the Microsoft Graph API for managing emails and calendar events. It allows users to read and send emails, list messages, and create calendar appointments with automatic Teams links.1
- AlicenseBqualityCmaintenanceEnables AI assistants to manage Microsoft Outlook email and calendar through the Microsoft Graph API, including reading, sending, searching emails, and handling calendar events.4313325MIT
- Flicense-qualityDmaintenanceProvides programmatic access to Microsoft Outlook mailboxes, enabling AI assistants to search, analyze, and extract insights from emails in personal and shared mailboxes.
Related MCP Connectors
Manage Gmail end-to-end: search, read, send, draft, label, and organize threads. Automate workflow…
Email for AI agents — send, receive as a webhook, manage domains, templates, routing.
Read, search, send, organize, draft and schedule email across your inboxes from any MCP client.
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/dutta-Piyush/custom-outlook-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server