Skip to content
appsgit

CLI Microsoft365 MCP Server

CLI Microsoft365 MCP Server is an MCP server that adds messaging tools to AI assistants such as Claude Desktop, Claude Code and Cursor. MCP server for CLI for Microsoft 365 to manage your tenant using natural language. It has 131 GitHub stars, is released under the MIT license and runs locally with npx -y @pnp/cli-microsoft365-mcp-server.

github.com/pnp/cli-microsoft365-mcp-server (opens in a new tab)

Install CLI Microsoft365 MCP Server

Generated from the server's MCP registry entry. Replace your-value with your own values.

Claude Desktop

claude_desktop_config.json
{
  "mcpServers": {
    "cli-microsoft365-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@pnp/cli-microsoft365-mcp-server"
      ]
    }
  }
}

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

Claude Code

claude mcp add --transport stdio cli-microsoft365-mcp-server -- npx -y @pnp/cli-microsoft365-mcp-server

Cursor

.cursor/mcp.json
{
  "mcpServers": {
    "cli-microsoft365-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@pnp/cli-microsoft365-mcp-server"
      ]
    }
  }
}

Project file; use ~/.cursor/mcp.json to enable it in every project.

VS Code

.vscode/mcp.json
{
  "servers": {
    "cli-microsoft365-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@pnp/cli-microsoft365-mcp-server"
      ]
    }
  }
}

Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).

About CLI Microsoft365 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, Power Automate, Power Platform, SharePoint Embedded, SharePoint Online, Teams, Viva Engage, and many more...

  • mcp
  • microsoft365
  • hacktoberfest

FAQ

CLI Microsoft365 MCP Server FAQ

Still curious? Email info@appsgit.com.

What is CLI Microsoft365 MCP Server?

CLI Microsoft365 MCP Server is an MCP server that adds messaging tools to AI assistants such as Claude Desktop, Claude Code and Cursor. MCP server for CLI for Microsoft 365 to manage your tenant using natural language. It has 131 GitHub stars, is released under the MIT license and runs locally with npx -y @pnp/cli-microsoft365-mcp-server. The source code is at github.com/pnp/cli-microsoft365-mcp-server.

How do I install the CLI Microsoft365 MCP Server MCP server?

Add the command npx -y @pnp/cli-microsoft365-mcp-server to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.

Is CLI Microsoft365 MCP Server free?

The server is open source under the MIT license, so running it is free. It does not declare any required API key.

Is CLI Microsoft365 MCP Server actively maintained?

The most recent commit was on Aug 28, 2026. appsgit only lists MCP servers with a commit in the last six months and re-checks every server daily.