Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 85
  • 140 stars
  • 2.7k a week
  • MIT
  • Updated

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-server

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install cli-microsoft365-mcp-server in Claude Code

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

A

No 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 →

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.

cli-microsoft365-mcp-server Install

Add to stack

Loading.