Logo di Outlook MCP 服务器

Outlook MCP 服务器

Community
marlonluo2018

AI-powered email management for Microsoft Outlook - Search, compose, organize, and batch forward emails with natural language commands.

Pubblicato damarlonluo2018
Repositoryoutlook-mcp-server
LinguaPython
Fork
17
Stelle
34
Strumenti disponibili
0
Tipo di trasportostdio
Categorie
Link
  • Collega gli strumenti ai flussi di lavoro IA

    Outlook MCP 服务器 mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • Strumenti disponibili: 0

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni se il server li fornisce.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse della comunità open source

    Stelle: 34; fork: 17 (repository collegato).

🤖 Outlook MCP Server

AI-powered email management for Microsoft Outlook - Search, compose, organize, and batch forward emails with natural language commands.

⭐ This saved you time? Star us - takes 2 seconds, helps thousands of Outlook users find this AI email assistant! ⭐

Python License Windows

🤔 Project Choice: Local vs Cloud Approach

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.

Why Choose This Project (win32COM)?

  • ✅ Local Data Processing: All email operations happen locally on your computer - no data leaves your machine
  • ✅ Enhanced Security: No cloud authentication or API tokens required - works with your existing Outlook setup
  • ✅ Offline Capability: Access and manage emails even without internet connection
  • ✅ Privacy-First: Your email data never touches external servers or cloud services

Why Switch to Microsoft Graph API?

  • ✅ Full Microsoft 365 Ecosystem: Access Mail, Calendar, Teams, OneDrive, SharePoint
  • ✅ Cross-Platform Support: Works on Windows, macOS, Linux, and mobile devices
  • ✅ Modern Authentication: OAuth 2.0 with device code flow
  • ✅ Cloud-Scale Performance: No local application dependencies
  • ✅ Online Access: Works directly with cloud-based Microsoft 365 services

🚀 Quick Start (2 Minutes)

What You'll Get

  • Smart Email Search: "Find emails about budget approval from last week"
  • AI Email Writing: Draft replies with context-aware suggestions
  • Easy Organization: Create folders and move emails with simple commands
  • Batch Forwarding: Send emails to 100s of recipients in minutes, not hours

🤖 AI Behavior & Workflow

The agent_prompt_template.md defines how the AI assistant behaves when managing emails:

  • Purpose: Guide the AI's workflow for email search, summarization, and drafting
  • Key Rules: AND logic for searches, 5-by-5 email display, confirmation before sending
  • Safety: Built-in constraints ensure user control and prevent unauthorized actions
  • How to Use: Copy the template content and use it to configure your AI assistant

See the template for complete behavior guidelines and workflow definitions

Why Choose Outlook MCP Server?

FeatureOutlook MCP ServerTraditional OutlookOutlook 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

Real-World Impact

Before: "I need to forward this email to 150 team members..."

  • Manual: Click Forward → Type each email → Send → 2+ hours wasted
  • Traditional Outlook: Create distribution list → Add members → Forward → 30+ minutes

After: "Forward this email to everyone in team.csv"

  • Outlook MCP Server: Load CSV → AI forwards to all → 2 minutes total
  • Time Saved: 48+ minutes per batch operation!

Requirements

  • ✅ Python 3.8+
  • ✅ Microsoft Outlook 2016+ (must be running)
  • ✅ Windows 10+

Installation & Setup

Method 1: UVX (Recommended - Auto Dependencies)

bash
# 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

bash
# 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)

bash
# 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"]
    }
  }
}

Test Your Setup ✅

Ask your AI assistant: "Show me my recent emails" - if it works, you're ready!

Configuration Troubleshooting 🛠️

Common Issues & Solutions:

ProblemCheck ThisSolution
"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:

bash
# 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:

  1. Open Claude Desktop settings
  2. Find "MCP Servers" section
  3. Click "Add Server" → "Custom"
  4. Paste the JSON configuration
  5. Restart Claude Desktop

Other MCP Clients:

  • Look for "MCP Configuration" or "Server Settings"
  • Add the JSON to your client's config file
  • Usually located at: ~/.config/[client]/mcp.json

Still Stuck? Report an issue with your error message and setup details.

🎯 Core Features

Email Management

  • Search: Find emails by subject, sender, content, or date range
  • Compose: Write new emails with AI assistance
  • Reply: Smart replies that understand conversation context
  • Batch Forward: Send emails to 100s of recipients from CSV files (saves hours!)

Folder Management

  • List: See all your Outlook folders
  • Create: Make new folders with simple commands
  • Move: Organize emails between folders
  • Delete: Remove folders (careful - this is permanent!)

📧 Batch Forwarding: Save Hours on Email Distribution

Real-World Use Cases

🎯 Team Updates

  • Forward weekly reports to your entire team
  • Send important updates to all team members
  • Distribute project updates to stakeholders

