NO

norcim133/outlookmcpserver

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

16 stars 7 forks 品質 51 トレンド 21MIT

MCPの特長 msgraph がメール、カレンダー、ファイルへのコールを呼ぶサーバー

概要

このプロジェクトは、Microsoft Graph API を使用して Microsoft 365 のメール、カレンダー、ファイルへのアクセスを Claude デスクトップに提供する MCP サーバーです。 - ✅ : Claude または MCP 互換のエージェントから受信トレイをコンパイル、応答、ソート、検索、フィルタ、分析 - ✅ : 招待状、リストイベント、コンパス/アップデート/送信イベント - ✅ : ファイルメタデータの取得、ファイルメタデータの取得 - ✅ : ドライブの読み込み、ファイル検索、ファイルメタデータの取得 - msgraph (モダンMicrosoft Graph SDK) - DeviceCodeCredential と TokenCachePersistenceOptions - FastMCP - シンプルな MCP 準拠サーバーインターフェイス - uv — 速い Python の依存性と env 管理 - ローカルで実行 - - - - - 認証で使用してください ⚠️ これを設定する必要があります — アプリの登録は、Microsoft Graph スコープ(メールなど)の同意が必要です。 読む, カレンダー. 読みます)、デフォルトではほとんどの orgs です。 Claudeでデバッグしようとする前に、Inspectorで作業する事を得るのははるかに簡単です.

概要(AI 翻訳)

このプロジェクトは、Microsoft Graph API を使用して Microsoft 365 のメール、カレンダー、ファイルへのアクセスを Claude デスクトップに提供する MCP サーバーです。

お問い合わせ

✨ 機能

  • ✅メールアクセス:ClaudeまたはMCP互換エージェントから受信トレイを強制、応答、ソート、検索、フィルタ、分析
  • ✅ カレンダーサポート: 招待状、リストイベント、コンポース/アップデート/イベントの送信
  • ✅OneDriveサポート: ファイルを検索し、ファイルメタデータを取得
  • ✅ Sharepoint サポート: ドライブの読み込み、ファイル検索、ファイルメタデータの取得

お問い合わせ

🧱 技術スタック

  • [[msgraph] (モダンマイクロソフトグラフSDK)
  • [azure.identity]と[TokenCachePersistenceOptions]
  • [FastMCP — シンプルなMCP準拠サーバーインターフェイス
  • [uv — 速い Python の依存性と env 管理

お問い合わせ

⚙️ 要件

現在、以下に構築されています。

  • ローカルで実行macOS -Claude Desktopで使用してください -Azure登録済みアプリケーションを使用して認証

⚠️ これを設定するには、Azureテナントにadminアクセスを持っている必要があります。アプリの登録には、Microsoft Graphスコープ(Mail.Read)、Calendars.Read)の同意が必要です。これは、ほとんどのオーガニゼーションでデフォルトで非ユーザのconsentableではありません。

お問い合わせ

OST 始める

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

OutlookMCPServer

This project is an MCP server that gives Claude Desktop access to your Microsoft 365 mail, calendar, and files using the Microsoft Graph API.


✨ Features

  • ✅ Mail access: Compose, Respond, Sort, Search, Filter, and Analyze your inbox from Claude or any MCP-compatible agent
  • ✅ Calendar support: Find invites, List Events, Compose/Update/Send Events
  • ✅ OneDrive support: Search files, get file metadata
  • ✅ Sharepoint support: Load drives, search files, get file metadata

🧱 Tech Stack

  • msgraph (modern Microsoft Graph SDK)
  • azure.identity with DeviceCodeCredential and TokenCachePersistenceOptions
  • FastMCP — simple MCP-compliant server interface
  • uv — fast Python dependency and env management

⚙️ Requirements

This is currently built to:

  • Run locally on macOS
  • Be used with Claude Desktop
  • Authenticate using an Azure-registered application

⚠️ You must have admin access to an Azure tenant to configure this — the app registration requires consent for Microsoft Graph scopes (e.g. Mail.Read, Calendars.Read), which is not user-consentable by default in most orgs.


🚀 Getting Started

Clone the repository and navigate to it

git clone https://github.com/Norcim133/OutlookMCPServer.git
cd OutlookMCPServer

Set up the environment

uv venv
uv sync

Run locally using MCP Inspector

mcp dev main.py (expect errors)

It is much easier to get things working in the Inspector before trying to debug in Claude.


🔐 Authentication Setup

Before running the application, you need to set up the following:

  1. Create an auth_cache folder in the project root (see note):
mkdir -p auth_cache
  1. Create a .env file in the project root
touch .env
  1. Add the following to the .env:
echo "AZURE_CLIENT_ID=" > .env
echo "AZURE_TENANT_ID=" >> .env
echo "AZURE_GRAPH_SCOPES=User.Read Mail.Read Mail.Send Mail.ReadWrite" >> .env

NOTE: Additional .env values required for file services NOTE: On first run, the application will authenticate using the DeviceCodeCredential flow and will create auth_record.json in the auth_cache folder automatically if successful.

You must have admin access to an Azure tenant to register an application with these permissions.


Claude for Desktop Integration

To integrate with Claude Desktop, add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "outlook": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "azure-identity,mcp[cli],msgraph-core,msgraph-sdk",
        "mcp",
        "run",
        "/absolute/path/to/OutlookMCPServer"
      ]
    }
  }
}

In Claude Desktop, you can find the json file by looking in Settings/Developer/Edit Config.

GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →