mcp-outlook
mcp-outlook
A small MCP server for personal Outlook/Hotmail/Live accounts, using the Microsoft Graph API directly. The official Outlook MCP server only supports work/school (Azure AD) accounts, this one is for everyone else.
Tools: list_emails, search_emails, read_email, delete_email (requires
explicit confirmation).
1. Register an Azure app (one-time setup)
Go to https://portal.azure.com → Azure Active Directory → App registrations → New registration.
Name it anything, e.g. "Personal Outlook MCP".
Under "Supported account types", choose "Personal Microsoft accounts only".
Leave "Redirect URI" blank.
After creation, copy the Application (client) ID from the app overview page.
Go to Authentication → scroll to "Advanced settings" → set "Allow public client flows" to Yes, then save.
Go to API permissions → Add a permission → Microsoft Graph → Delegated permissions → add
Mail.Read,Mail.ReadWrite,offline_access.
2. Configure
npm install
cp config.example.json config.jsonEdit config.json and paste in your client ID:
{ "clientId": "your-client-id-here" }3. Run
npm startOn first run, the terminal prints a code and a URL
(https://microsoft.com/devicelogin). Open the URL on any device, enter the
code, and sign in with your personal Microsoft account. A token-cache.json
file is created afterward so you won't need to log in again until the
refresh token expires.
4. Connect it to an MCP client
Point your MCP client (e.g. Claude Desktop) at this server by adding it to
its config, using the full path to src/index.js:
{
"mcpServers": {
"outlook": {
"command": "node",
"args": ["C:/xampp/htdocs/mcp-outlook-js/src/index.js"]
}
}
}Notes
config.jsonandtoken-cache.jsonhold secrets and are gitignored, never commit them.delete_emailmoves the message to Deleted Items (like a normal Outlook delete), and only runs if called withconfirm: true.
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/miguelowsky-js/mcp-outlook'
If you have feedback or need assistance with the MCP directory API, please join our Discord server