📊 Marketing Campaigns

  • Send newsletters to subscriber lists
  • Forward promotional emails to customer segments
  • Distribute event invitations to contact groups

🏢 Corporate Communications

  • Send policy updates to all employees
  • Forward training materials to departments
  • Distribute announcements to company distribution lists

🔄 How It Works

Simple Workflow

  1. Load emails: "Show me recent emails" → Emails appear in cache
  2. Browse results: View 5 emails per page with clear formatting
  3. Take action: Reply, move, delete, or get AI summary
  4. Confirm before sending: AI always asks before sending emails

AI Assistant Behavior

  • Understands natural language: "Find urgent emails from my boss"
  • Shows email summaries: One-line overview + key action items
  • Drafts with context: Replies understand the conversation
  • Never sends without permission: Always confirms before sending

Batch Forwarding Workflow

1. Prepare Your CSV File

csv
email
john@company.com
jane@company.com
team@company.com

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

  • Automatically splits large lists (max 500 per batch)
  • Sends via BCC to protect recipient privacy
  • Adds your custom message before original email
  • Provides delivery confirmation

Time Savings

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!

🔧 Common Commands

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"

🛠️ Essential Tools

Email Search & Loading

  • list_recent_emails_tool(days=7) - Load recent emails (max: 30 days)
  • search_email_by_subject_tool("search term") - Search email subjects
  • search_email_by_sender_name_tool("sender name") - Search by sender
  • search_email_by_body_tool("search term") - Search email content (slower)

Email Actions

  • view_email_cache_tool(page=1) - Browse loaded emails (5 per page)
  • get_email_by_number_tool(email_number) - Get full email details
  • reply_to_email_by_number_tool(email_number, "reply text") - Reply to email
  • compose_email_tool("recipient@email.com", "subject", "body") - Send new email

Folder Operations

  • get_folder_list_tool() - Always use first to see available folders
  • create_folder_tool("folder name") - Create new folder
  • move_email_tool(email_number, "target folder") - Move email between folders
  • move_folder_tool("source", "target") - Move folders

Safety Notes

  • Always check folder list first before moving/deleting
  • Emails are cached - use numbers from cache for operations
  • Never sends without confirmation - AI always asks before sending

⚡ Performance

  • Loads 100 emails in ~2 seconds
  • Searches complete in real-time
  • All processing happens locally (your data stays private)

✅ Quality & Reliability

Robust Validation System

  • Input Validation: All user inputs are validated before processing
  • Custom Error Messages: Clear, actionable error messages for common issues
  • Safety Checks: Prevents invalid operations before they cause problems

Comprehensive Testing

  • 145+ Unit Tests: Every feature thoroughly tested
  • Configuration Coverage: All settings and constants validated
  • Edge Case Handling: Tested against unusual inputs and scenarios
  • Continuous Quality: Tests run on every change to ensure reliability

What This Means for You

  • Fewer Errors: Validation catches mistakes before they cause problems
  • Better Error Messages: Know exactly what went wrong and how to fix it
  • Reliable Operation: Comprehensive testing ensures consistent performance
  • Safe Operations: Built-in safeguards prevent accidental data loss

🛡️ Privacy & Security

  • 100% Local Processing: No data leaves your computer
  • No Cloud Services: Works entirely offline
  • Secure by Design: Uses your existing Outlook installation

📚 Need Help?


⭐ 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!

Installazione

TypingMind
Prerequisiti:

Node.js 18+

{
  "mcpServers": {
    "marlonluo2018-outlook-mcp-server": {
      "command": "",
      "args": []
    }
  }
}

Usa Outlook MCP 服务器 MCP con più modelli AI

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso Outlook MCP 服务器, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura connettore.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura connettore e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con l’opzione «Questo dispositivo» selezionata
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi Outlook MCP 服务器 come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di Outlook MCP 服务器.
  4. Salva l'elenco dei server.
  5. Se vuoi verificare che il connettore sia ancora pronto, aggiorna la pagina.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "marlonluo2018-outlook-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "outlook-mcp-server"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di Outlook MCP 服务器, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di Outlook MCP 服务器.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare Outlook MCP 服务器 per aiutarmi con questa attività?
Outlook MCP 服务器
Certo. L’ho letto.
Ecco cosa ho trovato con Outlook MCP 服务器.

Domande frequenti

A cosa serve il server MCP Outlook MCP 服务器?

Outlook MCP 服务器 è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare il server MCP Outlook MCP 服务器 con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare Outlook MCP 服务器 con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP Outlook MCP 服务器 con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando Outlook MCP 服务器, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego il server MCP Outlook MCP 服务器 a TypingMind?

Outlook MCP 服务器 funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre il server MCP Outlook MCP 服务器 in TypingMind?

Outlook MCP 服务器 mette a disposizione funzionalità MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare il server MCP Outlook MCP 服务器?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se Outlook MCP 服务器 richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