loading…
Search for a command to run...
loading…
Enables AI-powered email management for Microsoft Outlook through natural language commands. This fork adds draft-first guardrails that create email drafts loca
Enables AI-powered email management for Microsoft Outlook through natural language commands. This fork adds draft-first guardrails that create email drafts locally without sending, ensuring user control over all email operations.
Fork notice. This repository is a fork of marlonluo2018/outlook-mcp-server with an added draft-first guardrail:
compose_email_tool,reply_to_email_by_number_tool, andbatch_forward_email_toolnever send emails. They create drafts in the Outlook Drafts folder and return the draftEntryID. The user must open Outlook and send manually.- Every draft creation is appended to
~/.outlook-mcp/audit.log(one JSON line per event).Everything else (search, list folders, move, delete, attachments, viewing) is unchanged from upstream.
AI-powered email management for Microsoft Outlook - Search, compose drafts, organize, and batch forward drafts with natural language commands.
⭐ This saved you time? Star us - takes 2 seconds, helps thousands of Outlook users find this AI email assistant! ⭐
This project uses win32COM which works entirely locally with your Outlook data (more secure), while our new Microsoft Graph MCP Server provides online access to the full Microsoft 365 ecosystem (more features). Choose based on your security and functionality needs.
The agent_prompt_template.md defines how the AI assistant behaves when managing emails:
See the template for complete behavior guidelines and workflow definitions
| Feature | Outlook MCP Server | Traditional Outlook | Outlook Add-ins |
|---|---|---|---|
| AI Email Search | ✅ "Find urgent emails from my boss" | ❌ Manual folder browsing | ⚠️ Basic search only |
| Natural Language | ✅ "Show me budget emails from last week" | ❌ Complex filters needed | ⚠️ Limited keywords |
| Batch Forward 100+ Emails | ✅ 2 minutes with CSV | ❌ 50+ minutes manual | ⚠️ 20+ minutes |
| AI Email Writing | ✅ Context-aware replies | ❌ Manual composition | ⚠️ Basic templates |
| Setup Time | ✅ 2 minutes | ✅ Already installed | ❌ 10-30 minutes |
| Privacy | ✅ 100% local processing | ✅ Local only | ⚠️ Cloud-dependent |
| Cost | ✅ Completely free | ✅ Included | 💰 $5-50/month |
| Learning Curve | ✅ Natural language | ✅ Familiar interface | ⚠️ New interface |
Before: "I need to forward this email to 150 team members..."
After: "Forward this email to everyone in team.csv"
Method 1: UVX (Recommended - Auto Dependencies)
# 1. Install
git clone https://github.com/marlonluo2018/outlook-mcp-server.git
cd outlook-mcp-server
uvx --with "pywin32>=226" --with-editable "." outlook-mcp-server
# 2. Configure your AI assistant
# Use this in your MCP client settings:
{
"mcpServers": {
"outlook": {
"command": "uvx",
"args": ["--with", "pywin32>=226", "--with-editable", ".", "outlook-mcp-server"]
}
}
}
Method 2: Standard Python
# 1. Install
git clone https://github.com/marlonluo2018/outlook-mcp-server.git
cd outlook-mcp-server
pip install -r requirements.txt
python -m outlook_mcp_server
# 2. Configure your AI assistant
# Use this in your MCP client settings:
{
"mcpServers": {
"outlook": {
"command": "python",
"args": ["-m", "outlook_mcp_server"]
}
}
}
Method 3: Direct Source (Development)
# 1. Install
git clone https://github.com/marlonluo2018/outlook-mcp-server.git
cd outlook-mcp-server
pip install -r requirements.txt
# 2. Configure your AI assistant
# Use this in your MCP client settings:
{
"mcpServers": {
"outlook": {
"command": "python",
"args": ["C:\\Project\\outlook-mcp-server\\outlook_mcp_server\\__main__.py"]
}
}
}
Ask your AI assistant: "Show me my recent emails" - if it works, you're ready!
Common Issues & Solutions:
| Problem | Check This | Solution |
|---|---|---|
| "uvx not found" | Is UV installed? | pip install uv then retry |
| "python not found" | Python in PATH? | Use full path like C:\Python39\python.exe |
| "Outlook not running" | Outlook window open? | Start Outlook first, then restart MCP |
| "Permission denied" | Admin rights? | Run terminal as administrator |
| "Module not found" | Dependencies installed? | pip install -r requirements.txt |
Configuration Verification:
# Test your setup before connecting to AI
python -c "import outlook_mcp_server; print('✅ Server module loaded')"
# Test Outlook connection (Windows only)
python -c "import win32com.client; outlook = win32com.client.Dispatch('Outlook.Application'); print('✅ Outlook connected')"
MCP Client-Specific Setup:
Claude Desktop:
Other MCP Clients:
~/.config/[client]/mcp.jsonStill Stuck? Report an issue with your error message and setup details.
🎯 Team Updates
📊 Marketing Campaigns
🏢 Corporate Communications
1. Prepare Your CSV File
email
[email protected]
[email protected]
[email protected]
2. Use Natural Language
"Forward this email to everyone in my contacts.csv"
"Send this project update to my team list"
"Distribute this newsletter to subscribers.csv"
3. AI Handles the Rest
Manual forwarding: 100 emails × 30 seconds = 50 minutes Batch forwarding: 30 seconds setup + 2 minutes processing = 2.5 minutes You save: 47.5 minutes per batch!
Try these with your AI assistant:
"Show me emails from last 3 days"
"Find emails about project updates"
"Draft a reply to John about rescheduling"
"Create a folder called 'Work Projects'"
"Move email #3 to the Archive folder"
list_recent_emails_tool(days=7) - Load recent emails (max: 30 days)search_email_by_subject_tool("search term") - Search email subjectssearch_email_by_sender_name_tool("sender name") - Search by sendersearch_email_by_body_tool("search term") - Search email content (slower)view_email_cache_tool(page=1) - Browse loaded emails (5 per page)get_email_by_number_tool(email_number) - Get full email detailsreply_to_email_by_number_tool(email_number, "reply text") - Reply to emailcompose_email_tool("[email protected]", "subject", "body") - Send new emailget_folder_list_tool() - Always use first to see available folderscreate_folder_tool("folder name") - Create new foldermove_email_tool(email_number, "target folder") - Move email between foldersmove_folder_tool("source", "target") - Move folders⭐ Love saving time on email? Star this repo - helps 10,000+ Outlook users discover AI email management! ⭐
💡 Quick star tip: Click the ⭐ button above - it takes 2 seconds and supports open-source email AI!
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"outlook-mcp-server": {
"command": "npx",
"args": []
}
}
}