cli-microsoft365-mcp-server
MCP server by pnp Community
CLI for Microsoft 365 MCP Server lets AI assistants run Microsoft 365 management tasks from natural language requests. It covers areas such as Entra ID, SharePoint Online, Teams and Power Platform, and suits people who manage a Microsoft 365 tenant.
Install cli-microsoft365-mcp-server
Built from the published package, never by AI.
claude mcp add cli-microsoft365-mcp-server -- npx -y @pnp/cli-microsoft365-mcp-serverRun in your terminal. Add --scope user to use it in every project.
Step-by-step: install cli-microsoft365-mcp-server in Claude Code
{
"mcpServers": {
"cli-microsoft365-mcp-server": {
"args": [
"-y",
"@pnp/cli-microsoft365-mcp-server"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
Step-by-step: install cli-microsoft365-mcp-server in Claude Desktop
{
"mcpServers": {
"cli-microsoft365-mcp-server": {
"args": [
"-y",
"@pnp/cli-microsoft365-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"cli-microsoft365-mcp-server": {
"args": [
"-y",
"@pnp/cli-microsoft365-mcp-server"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
Step-by-step: install cli-microsoft365-mcp-server in VS Code
codex mcp add cli-microsoft365-mcp-server -- npx -y @pnp/cli-microsoft365-mcp-server{
"mcpServers": {
"cli-microsoft365-mcp-server": {
"args": [
"-y",
"@pnp/cli-microsoft365-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install cli-microsoft365-mcp-server in Antigravity CLI
gemini mcp add cli-microsoft365-mcp-server npx -y @pnp/cli-microsoft365-mcp-serverGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
Step-by-step: install cli-microsoft365-mcp-server in Gemini CLI
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the cli-microsoft365-mcp-server block.
About
CLI for Microsoft 365 MCP Server lets an AI assistant carry out Microsoft 365 management tasks from natural language. According to the source, a complex prompt may be executed as a chain of CLI for Microsoft 365 commands that try to fulfill the user's request. The source names areas including Entra ID, OneDrive, OneNote, Outlook, Planner, Power Apps, Power Automate, Power Platform, SharePoint Embedded, SharePoint Online, Teams and Viva Engage.
The server uses the globally installed CLI for Microsoft 365 and does not handle authentication itself. Users sign in first with the m365 login command, and the server then uses the same authentication context. It is started with npx and can be added to clients such as VS Code, GitHub Copilot CLI, Claude Desktop and Cursor. It is intended for people who want to manage Microsoft 365 using natural language.
Written from the project's README and checked against it.
Tools it gives your assistant
m365SearchCommandsSearches CLI for Microsoft 365 commands using fuzzy search based on a query string.m365GetCommandDocsGets documentation for a specified CLI for Microsoft 365 command, including examples and option descriptions.m365RunCommandRuns a specified CLI for Microsoft 365 command and returns the result for the model to reason over.m365GetBestPracticesGets best practices for using CLI for Microsoft 365 in scripts, including authentication and error handling.
What you need
- Node.js 20.x or higher
- CLI for Microsoft 365 installed globally
- Microsoft 365 authentication through m365 login
Try asking
- Create a new Team on Teams named Awesome Ducks and add a welcome post
- Check whether I have a HoursReportingReminder flow and disable it
- Create a new Planner plan with sample buckets and tasks
Good to know
- The MCP server does not perform authentication. Users must sign in with CLI for Microsoft 365 first.
- The source says best results come with Claude Sonnet 4 or Claude Sonnet 3.7.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to cli-microsoft365-mcp-server
All alternatives →Jitsu MCP server lets AI assistants configure and operate Jitsu data pipelines. It covers destinations, streams, connections and functions, plus Live Events and connector syncs. It is aimed at teams that run event data pipelines.
Vexa sends a bot into Google Meet, Microsoft Teams, Zoom and Jitsi calls to capture speaker-labelled transcripts live or after the call. It suits teams that want meeting transcripts they can self-host.
Gives Claude and other MCP-compatible AI agents access to LinkedIn through your own browser session. It reads profiles, researches companies, finds jobs, and manages messages and connection requests.
Runs a NetSapiens phone system from Claude, ChatGPT, or any MCP client. Each person signs in as themselves, and their assistant gets role-aware tools for calls, voicemail, queues, and provisioning.
Resend MCP Server connects AI assistants to the Resend email platform. It lets them send and receive emails and manage contacts, broadcasts, templates, and domains. It suits developers and teams who use MCP clients such as Claude or Cursor.
The source does not describe labelhead-artist-momentum. It is a README for Paperclip, an open-source orchestration app for teams of AI agents.
Compare with Jitsu, Vexa or Linkedin MCP server
cli-microsoft365-mcp-server: common questions
Does the server handle Microsoft 365 sign-in?
No. The source says the server does not authenticate for you. You sign in with CLI for Microsoft 365 using m365 login, and the server uses that same context.
Which AI models does the project recommend?
The source recommends Claude Sonnet 4 or Claude Sonnet 3.7 for best results.
Can it handle multi-step requests?
Yes. The source says complex prompts may run as a chain of CLI for Microsoft 365 commands that try to fulfill the request.
How do I install cli-microsoft365-mcp-server?
In Claude Code run claude mcp add cli-microsoft365-mcp-server -- npx -y @pnp/cli-microsoft365-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is cli-microsoft365-mcp-server the official server?
cli-microsoft365-mcp-server is a community project by pnp, not verified by a company domain.
Is cli-microsoft365-mcp-server free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is cli-microsoft365-mcp-server safe to use?
It scores 85 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to cli-microsoft365-mcp-server?
Similar MCP servers: Jitsu, Vexa, Linkedin MCP server, Netsapiens MCP.
Does cli-microsoft365-mcp-server work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
