Back to Home
pnp icon

cli-microsoft365-mcp-server

by pnp

Overview

This MCP server allows users to execute CLI for Microsoft 365 commands using natural language, enabling management of various Microsoft 365 services like SharePoint, Teams, and Power Platform.

Installation

Run Command
npx -y @pnp/cli-microsoft365-mcp-server@latest

Security Notes

The server uses `child_process.spawn` with `shell: true` to execute AI-generated commands, which introduces a significant command injection risk if the upstream AI model or user prompt can be manipulated to execute arbitrary shell commands beyond the intended 'm365' CLI. There is no explicit sanitization or whitelist of commands within the server's source code. The server operates with the full permissions of the globally authenticated `m365` CLI user, meaning a successful exploit could lead to arbitrary code execution or data manipulation on the host system.

Similar Servers

Stats

Interest Score47
Security Score4
Cost ClassHigh
Avg Tokens5000
Stars62
Forks17
Last Update2026-01-12

Tags

Microsoft365SharePointOnlineCLIAI-AssistantModel-Context-Protocol