← 返回
沟通协作 Key 中文

Microsoft 365 MCP Server

Integrate Microsoft 365 to manage Outlook email, calendar events, OneDrive files, Tasks, Teams chats, and user profiles via Microsoft Graph and MCP protocol.
{"answer":"集成 Microsoft 365,通过 Microsoft Graph 和 MCP 协议管理 Outlook 邮件、日历事件、OneDrive 文件、任务、Teams 聊天及用户资料。"}
makhatib
沟通协作 clawhub v1.0.0 1 版本 99945.4 Key: 需要
★ 4
Stars
📥 3,584
下载
💾 14
安装
1
版本
#calendar#email#latest#latest microsoft365#mcp#onedrive#outlook#teams

概述

Microsoft 365 MCP Server

Full Microsoft 365 integration via Model Context Protocol (MCP).

Features

📧 Mail (Outlook)

  • List, read, send, and search emails
  • Filter by folder (inbox, sent, drafts)
  • HTML email support

📅 Calendar

  • List and create events
  • Teams meeting integration
  • Check availability/free-busy

📁 OneDrive

  • Browse files and folders
  • Search files
  • Read file content

✅ Tasks (Microsoft To-Do)

  • List task lists
  • Create and manage tasks
  • Set importance and due dates

💬 Teams

  • List chats
  • Read and send messages

👥 Users

  • List organization users
  • Get user profiles

Requirements

  • Node.js 18+
  • Azure Entra ID App with Microsoft Graph permissions

Setup

1. Create Azure Entra ID App

  1. Go to Azure Portal
  2. Navigate to Microsoft Entra IDApp registrationsNew registration
  3. Configure:
    • Name: MCP-Microsoft365
    • Supported account types: Single tenant (recommended)
    • Redirect URI: http://localhost:3000/callback

2. Add API Permissions

Add these Application permissions for Microsoft Graph:

Mail.Read, Mail.Send, Mail.ReadWrite
Calendars.Read, Calendars.ReadWrite
Files.Read.All, Files.ReadWrite.All
Tasks.Read.All, Tasks.ReadWrite.All
Chat.Read.All, Chat.ReadWrite.All
User.Read.All

Important: Click "Grant admin consent"

3. Get Credentials

Save these values:

  • Application (client) ID
  • Directory (tenant) ID
  • Client Secret (create under Certificates & secrets)

4. Install

# Clone/download the skill
cd mcp-microsoft365

# Install dependencies
npm install

# Build
npm run build

5. Configure mcporter

mcporter config add m365 --stdio "node /path/to/mcp-microsoft365/dist/index.js"

Edit config/mcporter.json to add environment variables:

{
  "mcpServers": {
    "m365": {
      "command": "node /path/to/dist/index.js",
      "env": {
        "TENANT_ID": "your-tenant-id",
        "CLIENT_ID": "your-client-id",
        "CLIENT_SECRET": "your-client-secret",
        "DEFAULT_USER": "user@yourdomain.com"
      }
    }
  }
}

Usage

Email

# List recent emails
mcporter call m365.m365_mail_list top:5

# Send email
mcporter call m365.m365_mail_send to:"recipient@email.com" subject:"Hello" body:"<p>Hi!</p>"

# Search
mcporter call m365.m365_mail_search query:"important"

Calendar

# List events
mcporter call m365.m365_calendar_list top:10

# Create event with Teams meeting
mcporter call m365.m365_calendar_create subject:"Team Sync" start:"2026-01-27T10:00:00" end:"2026-01-27T11:00:00" isOnline:true

Files

# List OneDrive root
mcporter call m365.m365_files_list

# Search files
mcporter call m365.m365_files_search query:"report"

Tasks

# List task lists
mcporter call m365.m365_tasks_lists

Teams

# List chats
mcporter call m365.m365_teams_chats top:10

19 Available Tools

ToolDescription
-------------------
m365_mail_listList emails
m365_mail_readRead email by ID
m365_mail_sendSend email
m365_mail_searchSearch emails
m365_calendar_listList events
m365_calendar_createCreate event
m365_calendar_availabilityCheck free/busy
m365_files_listList files
m365_files_searchSearch files
m365_files_readRead file content
m365_files_infoGet file metadata
m365_tasks_listsList task lists
m365_tasks_listList tasks
m365_tasks_createCreate task
m365_teams_chatsList chats
m365_teams_messagesRead messages
m365_teams_sendSend message
m365_users_listList users
m365_user_infoGet user profile

Author

Mahmoud Alkhatib

License

MIT

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 11:20 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

communication-collaboration

Gmail

byungkyu
Gmail API 集成,托管 OAuth,支持读取、发送和管理邮件、线程、标签及草稿,适用于需要与 Gmail 交互的场景。
★ 72 📥 37,750
communication-collaboration

Slack

steipete
当需要通过 slack 工具从 Clawdbot 控制 Slack 时使用,包括在频道或私信中回复消息或置顶/取消置顶项目。
★ 157 📥 47,748
communication-collaboration

Himalaya

lamelas
{"answer":"通过IMAP/SMTP管理邮件的CLI。可在终端使用 `himalaya` 收发、回复、转发、搜索及整理邮件。支持多账户与MML(MIME元语言)编写邮件。"}
★ 68 📥 45,629