プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Outlook Mail

作者:Pepebitsバージョン 1.2.0i★ –iパソコンで動く
レジストリ名io.github.Pepebits/outlook-mcp

インストール

概要

作者による説明(英語の原文)

Read, search, send and clean up Outlook.com / Hotmail mail through Microsoft Graph.

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: チャット・メール

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • 自分で入力するもの: OUTLOOK_CLIENT_ID, OUTLOOK_TENANT, OUTLOOK_READ_ONLY, OUTLOOK_TOKEN_STORE

必要なもの

  • npmNode.jsのインストール(npxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "outlook": {
      "command": "npx",
      "args": [
        "-y",
        "@pepebits/outlook-mcp"
      ],
      "env": {
        "OUTLOOK_CLIENT_ID": "your-value",
        "OUTLOOK_TENANT": "your-value",
        "OUTLOOK_READ_ONLY": "your-value",
        "OUTLOOK_TOKEN_STORE": "your-value"
      }
    }
  }
}

ターミナルでこれを実行します

claude mcp add outlook --env OUTLOOK_CLIENT_ID=your-value --env OUTLOOK_TENANT=your-value --env OUTLOOK_READ_ONLY=your-value --env OUTLOOK_TOKEN_STORE=your-value -- npx -y @pepebits/outlook-mcp

