Ms 365 MCP Server logo

Ms 365 MCP Server

by softeria

Connect AI clients to Microsoft 365 through Graph API for mail, files, Excel, calendars, Teams, and more.

Install Ms 365 MCP Server

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "softeria-ms-365-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@softeria/ms-365-mcp-server"
      ],
      "env": {
        "MS365_MCP_CLIENT_ID": "YOUR_VALUE_HERE",
        "MS365_MCP_TENANT_ID": "YOUR_VALUE_HERE",
        "MS365_MCP_GRAPH_BASE_URL": "YOUR_VALUE_HERE",
        "MS365_MCP_OUTPUT_FORMAT": "YOUR_VALUE_HERE",
        "MS365_MCP_ALLOWED_SCOPES": "YOUR_VALUE_HERE",
        "MS365_MCP_READ_MAIL_TEXT_MAX_CHARS": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

softeria/ms-365-mcp-server exposes Microsoft 365 and Office operations through Microsoft Graph, covering Outlook mail, calendars, OneDrive, Excel, and organization services. It uses MSAL authentication and supports multiple Microsoft accounts, account selection, Graph batching, webhook subscriptions, and binary file transfers. Personal services are available by default, while Teams, SharePoint, meetings, transcripts, and other organization features require organization mode. Reach for it when an MCP client needs authenticated Microsoft 365 access with configurable tools, scopes, and read-only controls.

Use cases

  • Read and triage Outlook messages
  • Build or update Excel workbooks
  • Search and download OneDrive or SharePoint files
  • Manage calendar events and meeting attachments
  • Monitor Microsoft Graph resources with webhooks

Key features

  • Microsoft Graph access across personal and organization services
  • MSAL authentication with multiple-account selection
  • Graph batching for up to 20 requests
  • Webhook subscription lifecycle management
  • Configurable tools, scopes, presets, and read-only mode
  • Base64, local-file, and pre-authenticated binary downloads

Tools19

What Ms 365 MCP Server lets your agent do. Expand a tool for its parameters.

Verified live~10.0k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

49/50 checks healthy over the last 89d

What it can do

From the 19 tools this server returned when we ran it; 14 declare their own safety hints.

Can delete or modify data · 6Handles credentials · 1Makes network requests · 13Read-only tools · 13
Network at startup3 connections
Files written at startup3
Install scriptsNone
npm provenanceSigned build
Package age562 days
Maintainers1

Observed 2026-10-18 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 1d ago via OSV.dev · @softeria/ms-365-mcp-server (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1.1kStargazers on the source repository.
npm downloads250kPackage downloads in the last 30 days.
Last commit3d agoMost recent push to the default branch.
Tools exposed19Callable tools this server registers over MCP.
Directory activity13 viewsConfig copies, upvotes, and views on AllMCPs.

How Ms 365 MCP Server works

What softeria/ms-365-mcp-server does

softeria/ms-365-mcp-server connects MCP-compatible AI clients to Microsoft 365 through the Microsoft Graph API. Its tool surface includes more than 300 Graph-backed operations, with personal-account services available by default: Outlook mail, calendars, OneDrive files, Excel, OneNote, To Do, Planner, contacts, user profiles, and search.

Organization mode adds Teams and chats, online meetings, transcripts and recordings, attendance reports, SharePoint sites and lists, shared mailboxes and calendars, user management, presence, and virtual events. The server also includes authentication controls, subscription management for Graph change notifications, and utilities for downloading or uploading binary content.

How it works

Authentication uses Microsoft Authentication Library. MCP tools can log in, log out, verify the current session, list configured accounts, select a default account, or remove an account. Account discovery matters in multi-account sessions because later Graph calls use the selected account.

Graph requests can be grouped with graph-batch, which accepts up to 20 relative Graph requests in one HTTP call. Dependent requests can be sequenced with dependsOn; returned responses are matched by their request IDs. Subscription tools create, inspect, renew, reauthorize, and delete Microsoft Graph webhooks.

The server supports the global Microsoft cloud, Microsoft 365 operated by 21Vianet in China, and GCC High. A custom Graph base URL can route traffic through a proxy. JSON is the default output format, while experimental TOON output is available for reducing token use with uniform lists.

Setup and configuration

Use Node.js 20 or newer. The package can be started with npx, including configurations such as npx @softeria/ms-365-mcp-server --toon. GCC High deployments require an app registered in the government tenant, with MS365_MCP_CLIENT_ID and MS365_MCP_TENANT_ID configured, followed by --cloud gcc-high.

The default tool surface and requested Microsoft Graph permissions are derived from enabled features. --org-mode, --preset, --enabled-tools, and --read-only adjust that surface. --list-permissions reports the permissions implied by the selected configuration. Enterprise deployments can apply an allowlist with --allowed-scopes or MS365_MCP_ALLOWED_SCOPES; tools whose required scopes are outside that boundary are hidden.

Tools can also be filtered from a file using --enabled-tools-file. Blank lines and full-line comments are ignored, and the remaining regular expressions determine which tools are enabled.

Tools and capabilities

  • Read and clean multiple mail messages with read-mail-text, or retrieve raw message content with mail tools.
  • Download Graph binary content as base64 or write it to a local file without overwriting an existing path.
  • Resolve short-lived download URLs for OneDrive and SharePoint content, avoiding base64 transfer through the model context.
  • Create short-lived upload URLs for draft-message and event attachments when attachment URLs are enabled.
  • Parse several Microsoft Teams meeting URL formats into a standard join URL.
  • Manage Graph webhook subscriptions and renew them before expiration.
  • Batch mail, file, Excel, and other Graph operations into one request.

Limitations and notes

Microsoft Graph permissions depend on the tools enabled and may require administrator consent. Read-only mode restricts the available operations. Organization services are not part of the default personal-account mode.

Attachment upload URLs require --enable-attachment-urls. They are single-use and short-lived; files below 3 MB can be attached directly, while larger files use a Graph upload session up to 150 MB. Graph itself provides pre-authenticated download URLs for some drive and SharePoint content, but mail attachments and meeting recordings use authenticated byte endpoints unless the server creates its own URL.

The read-mail-text result is limited by MS365_MCP_READ_MAIL_TEXT_MAX_CHARS, defaults to 80,000 characters, and supports up to 20 messages per call. TOON output is experimental. GCC High has no pre-registered client and therefore requires tenant-specific app registration.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Ms 365 MCP Server

softeria/ms-365-mcp-server is an MCP server that connects AI clients to Microsoft 365 through Microsoft Graph. Its main tools cover Outlook mail, calendars, OneDrive files, Excel, authentication, Graph batching, webhook subscriptions, and binary file transfers, with Teams, SharePoint, meetings, and other organization services available in organization mode.

Install or run it with `npx @softeria/ms-365-mcp-server`; Node.js 20 or newer is recommended. MCP clients can invoke the package as a stdio server, and command-line flags such as `--toon`, `--org-mode`, `--preset`, and `--read-only` configure the tool surface.

Use the `login` tool to authenticate with a Microsoft account, then use `verify-login` to check the session. `list-accounts`, `select-account`, and `remove-account` manage multiple cached Microsoft accounts, while `logout` ends the account session.

Set an allowed scope boundary with `--allowed-scopes` or `MS365_MCP_ALLOWED_SCOPES`. The server calculates the enabled tools first, then hides tools whose required Graph permissions are not covered; `--list-permissions` shows effective permissions and disabled tools.

Yes, Teams and SharePoint are supported in organization mode with `--org-mode`. That mode also adds chats, online meetings, transcripts, recordings, attendance reports, shared mailboxes and calendars, user management, presence, and virtual events.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMs 365 MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/softeria-ms-365-mcp-server?style=directory)](https://allmcps.com/mcp/softeria-ms-365-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/softeria-ms-365-mcp-server"><img src="https://allmcps.com/api/badge/softeria-ms-365-mcp-server?style=directory" alt="Ms 365 MCP Server on AllMCPs" /></a>