Sponsored by Deepsite.site

Outlook MCP Server

Created By
Wallisking19919 months ago
Content

Outlook MCP Server

A Model Context Protocol (MCP) server that provides access to Microsoft Outlook email functionality, allowing LLMs and other MCP clients to read, search, and manage emails through a standardized interface.

Features

  • Folder Management: List available mail folders in your Outlook client
  • Email Listing: Retrieve emails from specified time periods
  • Email Search: Search emails by contact name, keywords, or phrases with OR operators
  • Email Details: View complete email content, including attachments
  • Email Composition: Create and send new emails
  • Email Replies: Reply to existing emails

Prerequisites

  • Windows operating system
  • Python 3.10 or later
  • Microsoft Outlook installed and configured with an active account
  • Claude Desktop or another MCP-compatible client

Installation

  1. Clone or download this repository
  2. Install required dependencies:
pip install mcp>=1.2.0 pywin32>=305
  1. Configure Claude Desktop (or your preferred MCP client) to use this server

Configuration

Claude Desktop Configuration

Add the following to your MCP_client_config.json file:

{
  "mcpServers": {
    "outlook": {
      "command": "python",
      "args": ["Your path\\outlook_mcp_server.py"],
      "env": {}
    }
  }
}

Usage

Starting the Server

You can start the server directly:

python outlook_mcp_server.py

Or allow an MCP client like Claude Desktop to start it via the configuration.

Available Tools

The server provides the following tools:

  1. list_folders: Lists all available mail folders in Outlook
  2. list_recent_emails: Lists email titles from the specified number of days
  3. search_emails: Searches emails by contact name or keyword
  4. get_email_by_number: Retrieves detailed content of a specific email
  5. reply_to_email_by_number: Replies to a specific email
  6. compose_email: Creates and sends a new email

Example Workflow

  1. Use list_folders to see all available mail folders
  2. Use list_recent_emails to view recent emails (e.g., from last 7 days)
  3. Use search_emails to find specific emails by keywords
  4. Use get_email_by_number to view a complete email
  5. Use reply_to_email_by_number to respond to an email

Examples

Listing Recent Emails

Could you show me my unread emails from the last 3 days?

Searching for Emails

Search for emails about "project update OR meeting notes" in the last week

Reading Email Details

Show me the details of email #2 from the list

Replying to an Email

Reply to email #3 with: "Thanks for the information. I'll review this and get back to you tomorrow."

Composing a New Email

Send an email to john.doe@example.com with subject "Meeting Agenda" and body "Here's the agenda for our upcoming meeting..."

Troubleshooting

  • Connection Issues: Ensure Outlook is running and properly configured
  • Permission Errors: Make sure the script has permission to access Outlook
  • Search Problems: For complex searches, try using OR operators between terms
  • Email Access Errors: Check if the email ID is valid and accessible
  • Server Crashes: Check Outlook's connection and stability

Security Considerations

This server has access to your Outlook email account and can read, send, and manage emails. Use it only with trusted MCP clients and in secure environments.

Limitations

  • Currently supports text emails only (not HTML)
  • Maximum email history is limited to 30 days
  • Search capabilities depend on Outlook's built-in search functionality
  • Only supports basic email functions (no calendar, contacts, etc.)
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Serper MCP ServerA Serper MCP Server
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
ChatWiseThe second fastest AI chatbot™
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Tavily Mcp
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
CursorThe AI Code Editor
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Playwright McpPlaywright MCP server
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Amap Maps高德地图官方 MCP Server
DeepChatYour AI Partner on Desktop
WindsurfThe new purpose-built IDE to harness magic