MCPVault

m365RunCommand

MCP tool from Cli Microsoft365 MCP Server by pnp

Runs a specified CLI for Microsoft 365 command to be used by the Model Context Protocol to execute the command and return the result and reason over the response

How to use it

m365RunCommand is exposed by the Cli Microsoft365 MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the m365RunCommand tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

Install Cli Microsoft365 MCP Server

$npx -y @pnp/cli-microsoft365-mcp-server@latest
FULL CLI MICROSOFT365 MCP SERVER LISTING