microsoft365-mcp-server
io.github.sapientsai/microsoft365-mcp-server
About microsoft365-mcp-server
microsoft365-mcp-server is an MCP server published by the GitHub account sapientsai. Microsoft 365 via Graph — mail, calendar, contacts, files, Teams, Planner, OneNote, To Do.
It runs on your own machine: your AI client starts it from the npm package microsoft365-mcp-server at version 1.2.19.
It asks for 3 secrets: MS365_CLIENT_SECRET, MS365_CERT_PASSWORD and MS365_ACCESS_TOKEN. Give it a key with the least access that still works.
It also needs MS365_CLIENT_ID set before it starts.
Version 1.2.19 was published on 28 October 2026, and the source code is public, so you can read it before installing.
Written from the registry entry. 9 automated checks on the registry entry and the package code: 7 pass, 1 warn, 0 fail, 1 info. How we check.
What it asks for
| Variable | Required | Secret | Description |
|---|---|---|---|
MS365_CLIENT_ID | Yes | No | Azure AD application (client) ID. Every mode except client-token needs it. |
MS365_TENANT_ID | No | No | Azure AD tenant ID, or 'common'/'organizations'/'consumers'. Read by certificate, client-secret and oauth-proxy modes. |
MS365_CLIENT_SECRET | No | Yes | Azure AD client secret (client-secret mode). |
MS365_CERT_PATH | No | No | Path to the certificate used by certificate mode. |
MS365_CERT_PASSWORD | No | Yes | Password for the certificate at MS365_CERT_PATH, if it has one. |
MS365_ACCESS_TOKEN | No | Yes | A Graph access token supplied directly (client-token mode). |
MS365_AUTH_MODE | No | No | Auth mode: interactive (default), certificate, client-secret, client-token or oauth-proxy. |
MS365_OAUTH_BASE_URL | No | No | Base URL of the OAuth proxy (oauth-proxy mode). |
MS365_READ_ONLY | No | No | Set to 'true' to expose read-only tools and refuse every write. |
MS365_ENABLED_TOOLS | No | No | Case-insensitive regular expression matched against tool names; only matching tools are registered. Not a comma-separated list. |
MS365_PRESETS | No | No | Comma-separated tool presets to enable instead of naming tools individually. |
MS365_ORG_MODE | No | No | Set to 'true' for organisation-wide (application-permission) behaviour. |
TRANSPORT_TYPE | No | No | Transport: 'stdio' (the default, and what this npm package is listed as) or 'httpStream' for remote/Docker deployments. |
Checks
| Check | Result | Detail |
|---|---|---|
| Source repository linked | Pass | https://github.com/sapientsai/microsoft365-mcp-server |
| Version pinned | Pass | Every package has an explicit version |
| Secrets requested | Warn | Asks for 3 secrets: MS365_CLIENT_SECRET, MS365_CERT_PASSWORD, MS365_ACCESS_TOKEN |
| Known package registry | Pass | All packages come from npm, PyPI, OCI, NuGet or MCPB |
| Namespace ownership | Info | Name verified via GitHub account sapientsai |
| Registry text aimed at the AI | Pass | Description and settings contain no hidden characters or instructions to the AI |
| Install scripts | Pass | microsoft365-mcp-server@1.2.19 runs nothing at install |
| Code red flags | Pass | Read 8 files in microsoft365-mcp-server@1.2.19: no obfuscation, encoded execution, credential reads or data-collection endpoints found |
| Text aimed at the AI | Pass | No hidden characters or instructions to the AI in 8 files, including comments and the README |
Popularity & health: 49 / 100
Worked out from public numbers and our own checks, not from user reviews or ratings. It says how used and how looked-after a server is, not whether it is safe.
2 forks, 91 merged pull requests. Sources: GitHub, npm, PyPI (pypistats.org) and Hacker News (Algolia), fetched 2026-10-31.
What people say
No Hacker News threads link to its source code.
Look further: search Reddit, search Hacker News, read its GitHub issues. These are not reviews we checked.
Facts
| Registry name | io.github.sapientsai/microsoft365-mcp-server |
|---|---|
| Publisher | GitHub account sapientsai |
| How the name is verified | Name verified via GitHub account sapientsai. The registry ties the name prefix to that account or domain; it does not check the code. |
| Type | Local: runs on your machine from a package |
| Packages | npm microsoft365-mcp-server 1.2.19 (stdio) |
| Version | 1.2.19 |
| Published | |
| Last updated | |
| Source repository | https://github.com/sapientsai/microsoft365-mcp-server |
| Website | None linked |
| Category | Email & messaging (assigned by keyword rule, not by hand) |
Related servers in Email & messaging
- ms-graph-mcp7/7Microsoft Graph MCP server — 85 tools for mail, calendar, Teams,…
- M365 Graph MCP3/3Manage Microsoft 365 email, calendar, contacts and inbox rules via…
- MSGraph MCP7/7MCP server for Microsoft Graph: Outlook mail and calendar, plus…
- Microsoft 365 Teams7/7Microsoft 365 Teams via Graph: list chats, read/send messages, list…
- outlook-mcp4/4Microsoft Outlook MCP server — 20 tools for email, calendar,…
Work IQ Teams MCP Server3/3Manage Microsoft Teams chats, channels, users, and messages via…