Microsoft 365 MCP Server
@pnp
About Microsoft 365 MCP Server
Manage Microsoft 365 using MCP server
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"CLI-Microsoft365": {
"command": "npx",
"args": [
"-y",
"@pnp/cli-microsoft365-mcp-server@latest"
]
}
}
}Tools
No tools detected
Fetch the live tool list by running this server in a temporary sandbox using the button above.
Overview
What is Microsoft 365 MCP Server?
An MCP server that lets you manage Microsoft 365 services using natural language. It translates prompts into CLI for Microsoft 365 commands, covering Entra ID, OneDrive, OneNote, Outlook, Planner, Power Apps, Power Automate, Power Platform, SharePoint Online, Teams, Viva Engage, and more. Best results are achieved with Claude Sonnet 4 or Claude Sonnet 3.7.
How to use Microsoft 365 MCP Server?
- Install Node.js 20+ and globally install CLI for Microsoft 365 (
npm i -g @pnp/cli-microsoft365). - Run
m365 setup, then log in withm365 login. - Configure CLI for best MCP support:
m365 cli config set --key prompt --value false,--key output --value text,--key helpMode --value full. - Add the server to your MCP client (VS Code, Claude Desktop, Cursor, etc.) using the command
npx -y @pnp/cli-microsoft365-mcp-server@latest. - Start chatting – for example, prefix prompts with “Using CLI for Microsoft 365, I want you to...”.
Key features of Microsoft 365 MCP Server
- Execute any CLI for Microsoft 365 command via natural language
- Chain multiple commands to fulfill complex requests
- Fuzzy search commands with
m365SearchCommands - Get detailed command documentation with
m365GetCommandDocs - Run commands with
m365RunCommandand see results - Retrieve best practices for scripting with
m365GetBestPractices - Built‑in GitHub Copilot skills for interactive or script‑based use
Use cases of Microsoft 365 MCP Server
- Create SharePoint lists with columns and populate test items
- Provision new Microsoft Teams teams with welcome posts
- Disable or enable Power Automate flows without manual navigation
- Set up Planner plans with buckets and sample tasks
- Automate any Microsoft 365 management task using natural language
FAQ from Microsoft 365 MCP Server
What runtime and dependencies are required?
Node.js 20.x or higher and a global installation of CLI for Microsoft 365 (@pnp/cli-microsoft365) are required.
How does authentication work?
The MCP server does not handle authentication. You must first authenticate using m365 login in CLI for Microsoft 365; the server then reuses that authenticated context.
What Microsoft 365 services can this server manage?
It can manage Entra ID, OneDrive, OneNote, Outlook, Planner, Power Apps, Power Automate, Power Platform, SharePoint Embedded, SharePoint Online, Teams, Viva Engage, and many other areas covered by CLI for Microsoft 365.
Which transport protocol does the server use?
The server communicates over stdio using a command‑based interface. It is added to MCP clients as a stdio type with the command npx -y @pnp/cli-microsoft365-mcp-server@latest.
Are there any configuration steps for best performance?
Yes. Set CLI configuration to prompt false, output text, and helpMode full so the server receives maximum detail when errors or unexpected results occur.
Frequently asked questions
What runtime and dependencies are required?
Node.js 20.x or higher and a global installation of CLI for Microsoft 365 (`@pnp/cli-microsoft365`) are required.
How does authentication work?
The MCP server does not handle authentication. You must first authenticate using `m365 login` in CLI for Microsoft 365; the server then reuses that authenticated context.
What Microsoft 365 services can this server manage?
It can manage Entra ID, OneDrive, OneNote, Outlook, Planner, Power Apps, Power Automate, Power Platform, SharePoint Embedded, SharePoint Online, Teams, Viva Engage, and many other areas covered by CLI for Microsoft 365.
Which transport protocol does the server use?
The server communicates over stdio using a command‑based interface. It is added to MCP clients as a `stdio` type with the command `npx -y @pnp/cli-microsoft365-mcp-server@latest`.
Are there any configuration steps for best performance?
Yes. Set CLI configuration to `prompt false`, `output text`, and `helpMode full` so the server receives maximum detail when errors or unexpected results occur.
Basic information
More Developer Tools MCP servers

Rams
HSLA0001 Inc.Design review for UI code, inside your agent. One tool (review_files): up to 20 files in, a scored review out — 0–100, issues with severity and file:line, a concrete fix for each. 258 versioned rules across accessibility
TalkToFigma
sonnylazuardiTalkToFigma: MCP integration between AI Agent (Cursor, Claude Code, Codex) and Figma, allowing Agentic AI to communicate with Figma for reading designs and modifying them programmatically.
MCP Containers
metorialConnect any AI model to 1200+ integrations (MCP, CLI, API)

Meticulous
MeticulousMCP server and skills to connect to the Meticulous UI testing platform.
Altronis
sypherinMCP server + CLI for Altronis — Singapore AI consulting. Ask the Lyra consultant, generate a grant-matched AI transformation plan, pull curated SG AI events/news. Read-only, wraps altronis.sg.
Comments