Microsoft 365

Microsoft 365

Natural language MCP server to execute and chain Microsoft 365 CLI commands.

54
Stars
13
Forks
0
Releases

Overview

This MCP server provides a natural language interface to execute any CLI for Microsoft 365 commands. It can parse and fulfill user requests by breaking them down into a sequence of CLI for Microsoft 365 commands (a chain) when necessary, enabling complex tasks to be accomplished as a series of steps. Through this capability, you can manage many different areas of Microsoft 365, including Entra ID, OneDrive, OneNote, Outlook, Planner, Power Apps, Power Automate, Power Platform, SharePoint Embedded, SharePoint Online, Teams, Viva Engage, and more. The server relies on the globally installed CLI for Microsoft 365; it does not perform authentication by itself and users must login using m365 login to provide the authentication context. Once authenticated, the MCP server uses the same context when running any tool. It exposes tooling for the Model Context Protocol (via m365GetCommands, m365GetCommandDocs, and m365RunCommand) to discover commands, fetch documentation, and execute commands with results and reasoning. The project also includes guidance for integrating the MCP server with VS Code, GitHub Copilot CLI, and Claude Desktop to simplify adoption and testing in common workflows.

Details

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

Features

Natural language execution of CLI for Microsoft 365

Allows using natural language prompts to trigger and run CLI for Microsoft 365 commands.

Command chaining for complex prompts

Handles complex requests by executing a chain of CLI for Microsoft 365 commands to fulfill the user’s goal.

Wide Microsoft 365 coverage

Supports managing Entra ID, OneDrive, OneNote, Outlook, Planner, Power Apps, Power Automate, Power Platform, SharePoint Embedded, SharePoint Online, Teams, Viva Engage, and more.

Model Context Protocol tooling

Provides m365GetCommands, m365GetCommandDocs, and m365RunCommand to help the model discover commands, fetch docs, and execute commands with results and reasoning.

Authentication guidance

The MCP server does not authenticate users itself; users must login with m365 login and the server uses that authentication context.

Easy integration with VS Code, Copilot CLi, and Claude

Includes clear guidance and setup for adding the MCP server to VS Code, GitHub Copilot CLI, and Claude Desktop.

Local run & debugging support

Run locally via npm run start or from dist/index.js with Node; supports debugging with MCP Inspector for local testing.

LLM compatibility guidance

Provides recommendations for pairing with suitable LLMs (e.g., Claude Sonnet 4 or Claude Sonnet 3.7) for best results.

Audience

DevelopersBuild and test MCP server integrations with Copilot and Claude workflows.
IT AdminsCoordinate cross-service Microsoft 365 tasks using natural language prompts effectively.
Power UsersAutomate common tasks across M365 via natural language interactions daily.

Tags

natural-languageMCP-serverCLI-for-Microsoft-365Microsoft-365multi-area-managementSharePointTeamsPower-PlatformOneDriveEntra-ID