Outlook助手

MCP助手提供与Outlook交互的工具,允许用户读取邮件和创建日历事件。

  • by Ited12345
  • Python
  • 本地部署
  • 1 星标
  • 更新于
在 GitHub 查看 Ited12345/MCP_Outlook_Assistant

使用说明

MCP助理

此MCP助手提供与Outlook交互的工具,允许您阅读电子邮件和创建日历事件。

特性

电子邮件管理

  • email_brief(num: int = 100, date: int = None):从默认收件箱中读取指定数量的电子邮件。您可以按日期进行筛选。
  • email_body(email_index: int):按索引读取特定电子邮件的正文。

日历管理

  • create_calendar_event(event_start: str, event_end: str, event_title: str):使用指定的标题、开始日期和结束日期创建新的日历事件。

设置和使用

先决条件

  • Python 3.x
  • Outlook已安装并配置
  • Windows操作系统

安装

  1. 克隆存储库:

    git clone https://github.com/Ited12345/MCP_Outlook_Assistant.git
    cd MCP_Outlook_Assistant
    
  2. 安装依赖项:

    pip install -r requirements.txt
    
  3. 运行主应用程序:

    python outlook_assistant.py
    
  4. 将json添加到代理mcp

{
  "mcpServers": {
    "mcp_assistant": {
      "command": "uv",
      "args": [
        "--directory",
        "Replace your path/MCP_Outlook_Assistant",
        "run",
        "outlook_assistant.py"
      ]
    }
  }
}

一旦运行,MCP Assistant将可用于处理与电子邮件和日历操作相关的请求。

示例

按数字列出电子邮件

User: Can you list the last 5 emails I received?

按日期列出电子邮件

User: Can you list the emails I received on 2025-06-09?

阅读电子邮件正文

User: Can you read the body of the email with subject: Dinner on Sunday?

创建日历事件

User: Read the emails of yesterday and mark it in calender if it is a event.