makhatib

Microsoft 365 MCP Server

辦公效率v1.0.0
作者:makhatib更新於 2026-05-18mcp-microsoft365@clawhub_makhatib/mcp-microsoft365
郵件處理流程自動化

據 AlphaMoat 統計,截至 2026-09,Microsoft 365 MCP Server 累計下載 4,679 次、獲 4 個星標,在全部 5,078 個 AI 技能中排名第 2,031 位,在「辦公效率」分類(435 個)中排名第 178 位。

累計安裝
142
累計下載
4679
星標
4
全站排名
#2,031
全站前 40% · 「辦公效率」前 41%
平台累計安裝累計下載星標評論
ClawHub ↗14244484-
SkillHub ↗14046794—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

MCP 來源列出讀取和搜尋郵件、建立或傳送郵件及日曆事件、瀏覽/搜尋/讀取 OneDrive 檔案、管理任務,以及讀取或傳送 Teams 訊息;未證實支援編輯 OneDrive 檔案。配置需要 Node.js 18 或更新版本、Azure Entra 應用、Microsoft Graph 許可權和管理員同意。傳送或寫入前確認賬號與目標物件。

資料釋出於 2026-10-29

可以用來做什麼

  • 檢視郵件、日曆、OneDrive 檔案或任務

什麼時候用

  • 所需 Node.js 環境和 Entra/Graph 授權已配置時
  • 確認賬號與目標後,檢查或執行來源所列 Microsoft 365 操作時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

列出該 MCP 服務文件所述的讀取和寫入操作,並指出配置及授權前提;不要連線賬號。

月度資料趨勢

累計下載4679
3462411647692026-05 · 累計下載 35522026-07 · 累計下載 40142026-08 · 累計下載 42082026-09 · 累計下載 467926-0526-09
星標4
3452026-05 · 星標 42026-07 · 星標 42026-08 · 星標 42026-09 · 星標 426-0526-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-094679—4
2026-084208+4.8%4
2026-074014—4
2026-053552—4

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

3.9 KB · ClawHub v1.0.0
# 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
展開全部(共 188 行)

### 📅 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](https://portal.azure.com)
2. Navigate to **Microsoft Entra ID** → **App registrations** → **New 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

```bash
# Clone/download the skill
cd mcp-microsoft365

# Install dependencies
npm install

# Build
npm run build
```

### 5. Configure mcporter

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

Edit `config/mcporter.json` to add environment variables:

```json
{
  "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": "[email protected]"
      }
    }
  }
}
```

## Usage

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

# Send email
mcporter call m365.m365_mail_send to:"[email protected]" subject:"Hello" body:"<p>Hi!</p>"

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

### Calendar
```bash
# 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
```bash
# List OneDrive root
mcporter call m365.m365_files_list

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

### Tasks
```bash
# List task lists
mcporter call m365.m365_tasks_lists
```

### Teams
```bash
# List chats
mcporter call m365.m365_teams_chats top:10
```

## 19 Available Tools

| Tool | Description |
|------|-------------|
| `m365_mail_list` | List emails |
| `m365_mail_read` | Read email by ID |
| `m365_mail_send` | Send email |
| `m365_mail_search` | Search emails |
| `m365_calendar_list` | List events |
| `m365_calendar_create` | Create event |
| `m365_calendar_availability` | Check free/busy |
| `m365_files_list` | List files |
| `m365_files_search` | Search files |
| `m365_files_read` | Read file content |
| `m365_files_info` | Get file metadata |
| `m365_tasks_lists` | List task lists |
| `m365_tasks_list` | List tasks |
| `m365_tasks_create` | Create task |
| `m365_teams_chats` | List chats |
| `m365_teams_messages` | Read messages |
| `m365_teams_send` | Send message |
| `m365_users_list` | List users |
| `m365_user_info` | Get user profile |

## Author

**Mahmoud Alkhatib**
- Website: [malkhatib.com](https://malkhatib.com)
- YouTube: [@malkhatib](https://youtube.com/@malkhatib)
- Twitter: [@malkhateeb](https://twitter.com/malkhateeb)

## License

MIT

「辦公效率」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。