ms-365
A Model Context Protocol (MCP) server for interacting with Microsoft 365 and Office services through the Graph API
claude mcp add --transport stdio softeria-ms-365-mcp-server npx -y @softeria/ms-365-mcp-server
How to use
This MCP server provides a programmable interface to interact with Microsoft 365 services through the Microsoft Graph API. It supports a range of Microsoft 365 features such as email, calendar, OneDrive, Excel, OneNote, Planner, and user/profile queries, with additional organization/work account features accessible by enabling organization mode. By running the server with npx, Claude Desktop or Claude Code CLI integrations can issue MCP commands to list, get, create or modify resources across personal and organizational Microsoft accounts. The server also supports an experimental TOON output format to reduce token usage when consuming large lists of results. To switch between output formats, you can enable toon mode globally via CLI flags or environment variables as described in the integration guides.
How to install
Prerequisites:
- Node.js v20 or newer (Node.js 14+ may work with warnings)
- npm (included with Node.js) or pnpm/yarn as desired
Installation steps:
- Install Node.js 20+ from the official source if you haven’t already.
- Use npx to run the MCP server directly from the package registry without a local install:
npx -y @softeria/ms-365-mcp-server
- (Optional) Install locally or globally if you prefer a persistent setup:
npm install -g @softeria/ms-365-mcp-server
# then run with:
ms365-mcp-server
- To enable organization/work mode features (work/school accounts) add the --org-mode flag when starting:
npx -y @softeria/ms-365-mcp-server --org-mode
- To enable the experimental TOON output format globally via CLI:
npx @softeria/ms-365-mcp-server --toon
- Refer to Claude Desktop/Code CLI integration examples in the README to wire this MCP server into your workflow.
Additional notes
Tips and notes:
- Default output format is JSON; TOON is experimental and reduces token usage for large data sets.
- You can enable organization mode (--org-mode) to access Teams, SharePoint, and related organization-level features.
- Environment variable MS365_MCP_OUTPUT_FORMAT can override output format, e.g., MS365_MCP_OUTPUT_FORMAT=toon npx @softeria/ms-365-mcp-server
- For Claude Desktop integration, you can embed the command and arguments exactly as shown in the README examples for personal or work accounts.
- If you encounter permissions or scope issues, ensure the signed-in Microsoft account has the appropriate Graph API permissions and, for shared mailboxes, that delegation and Exchange permissions are configured.
Related MCP Servers
iterm
A Model Context Protocol server that executes commands in the current iTerm session - useful for REPL and CLI assistance
mcp
Octopus Deploy Official MCP Server
furi
CLI & API for MCP management
editor
MCP Server for Phaser Editor
DoorDash
MCP server from JordanDalton/DoorDash-MCP-Server
mcp
MCP сервер для автоматического создания и развертывания приложений в Timeweb Cloud