MCP.Market

CLI Microsoft365 MCP server

by pnp·io.github.pnp/cli-microsoft365-mcp-server·v0.1.22·133 stars

MCP server for CLI for Microsoft 365 to manage your tenant using natural language

A94/100grade A
What users say
No reviews yet
Be the first
Safety scan
A94/100

full report

Adoption
Growing

133 stars

Reviews

Write one

Nobody has reviewed CLI Microsoft365 yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

CLI Microsoft365 tools (4, 1 write)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • m365_get_best_practices

    Gets best practices for using CLI for Microsoft 365 in scripts, including guidance on authentication checking, error handling, output handling, and configuration

  • m365_get_command_docs

    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

  • m365_run_commandwrite action

    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

  • m365_search_commands

    Searches CLI for Microsoft 365 commands using fuzzy search based on a query string. Use this tool first to find relevant commands before getting full command documentation.

Public scan report

scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it

no findings
  • Code scan6 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitylocal package, no credentials required12/15
  • Maintenancelast push 6 days ago15/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year9/10
Overall 94/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How CLI Microsoft365 compares

Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
94/100
higher than 96% of 48,255 servers
Tools
4
the typical server has 7
Tools that change things
25%
typical: 0%. Fewer write tools means less an agent can break
GitHub stars
133
more than 95% of 28,688 servers

What its tools let an agent do: 3 read · 1 change

Install CLI Microsoft365 in Claude Code, Cursor or VS Code

Runs npx -y @pnp/cli-microsoft365-mcp-server on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add cli-microsoft365-mcp-server -- npx -y @pnp/cli-microsoft365-mcp-server
Add to Cursor

What the publisher says

From the CLI Microsoft365 repository's README, as published. We do not edit it. Read it on GitHub

CLI for Microsoft 365 MCP Server

💡 Description

This MCP server allows the use of natural language to execute any CLI for Microsoft 365 commands. It may handle complex prompts that will be executed as a chain of CLI for Microsoft 365 commands that will try to fulfill the user's request. Thanks to this, you may manage many different areas of Microsoft 365, for example: Entra ID, OneDrive, OneNote, Outlook, Planner, Power Apps, Power Automate, Power Platform, SharePoint Embedded, SharePoint Online, Teams, Viva Engage, and many more...

For best results, use it with Claude Sonnet 4 or Claude Sonnet 3.7.

📦 Prerequisites

  • Node.js 20.x or higher
  • CLI for Microsoft 365 installed globally (npm i -g @pnp/cli-microsoft365)

🚀 Installation & Usage

👉 Check out the CLI for Microsoft 365 MCP Server Guide

👉 Check out the Getting Started recording 🎬

This MCP server uses the globally installed CLI for Microsoft 365 that you need to install globally using npm i -g @pnp/cli-microsoft365.

After you install the CLI for Microsoft 365 perform the initial setup by running the:

m365 setup

For more information, please follow the Log in to Microsoft 365

After you set up the CLI for Microsoft 365, please update its configuration using the following commands:

m365 cli config set --key prompt --value false
m365 cli config set --key output --value text
m365 cli config set --key helpMode --value full

This will ensure that the MCP server will get as much information as possible from the CLI for Microsoft 365 when an error occurs or when a command is not executed properly.

The MCP server will not do any authentication for you. You will need to first authenticate using CLI for Microsoft 365 using m365 login command. Once you are authenticated, the MCP server will use the same authentication context when running any tool.

Lastly, install the MCP server on your preferred MCP client, referring to the instructions of the picked MCP host. Below, you may find guidance for VS Code.

Add to VS Code

There are multiple ways to add the MCP server to VS Code. The most common way is to:

  1. Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on macOS) and type MCP: Add Server.
  2. Select Command (stdio) as the server type.
  3. Enter the command to run the MCP server, which is:
npx -y @pnp/cli-microsoft365-mcp-server@latest
  1. Name the server (e.g., CLI for Microsoft 365 MCP Server).

As a result, you should have the following configuration in your .vscode/mcp.json file:

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

CLI Microsoft365: common questions

Is CLI Microsoft365 MCP server safe?
Yes, by our scan: it is graded A (94/100). Read the CLI Microsoft365 safety report
How do I install CLI Microsoft365?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does CLI Microsoft365 need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is CLI Microsoft365 maintained?
The last commit was 44 days ago (2026-09-21). The latest release is v0.1.22.
How does CLI Microsoft365 compare with other MCP servers?
safety score 94/100 (higher than 96% of 48,255 servers); tools 4 (the typical server has 7); tools that change things 25% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.