Microsoft 365 MCP Server
Lets your AI agent work with Outlook mail, calendar, OneDrive, Excel, OneNote, To Do and more through Microsoft Graph.
1.1k stars on GitHubby SofteriaLicense MITUpdated 19 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add ms-365 -- npx -y @softeria/ms-365-mcp-server
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Show me my unread emails from today.
What meetings do I have tomorrow?
What it is
This server connects your AI agent to Microsoft 365 using the Microsoft Graph API. It offers 300+ tools. Personal account tools include email, calendar, files, Excel, OneNote, To Do, Planner and contacts, and organization mode adds Teams, SharePoint and more.
What it can do
- Read and send Outlook email, and manage calendar events
- Work with OneDrive files and Excel workbooks
- Use OneNote, To Do, Planner and contacts
- Organization mode: Teams chats, online meetings, SharePoint sites and lists
- Read-only mode with
--read-only - Narrow the tools with
--presetor--enabled-tools
When to use
- βΊWhen you want your agent to find an email or a meeting in your Microsoft 365 account
- βΊWhen you want a safe read-only connection to your files and calendar
- βΊWhen your company must pre-approve Graph permissions and you need the exact list
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
msgraph-sdkHelps your agent access Microsoft 365 data. It can connect to users, emails, calendars, and files.m365-agents-dotnetAllows creating AI agents for Microsoft 365 using .NET. It helps build assistants that work across different channels like Teams.ms365-tenant-managerHelps your agent administer a Microsoft 365 tenant, including users, email, Teams, licenses, sign-in policies and compliance reports.Frequently asked questions
Is it free and open source?
Yes, it is an open source npm package under a LICENSE file. You need a Microsoft 365 account for the data it reaches.
Can I make it read-only?
Yes. Use read-only mode, and tools that need write access are hidden.
Which clouds are supported?
Global (default), China operated by 21Vianet, and GCC High for US Government.
Which permissions does it ask for?
Permissions are requested based on the tools enabled. Run it with --list-permissions to see the exact list, and add --org-mode or --preset to see other setups.
Can I limit the scopes?
Yes. --allowed-scopes or MS365_MCP_ALLOWED_SCOPES hides tools whose scopes are not covered.
Does it save tokens?
There is an experimental TOON output format that the readme says uses 30-60% fewer tokens than JSON for uniform lists.
If it does not work
- βΊCheck node -v shows 20 or newer.
- βΊIf Teams or SharePoint tools are missing, start the server with --org-mode.
- βΊIf your admin must approve permissions, run --list-permissions and send them the exact list.
5 new skills a week. 1 minute to read.