CLI Microsoft365 MCP Server
CLI for Microsoft 365 MCP Server 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…. Its 4 documented tools cluster into m365search commands, m365get command docs, m365run command, m365get best practices.
People connecting this server to Claude, Cursor, VS Code, or another MCP client. The project is written in TypeScript.
VERIFIED ACTIVE
LAST COMMIT 2026-08-17 · ★ 126 · #51 OF 848 MAINTAINED OTHER · VERIFIED 2026-08-25
MIT · TypeScript servers · how we verify → /methodology
01 · Install CLI Microsoft365 MCP Server
Claude Code
claude mcp add pnp-cli-microsoft365-mcp-server -- npx -y @pnp/cli-microsoft365-mcp-server Claude Desktop / Cursor / VS Code - add to config
{
"mcpServers": {
"pnp-cli-microsoft365-mcp-server": {
"command": "npx",
"args": [
"-y",
"@pnp/cli-microsoft365-mcp-server"
]
}
}
} Same JSON for Cursor. For VS Code, rename the top-level key from `mcpServers` to `servers`.
Using another client? Same JSON, different key
Claude Desktop · mcpServers
Cursor · mcpServers
VS Code · servers
Windsurf · mcpServers
Zed · context_servers
Cline · mcpServers
Roo Code · mcpServers
Continue · mcpServers
LibreChat · mcpServers
Gemini CLI · mcpServers
Codex CLI · mcp_servers
Full setup guides: every client.
02 · Evidence
Security posture
What to check before giving this server access to your agent - from the registry, GitHub, and our own probes. We don't score safety; we show what's verifiable.
runs as local process (stdio) - runs on your machine with your user's permissions
license MIT - declared in the repository
npm package @pnp/cli-microsoft365-mcp-server - published under the repo owner's npm scope (@pnp)
registry namespace io.github.pnp is GitHub-verified and matches the repo owner
03 · What CLI Microsoft365 MCP Server can do
Prose above is summarized from the project's README and registry record - no invented capabilities.
What you can build
An agent gets 4 documented tools across m365search commands, m365get command docs, m365run command, including m365SearchCommands, m365GetCommandDocs, m365RunCommand, m365GetBestPractices.
Capability map
Tools grouped from the project's README - what CLI Microsoft365 MCP Server lets an agent do.
M365search Commands
1 tool - e.g. Searches CLI for Microsoft 365 commands using fuzzy search based on a query string. This is more efficient than getting all commands as it returns only relevant
m365SearchCommands
M365get Command Docs
1 tool - e.g. 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 alon
m365GetCommandDocs
M365run Command
1 tool - e.g. 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 respons
m365RunCommand
M365get Best Practices
1 tool - e.g. Gets best practices for using CLI for Microsoft 365 in scripts, including guidance on authentication checking, error handling, output handling, and configuratio
m365GetBestPractices
04 · Who maintains CLI Microsoft365 MCP Server
cli-microsoft365-mcp-server is maintained by pnp. It's the only MCP server we track from this author; the repo dates to Apr 2025.
05 · Facts
- repository
- github.com/pnp/cli-microsoft365-mcp-server
- category
- other - ranked #51 of 848 actively-maintained other servers as of 2026-08-25.
- registry
- io.github.pnp/cli-microsoft365-mcp-server (active, first published 2026-04-12 · 4 versions)
- packages
- npm:@pnp/cli-microsoft365-mcp-server
06 · CLI Microsoft365 MCP Server FAQ
Is CLI Microsoft365 MCP Server still maintained?
Yes - as of 2026-08-25, its last commit was 2026-08-17. We re-verify nightly.
What can CLI Microsoft365 MCP Server do?
An agent gets 4 documented tools across m365search commands, m365get command docs, m365run command, including m365SearchCommands, m365GetCommandDocs, m365RunCommand, m365GetBestPractices.
How do I install CLI Microsoft365 MCP Server?
Run `npx -y @pnp/cli-microsoft365-mcp-server`. You can also paste the ready-made client config above.
Does CLI Microsoft365 MCP Server run locally?
Yes - it's a stdio server: it runs on your machine (via npx) with your user's permissions. Your data stays local unless the server itself calls external APIs.
07 · Alternatives to CLI Microsoft365 MCP Server
Alternatives to CLI Microsoft365 MCP Server
Maintained other servers if CLI Microsoft365 MCP Server isn't the fit.
- Heyputer MCP Server Puter MCP enables AI tools to interact with Puter: manage files, websites, workers, and more ★ 43,204 · 2026-08-24
- Server Commands An MCP server to run arbitrary commands ★ 38,704 · 2026-08-05
- Zotero MCP (54yyyu) Search, read, annotate, and add to your Zotero research library, local or web. ★ 4,780 · 2026-08-25
- Firebase MCP Gives AI development tools Firebase-specific capabilities and expertise. ★ 4,460 · 2026-08-25
- Microsoft Fabric MCP Server MCP tools for interacting with Microsoft Fabric ★ 3,598 · 2026-08-21
- Ship Swift 40+ production-ready SwiftUI recipes for building full-stack iOS apps via MCP. ★ 2,968 · 2026-08-09
More MCP servers to compare · Litmus · Port · Posecode MCP · Tracebug · Context Bridge
More TypeScript MCP servers · Pocketlantern · Opendock · Posteverywhere MCP Server · see all