Simple Outlook MCP Server
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., "@Simple Outlook MCP ServerList my last 5 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.
Simple Outlook MCP Server
A clean, functional Model Context Protocol (MCP) server for Microsoft Outlook integration with Claude.
Features
✅ Send Emails - Send emails through your Outlook account
✅ List Emails - Retrieve emails from your inbox or other folders
✅ Search Emails - Search emails by criteria (sender, date, content)
✅ Read Emails - Get full email content by ID
✅ OAuth Authentication - Secure Microsoft Graph API authentication
✅ Simple Setup - Minimal configuration required
Related MCP server: MCP Outlook Server
Prerequisites
Node.js (v18 or higher)
Microsoft Azure App Registration (for Graph API access)
Setup
1. Install Dependencies
cd /Users/ricardozhang/Desktop/AI_Agents/simple-outlook-mcp
npm install2. Create Microsoft Azure App Registration
Go to Azure Portal
Navigate to Azure Active Directory > App registrations
Click New registration
Fill in:
Name:
Claude Outlook MCPSupported account types: Accounts in any organizational directory and personal Microsoft accounts
Redirect URI: Web -
http://localhost:3000/auth/callback
Click Register
Note down the Application (client) ID and Directory (tenant) ID
Go to Certificates & secrets > New client secret
Create a secret and note down the Value
Go to API permissions > Add a permission > Microsoft Graph > Delegated permissions
Add these permissions:
Mail.ReadWriteMail.Send
Click Grant admin consent (if you're an admin)
3. Configure Environment Variables
cp .env.example .envEdit .env with your Azure app details:
MICROSOFT_CLIENT_ID=your_client_id_here
MICROSOFT_CLIENT_SECRET=your_client_secret_here
MICROSOFT_TENANT_ID=your_tenant_id_here4. Build the Project
npm run buildUsage
1. Start the MCP Server
npm start2. Available Tools
authenticate_outlook
Start the OAuth flow to authenticate with Microsoft Graph API.
send_email
Send an email through Outlook.
to: Recipient email address (required)
subject: Email subject (required)
body: Email body content (required)
cc: CC recipients (optional)
bcc: BCC recipients (optional)
list_emails
List recent emails from your inbox.
limit: Number of emails to retrieve (default: 10)
folder: Folder to search in (default: "inbox")
search_emails
Search emails by criteria.
query: Search query string
from: Filter by sender email
date_from: Filter emails from this date (YYYY-MM-DD)
date_to: Filter emails until this date (YYYY-MM-DD)
limit: Number of emails to retrieve (default: 10)
read_email
Read a specific email by ID.
email_id: Email message ID (required)
Integration with Claude Desktop
Add this server to your Claude Desktop configuration file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"simple-outlook-mcp": {
"command": "node",
"args": ["/Users/ricardozhang/Desktop/AI_Agents/simple-outlook-mcp/build/index.js"],
"env": {
"MICROSOFT_CLIENT_ID": "your_client_id",
"MICROSOFT_CLIENT_SECRET": "your_client_secret",
"MICROSOFT_TENANT_ID": "your_tenant_id"
}
}
}
}Example Usage with Claude
Authenticate:
Please authenticate with OutlookSend an email:
Send an email to john@example.com with subject "Meeting Tomorrow" and body "Hi John, let's meet at 2 PM tomorrow."List recent emails:
Show me my last 5 emailsSearch emails:
Find emails from alice@example.com from the last week
Troubleshooting
Authentication Issues
Ensure your Azure app has the correct permissions
Check that the redirect URI matches exactly:
http://localhost:3000/auth/callbackVerify your client ID, secret, and tenant ID are correct
Build Issues
Make sure you're using Node.js v18 or higher
Run
npm installto ensure all dependencies are installedCheck that TypeScript compiles without errors:
npm run build
Permission Issues
Ensure the Azure app has
Mail.ReadWriteandMail.SendpermissionsAdmin consent may be required for organizational accounts
Development
# Watch mode for development
npm run watch
# Build only
npm run build
# Start after build
npm startLicense
MIT License - see LICENSE file for details.
This server cannot be deployed
Maintenance
Related MCP Connectors
Manage Microsoft 365 email, calendar, contacts and inbox rules via the Graph API with OAuth 2.0.
Read email/chat conversations, messages, contacts and teams; draft, send and update threads.
Permissioned access to Outlook, OneDrive and Teams via the user's own Microsoft account
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables 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.86 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables sending emails through Microsoft Outlook using the Microsoft Graph API. Provides the missing send-email capability for Agent Builder's Outlook connector with support for both delegated and app-only authentication flows.MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to manage Microsoft Outlook email and calendar through the Microsoft Graph API, including reading, sending, searching emails, and handling calendar events.4386 npm27MIT
- FlicenseNot gradedqualityCmaintenanceEnables to manage your Outlook mailbox via Microsoft Graph (write access) with delegated permissions, providing MCP tools to create, modify, and send emails, folders, categories, rules, and automatic replies.-