Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

microsoft365-mcp-server

MCP server by sapientsai Community

Microsoft365-mcp-server connects an AI assistant to Microsoft 365 through Microsoft Graph. It covers mail, calendar, contacts, files, Teams, Planner, OneNote and To Do, and is aimed at users who can sign in and consent through OAuth.

  • Score 82
  • 1 stars
  • 1.2k a week
  • MIT
  • Updated

Install microsoft365-mcp-server

Built from the published package, never by AI.

claude mcp add microsoft365-mcp-server -e MS365_CLIENT_ID=YOUR_MS365_CLIENT_ID -- npx -y microsoft365-mcp-server

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install microsoft365-mcp-server in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the microsoft365-mcp-server block.

About

microsoft365-mcp-server is a delegated MCP server for Microsoft 365, built on Microsoft Graph. The source describes it as an OAuth-proxy gateway with 40+ tools across mail, calendar, contacts, files, Teams, Planner, OneNote, To Do and more. It is published to npm under the name microsoft365-mcp-server.

The server is part of a pnpm monorepo that also contains an app-only server and a shared core package. The source says to use this package when a user is present to consent through interactive OAuth. For tenant-wide, headless, app-only deployments, the monorepo points to the separate microsoft-mcp-server package instead.

Written from the project's README and checked against it.

What you need

  • A Microsoft 365 account that a user can sign in with and consent through OAuth
  • pnpm, for building or developing from the monorepo
SettingNeededWhat it is
MS365_CLIENT_IDEnvironment variableRequiredAzure AD application (client) ID. Every mode except client-token needs it.
MS365_TENANT_IDEnvironment variableOptionalAzure AD tenant ID, or 'common'/'organizations'/'consumers'. Read by certificate, client-secret and oauth-proxy modes.
MS365_CLIENT_SECRETEnvironment variable, secretOptionalAzure AD client secret (client-secret mode).
MS365_CERT_PATHEnvironment variableOptionalPath to the certificate used by certificate mode.
MS365_CERT_PASSWORDEnvironment variable, secretOptionalPassword for the certificate at MS365_CERT_PATH, if it has one.
MS365_ACCESS_TOKENEnvironment variable, secretOptionalA Graph access token supplied directly (client-token mode).
MS365_AUTH_MODEEnvironment variableOptionalAuth mode: interactive (default), certificate, client-secret, client-token or oauth-proxy.
MS365_OAUTH_BASE_URLEnvironment variableOptionalBase URL of the OAuth proxy (oauth-proxy mode).
MS365_READ_ONLYEnvironment variableOptionalSet to 'true' to expose read-only tools and refuse every write.
MS365_ENABLED_TOOLSEnvironment variableOptionalCase-insensitive regular expression matched against tool names; only matching tools are registered. Not a comma-separated list.
MS365_PRESETSEnvironment variableOptionalComma-separated tool presets to enable instead of naming tools individually.
MS365_ORG_MODEEnvironment variableOptionalSet to 'true' for organisation-wide (application-permission) behaviour.
TRANSPORT_TYPEEnvironment variableOptionalTransport: 'stdio' (the default, and what this npm package is listed as) or 'httpStream' for remote/Docker deployments.

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • Summarize my unread mail from today
  • What meetings do I have on my calendar this week?
  • List my open tasks in Microsoft To Do

Good to know

  • Built for delegated OAuth, so a user must be present to consent
  • For headless, app-only deployments, the source points to the other package

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

What you can do with it

  • Work with Outlook mail and calendar from an assistant
  • Manage Microsoft To Do tasks and Planner plans
  • Search and organize Teams, OneNote and file content

Alternatives to microsoft365-mcp-server

All alternatives →
LearnHouse learnhouse
95

LearnHouse is an open source learning platform for building courses, learning paths and communities in your own academy. Its MCP server lets AI assistants read and build courses in your organization.

ACA Remote 2.5k
Agent-Native CalendarBuilderIO
94

Agent-Native Calendar is the Calendar agent in Agent-Native, an open-source TypeScript framework for building agents with UIs. The README describes it as a way to find time, schedule events, and manage bookings. It is aimed at developers building agent apps.

AAA Remote 7.8k
Agent-Native ClipsBuilderIO
94

Agent-Native Clips is the Clips agent from the Agent-Native framework, an open-source TypeScript project. It records and helps people understand meetings, screens, and voice notes.

AAA Remote 7.8k
Agent-Native SlidesBuilderIO
94

Agent-Native Slides is the Slides agent in the Agent-Native open-source framework, described as a way to create and edit on-brand presentations. It is aimed at developers who build agents with a purpose-built UI.

AAA Remote 7.8k
AIHawkfeder-cr
94

AIHawk is an AI job application bot. It finds recent job postings that match your resume, then fills in and sends applications on the company's own forms after you pick the jobs.

AAA Local 33k
Microsoft 365 MCP ServerSofteria
94

Connects AI assistants to Microsoft 365 and Office services through the Microsoft Graph API. It suits users and administrators who want an assistant to work with Outlook, calendar, OneDrive, Teams and SharePoint data.

AAA Local 87k/wk

Compare with LearnHouse, Agent-Native Calendar or Agent-Native Clips

microsoft365-mcp-server: common questions

Which Microsoft 365 MCP server should I use for headless deployments?

The source says to use packages/graph, the app-only microsoft-mcp-server, for tenant-wide, headless deployments. This package is for interactive OAuth where a user is present to consent.

Where is microsoft365-mcp-server published?

The source says it is published to npm as microsoft365-mcp-server. The monorepo README links to its npm page.

How does microsoft365-mcp-server authenticate?

The source describes it as a delegated OAuth-proxy MS365 gateway. A user must be present to consent to access.

How do I install microsoft365-mcp-server?

In Claude Code run claude mcp add microsoft365-mcp-server -e MS365_CLIENT_ID=YOUR_MS365_CLIENT_ID -- npx -y microsoft365-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is microsoft365-mcp-server the official server?

microsoft365-mcp-server is a community project by sapientsai, not verified by a company domain.

Is microsoft365-mcp-server free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is microsoft365-mcp-server safe to use?

It scores 82 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to microsoft365-mcp-server?

Similar MCP servers: LearnHouse, Agent-Native Calendar, Agent-Native Clips, Agent-Native Slides.

Does microsoft365-mcp-server work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

microsoft365-mcp-server Install

Add to stack

Loading.