動かす前に、空欄の値を入力してください。

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "outlook": {
      "command": "npx",
      "args": [
        "-y",
        "@pepebits/outlook-mcp"
      ],
      "env": {
        "OUTLOOK_CLIENT_ID": "your-value",
        "OUTLOOK_TENANT": "your-value",
        "OUTLOOK_READ_ONLY": "your-value",
        "OUTLOOK_TOKEN_STORE": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "outlook": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@pepebits/outlook-mcp"
      ],
      "env": {
        "OUTLOOK_CLIENT_ID": "your-value",
        "OUTLOOK_TENANT": "your-value",
        "OUTLOOK_READ_ONLY": "your-value",
        "OUTLOOK_TOKEN_STORE": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

自分で入力する値

  • OUTLOOK_CLIENT_ID env
    Your own Azure app (client) ID. Leave unset to use the shared app for personal accounts.
  • OUTLOOK_TENANT env
    consumers (default), organizations, common or a tenant ID.
  • OUTLOOK_READ_ONLY env
    Set to true to expose only read-only tools.
  • OUTLOOK_TOKEN_STORE env
    auto (default), keychain or file: where the token cache is stored.

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント Pepebits で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

チャット・メールのほかのサーバーとの比較i

  • このカテゴリのほかの1777件のうち0%よりスターが多い
  • このカテゴリのほかの1777件のうち47%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの1777件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Outlook Mailは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(1.2.0)がレジストリに届いたのは29 日前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。

代わりに使えるものは?

同じカテゴリには:Vexa, emailmd, MCP WhatsApp Cloud

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Vexa

作者:Vexa-ai

Meeting bot and transcripts for Google Meet, Teams and Zoom. Live or after, speakers labelled.

クラウドで動く★ 2,949Apache-2.02 か月前更新
インストール

emailmd

作者:anypost

Render markdown into email-safe HTML, lint drafts for deliverability problems, and preview emails.

パソコンでもクラウドでも★ 1,385MIT31 日前更新
インストール

MCP WhatsApp Cloud

作者:codespar

MCP server for WhatsApp Cloud API (Meta) — messages, media, and templates via Graph API

パソコンで動く★ 277MIT5 か月前更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

A Model Context Protocol server that lets Claude, Codex and any other MCP client read, search, send and organize your Outlook / Microsoft 365 / Outlook.com mail through the Microsoft Graph API.


🔭 Overview

outlook-mcp runs locally over stdio. It signs in with the OAuth device code flow (no client secret, no redirect URI), stores the refresh token in your OS keychain (or a local file only you can read), and talks to Microsoft Graph with plain fetch.

✨ Features

  • 📂 Browse folders, list and search messages (KQL), read bodies as sanitized plain text
  • 📎 List and download attachments safely into a configured directory
  • ✉️ Send mail, create drafts, reply, reply-all and forward (local attachments up to 150 MB; files of 3 MB or more are uploaded in chunks)
  • 🗂️ Move, mark read/unread, flag and delete messages, one at a time or in bulk (ids)
  • 📰 Find newsletters, unsubscribe from them and block unwanted senders with inbox rules
  • 🔒 Read-only mode that removes every mutating tool
  • 🔁 Automatic retry with Retry-After / exponential backoff for throttling (429/503/504)
  • 🧾 Logs only to stderr; never logs tokens or message bodies

📋 Requirements

  • Node.js 24 (LTS) or newer
  • A Microsoft account (personal works out of the box; work or school needs your own Azure app)

🚀 Quick start

No terminal sign-in and no Azure setup needed. You only need Node.js 24+.

Claude Code
claude mcp add outlook --scope user -- npx -y @pepebits/outlook-mcp
Claude Desktop

Add to claude_desktop_config.json and restart Claude Desktop:

{

"mcpServers": { "outlook": { "command": "npx", "args": ["-y", "@pepebits/outlook-mcp"] } } }

Codex (OpenAI)
codex mcp add outlook -- npx -y @pepebits/outlook-mcp

Or add it to ~/.codex/config.toml (shared by the Codex CLI and IDE extension):

[mcp_servers.outlook]

command = "npx" args = ["-y", "@pepebits/outlook-mcp"]

env = { OUTLOOK_READ_ONLY = "true" }

Run /mcp inside Codex to check that it is connected.

Other MCP clients

Any client that can launch a stdio MCP server works: run npx -y @pepebits/outlook-mcp as the server command.

Sign in

Ask your assistant to *"log in to Outlook"*. The login tool returns a URL and a one-time code: open the URL, enter the code and accept. Prefer a terminal? Run npx -y @pepebits/outlook-mcp auth instead.

By default the server uses the shared outlook-mcp Azure app, which supports personal Microsoft accounts (outlook.com, hotmail, live). The consent screen may show an *unverified publisher* warning. No data passes through any server of ours: the server talks to Microsoft Graph directly from your machine and your tokens stay in the local token cache. For work or school accounts, or to use your own app, see Use your own Azure app.

⚙️ Configuration (.env)

The .env file is optional. Variables are read from .env in the current directory and in the package directory, and real environment variables override it. You can also pass them through your MCP client's env block, e.g. claude mcp add outlook --scope user -e OUTLOOK_TENANT=organizations -e OUTLOOK_CLIENT_ID=your-client-id -- npx -y @pepebits/outlook-mcp.

VariableDefaultDescription
OUTLOOK_CLIENT_IDshared outlook-mcp appApplication (client) ID of your own Azure app registration (optional).
OUTLOOK_TENANTconsumersAuthority tenant: consumers (personal), organizations (work/school), common (both) or a tenant GUID.
OUTLOOK_SCOPESUser.Read Mail.ReadWrite Mail.Send MailboxSettings.ReadWrite offline_accessSpace-separated delegated Graph scopes requested at sign-in.
OUTLOOK_TOKEN_STOREautoWhere the token cache lives: auto (OS keychain when available, else file), keychain (fails if no keychain) or file. See Token storage.
OUTLOOK_TOKEN_CACHE~/.config/outlook-mcp/token-cache.jsonToken cache file (mode 0600) for the file store; also identifies the keychain entry.
OUTLOOK_READ_ONLYfalseWhen true, send/move/delete/flag/mark tools are not registered at all.
OUTLOOK_DOWNLOAD_DIR~/DownloadsThe only directory attachments may be written to.
OUTLOOK_DEFAULT_TOP20Default page size for list/search tools (1-100).
OUTLOOK_MAX_BODY_CHARS20000Maximum body characters returned by get_message.
OUTLOOK_GRAPH_BASE_URLhttps://graph.microsoft.com/v1.0Graph endpoint (change for national clouds).
LOG_LEVELinfodebug, info, warn or error (written to stderr).

🔐 Authentication

npx -y @pepebits/outlook-mcp auth      # device code sign-in; prints a URL and a code

npx -y @pepebits/outlook-mcp whoami # silent token + GET /me npx -y @pepebits/outlook-mcp logout # removes accounts and deletes the token cache (keychain entry and file)

You can also sign in without a terminal. Just ask your assistant to *"log in to Outlook"*:

  • 🔑 login returns a URL and a one-time code. Open the URL, enter the code and accept; sign-in finishes in the background.
  • ✅ auth_status tells you whether you are signed in, still waiting, or signed out.
  • 🚪 logout removes the cached account and the token cache (keychain entry and file).

Use login with force: true to sign in again, for example after adding a permission in Azure. If the session is missing or expired, tools return *"Not signed in or session expired. Call the login tool ..."*.

🗝️ Token storage

The refresh token is the most sensitive thing this server holds, so by default (OUTLOOK_TOKEN_STORE=auto) it goes into the operating system keychain instead of a plain file. No native npm dependencies are used; the server calls the OS tools directly:

PlatformBackendNotes
macOSKeychain via the security CLIService outlook-mcp, account = the cache path.
LinuxSecret Service via secret-tool (libsecret)Used only if secret-tool is installed and a keyring is running; otherwise the file store is used.
Windows and othersFile~/.config/outlook-mcp/token-cache.json, mode 0600.
  • Migration: if a cache file exists and the keychain is still empty, it is imported into the keychain and the file is deleted.
  • Fallback: in auto mode, if the keychain cannot be used at runtime the server falls back to the file and logs a warning. OUTLOOK_TOKEN_STORE=keychain never falls back and fails instead; file never touches the keychain.
  • Secrets stay out of process listings: on Linux secret-tool reads the secret from stdin. security add-generic-password only accepts the password as a command-line argument (visible in ps to other local processes), so on macOS the commands are fed to security -i over stdin instead. That interface truncates lines at about 4 KB, so the cache is stored base64 encoded across a few small keychain items ( #0, #1, ...).
  • logout (tool and CLI) removes the keychain entry as well as the file.
  • On macOS the first access from a different binary may show a Keychain prompt; click *Always Allow*.

🛠️ Use your own Azure app (optional)

By default outlook-mcp uses the shared outlook-mcp Azure app, which works with personal Microsoft accounts only. Register your own app if you need work or school accounts or simply prefer to use your own. Then set OUTLOOK_CLIENT_ID (and OUTLOOK_TENANT, see below).

Step by step
  1. Open portal.azure.com and go to Microsoft Entra ID -> App registrations -> New registration.
  2. Give it a name (for example outlook-mcp).
  3. Under Supported account types choose:
  • Personal Microsoft accounts only (Outlook.com, Hotmail, Live), or
  • Accounts in any organizational directory and personal Microsoft accounts (both).
  • For work/school only, pick an organizational option.
  1. Leave Redirect URI empty and click Register.
  2. In the left menu go to Manage -> Authentication -> Settings tab, set Allow public client flows to Yes and save.
  3. Go to Manage -> API permissions. User.Read is already granted by default. Click Add a permission -> Microsoft Graph -> Delegated permissions and add:
  • 📬 Expand the Mail group and tick Mail.ReadWrite and Mail.Send.
  • ⚙️ Expand the MailboxSettings group and tick MailboxSettings.ReadWrite (needed for inbox rules and block_sender).
  • 🔑 Expand the OpenId permissions group and tick offline_access.

Then click Add permissions. No admin consent is needed for personal accounts.

ScopeUsed for
User.ReadSign-in and whoami
Mail.ReadWriteReading, searching, moving, flagging and deleting messages
Mail.Sendsend_mail, replies, forwards and mailto unsubscribe
MailboxSettings.ReadWriteInbox rules: list_rules, create_rule, delete_rule, block_sender
offline_accessRefresh token, so you only sign in once

💡 If you upgrade from 0.1.0, add MailboxSettings.ReadWrite in Azure and run login with force: true (or npx -y @pepebits/outlook-mcp auth) again.

💡 The Azure portal may be shown in your language, so labels can differ slightly (e.g. *Administrar* -> *Autenticación* -> *Configuración*, *Permisos de OpenId*).

  1. From the Overview page copy the Application (client) ID. This is your OUTLOOK_CLIENT_ID.

🏢 Work or school accounts: set OUTLOOK_CLIENT_ID to your app and OUTLOOK_TENANT=organizations (or your tenant GUID). Your organization may require admin consent for the mail permissions.

🧰 Tools reference

ToolMutatingDescription
loginnoStart a device code sign-in; returns the URL and code (force to sign in again).
auth_statusnoSigned in, pending sign-in or signed out.
logoutnoSign out and delete the local token cache.
list_foldersnoList mail folders or child folders (parentFolderId, includeHidden).
list_messagesnoList messages, newest first, with filters (unreadOnly, from, since, until, hasAttachments) and nextLink paging.
search_messagesnoKQL full-text search with nextLink paging.
get_messagenoFull message with recipients, flags and body (format text/html, maxChars).
list_attachmentsnoAttachment metadata for a message.
download_attachmentnoSave an attachment into OUTLOOK_DOWNLOAD_DIR (writes locally only; no overwrite unless overwrite: true).
send_mailyesSend an email, optionally with local attachments up to 150 MB (3 MB or more go through an upload session; if an upload fails nothing is sent).
create_draftyesCreate a draft without sending. Attachments up to 150 MB; failed uploads are reported and the draft is kept.
reply_messageyesReply or reply-all (replyAll).
forward_messageyesForward to new recipients.
move_messageyesMove to a folder; returns the new id. Accepts id or ids (up to 50).
mark_readyesMark read or unread. Accepts id or ids (up to 50).
flag_messageyesflagged, complete or notFlagged. Accepts id or ids (up to 50).
delete_messageyesMove to Deleted Items, or permanent: true to delete irreversibly. Accepts id or ids (up to 50).

| bulk_action | yes | Apply delete, move, archive, markRead, markUnread, flag or unflag to every message matching a query (KQL) or filters (folderId, from, `si

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く