m365SearchCommands
Searches CLI for Microsoft 365 commands using fuzzy search based on a query string. This is more efficient than getting all commands as it returns only relevant matches. Use this tool first to find relevant commands.
How to use it
m365SearchCommands 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 m365SearchCommands 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@latestOther tools in Cli Microsoft365 MCP Server (3)
Gets best practices for using CLI for Microsoft 365 in scripts, including guidance on authentication checking, error handling, output handling, and configuration
Gets documentation for a specified CLI for Microsoft 365 command to be used by the Model Context Protocol to provide detailed information about the command along with examples, use cases, and option descriptions
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