Office365 MCP Server
MCP server by leonardocrdso Verified · npm:@leonardocrdso
Office365 MCP Server connects AI assistants to Outlook, Calendar, OneDrive, SharePoint and Teams through the Microsoft Graph API. It is for users who want their assistant to work with Microsoft 365 data.
Install Office365 MCP Server
Built from the published package, never by AI.
claude mcp add office365-mcp-server -- npx -y @leonardocrdso/office365-mcp-serverRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"office365-mcp-server": {
"args": [
"-y",
"@leonardocrdso/office365-mcp-server"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
Step-by-step: install Office365 MCP Server in Claude Desktop
{
"mcpServers": {
"office365-mcp-server": {
"args": [
"-y",
"@leonardocrdso/office365-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"office365-mcp-server": {
"args": [
"-y",
"@leonardocrdso/office365-mcp-server"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add office365-mcp-server -- npx -y @leonardocrdso/office365-mcp-server{
"mcpServers": {
"office365-mcp-server": {
"args": [
"-y",
"@leonardocrdso/office365-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install Office365 MCP Server in Antigravity CLI
gemini mcp add office365-mcp-server npx -y @leonardocrdso/office365-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 office365-mcp-server block.
About
Office365 MCP Server is a Model Context Protocol (MCP) server for Microsoft 365. It lets an AI assistant interact with Outlook, Calendar, OneDrive, SharePoint and Teams via the Microsoft Graph API. It provides tools for authentication, mail, calendar events, files, SharePoint sites and Teams, including sending email, creating events, uploading files and sending Teams messages.
Setup requires an Azure app registration whose client ID is set as AZURE_CLIENT_ID, with delegated Microsoft Graph permissions and public client flows enabled. Authentication uses Device Code Flow, and tokens are cached locally. The optional OFFICE365_MCP_HOME variable keeps config and tokens in a separate directory, which allows several isolated instances, for example one per agent. The package runs with npx and is released under the MIT license. It is aimed at users who want Microsoft 365 access from an AI assistant.
Written from the project's README and checked against it.
Tools it gives your assistant
list-emailsList emails from Outlook, either the inbox or a specific folder.search-emailsSearch emails for one exact phrase, optionally within a received date window.send-emailSend a new email, optionally with local file attachments up to 150 MB each.list-eventsList calendar events in a date range.create-eventCreate a new event or meeting, optionally with local file attachments.find-free-slotsCheck availability for meeting attendees.list-drive-filesList files and folders in OneDrive.upload-drive-fileUpload a local file to OneDrive or a SharePoint drive.share-fileCreate a sharing link for a file.send-channel-messageSend a message to a Teams channel.
What you need
- An Azure app registration with an Application (client) ID
- Microsoft Graph delegated permissions granted in Azure
- Admin consent for ChannelMessage.Read.All if reading channel messages
- A Microsoft 365 account
Try asking
- Search my Outlook emails for the phrase 'budget review' from last month.
- Check free slots for me and three colleagues next Tuesday afternoon.
- Upload this local report to my OneDrive and create a sharing link.
Good to know
- Reading channel messages and their files needs admin consent for ChannelMessage.Read.All, otherwise it returns 403.
- The upload-file tool accepts text files up to 4MB.
- Downloaded files are removed about an hour after download.
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
Alternatives to Office365 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
Office365 MCP Server: common questions
Does Office365 MCP Server need an Azure app registration?
Yes. The source says to create an app registration in Microsoft Entra ID, allow public client flows, add delegated Graph permissions and use its client ID as AZURE_CLIENT_ID.
Can I run several Microsoft 365 accounts or agents at once?
Yes. Setting OFFICE365_MCP_HOME to a separate directory for each instance keeps config and token storage isolated, so auth does not leak between them.
Where are files downloaded by the server stored?
They go to a downloads folder inside OFFICE365_MCP_HOME, or to the system temp dir if that variable is not set. Files are capped at 100 MB and removed about an hour after download.
How do I install Office365 MCP Server?
In Claude Code run claude mcp add office365-mcp-server -- npx -y @leonardocrdso/office365-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Office365 MCP Server the official server?
Office365 MCP Server is published by npm:@leonardocrdso from its verified domain in the official MCP Registry.
Is Office365 MCP Server free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Office365 MCP Server safe to use?
It scores 56 of 100. Grades: maintenance B, 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 Office365 MCP Server?
Similar MCP servers: LearnHouse, Agent-Native Calendar, Agent-Native Clips, Agent-Native Slides.
Does Office365 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.
