Microsoft 365

Microsoft 365

MCP server to interact with Microsoft 365 services via Graph API.

351
Stars
119
Forks
20
Releases

Overview

This MCP server enables programmatic interaction with Microsoft 365 and Office services through the Microsoft Graph API. It provides authentication via the Microsoft Authentication Library (MSAL) and supports multiple authentication modes, including device code flow, OAuth authorization code flow in HTTP mode, and an BYOT option for supplying a pre-existing token. The server exposes a broad set of tools for personal accounts (email, calendar, OneDrive, Excel, OneNote, To Do, Planner, contacts, user profile, and search) and, when enabled with organization/work mode, access to Teams & Chats, SharePoint, shared mailboxes, and user management. Output can be configured to JSON or an experimental TOON format to reduce token usage. It supports read-only mode for safe operations and tool filtering via regex patterns or presets to control which tools are available. The server can operate in stdio mode or via a streamable HTTP interface, has presets for common tool groups, and includes guidance for integrating with Claude Desktop and other MCP clients. It requires appropriate Azure AD configuration or BYOT for HTTP mode.

Details

Owner
softeria
Language
TypeScript
License
MIT License
Updated
2025-12-07

Features

Authentication via MSAL

Uses the Microsoft Authentication Library to authenticate against Microsoft Graph API, enabling secure access to services.

Comprehensive Microsoft 365 service integration

Integrates a broad set of Microsoft 365/Office services (mail, calendar, files, notes, tasks, contacts, search) via the Graph API.

Read-only mode

Supports starting the server in read-only mode to disable write operations for safe usage.

Tool filtering and access control

Allows enabling a subset of tools via regex patterns or presets for granular control over available functionality.

Output formats

Supports standard JSON output by default and an experimental TOON format for token-efficient responses.

Organization/work mode

Can enable organization/work mode (--org-mode) to access work/school features like Teams and SharePoint.

Tool presets

Provides presets (e.g., mail, calendar, files) and a discovery option to reduce initialization overhead by loading only selected tools.

Audience

DevelopersBuild applications or workflows that interact with Microsoft 365 services via Graph API using the MCP server.
IT / Work adminsOperate in organization/work mode to manage Teams, SharePoint, and user management features through the MCP server.

Tags

Microsoft 365MCPGraph APIMSALOutlookOneDriveExcelCalendarOneNoteTo DoPlannerContactsUser ProfileSearchTeamsSharePointOrganization modeTOONJSONOAuthDevice Code FlowBYOTCLITool PresetsRead-only