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.
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-serverRun in your terminal. Add --scope user to use it in every project.
Step-by-step: install microsoft365-mcp-server in Claude Code
{
"mcpServers": {
"microsoft365-mcp-server": {
"env": {
"MS365_CLIENT_ID": "YOUR_MS365_CLIENT_ID"
},
"args": [
"-y",
"microsoft365-mcp-server"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
Step-by-step: install microsoft365-mcp-server in Claude Desktop
{
"mcpServers": {
"microsoft365-mcp-server": {
"env": {
"MS365_CLIENT_ID": "YOUR_MS365_CLIENT_ID"
},
"args": [
"-y",
"microsoft365-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"microsoft365-mcp-server": {
"env": {
"MS365_CLIENT_ID": "YOUR_MS365_CLIENT_ID"
},
"args": [
"-y",
"microsoft365-mcp-server"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add microsoft365-mcp-server --env MS365_CLIENT_ID=YOUR_MS365_CLIENT_ID -- npx -y microsoft365-mcp-server{
"mcpServers": {
"microsoft365-mcp-server": {
"env": {
"MS365_CLIENT_ID": "YOUR_MS365_CLIENT_ID"
},
"args": [
"-y",
"microsoft365-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install microsoft365-mcp-server in Antigravity CLI
gemini mcp add microsoft365-mcp-server npx -y microsoft365-mcp-serverGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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
| Setting | Needed | What it is |
|---|---|---|
MS365_Environment variable | Required | Azure AD application (client) ID. Every mode except client-token needs it. |
MS365_Environment variable | Optional | Azure AD tenant ID, or 'common'/'organizations'/'consumers'. Read by certificate, client-secret and oauth-proxy modes. |
MS365_Environment variable, secret | Optional | Azure AD client secret (client-secret mode). |
MS365_Environment variable | Optional | Path to the certificate used by certificate mode. |
MS365_Environment variable, secret | Optional | Password for the certificate at MS365_CERT_PATH, if it has one. |
MS365_Environment variable, secret | Optional | A Graph access token supplied directly (client-token mode). |
MS365_Environment variable | Optional | Auth mode: interactive (default), certificate, client-secret, client-token or oauth-proxy. |
MS365_Environment variable | Optional | Base URL of the OAuth proxy (oauth-proxy mode). |
MS365_Environment variable | Optional | Set to 'true' to expose read-only tools and refuse every write. |
MS365_Environment variable | Optional | Case-insensitive regular expression matched against tool names; only matching tools are registered. Not a comma-separated list. |
MS365_Environment variable | Optional | Comma-separated tool presets to enable instead of naming tools individually. |
MS365_Environment variable | Optional | Set to 'true' for organisation-wide (application-permission) behaviour. |
TRANSPORT_Environment variable | Optional | Transport: '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
ANo 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 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.
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.
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.
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.
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.
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.
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.
