Install
openclaw skills install @sam2kb/m365-mcpProduction-grade Microsoft 365 MCP server with delegated OAuth, multi-account support, pagination, rate limiting, and 43 tools covering email, calendar, contacts, OneDrive, Teams, tasks, and users.
openclaw skills install @sam2kb/m365-mcpProduction-grade Microsoft 365 MCP server combining the best of office365-connector (delegated OAuth, multi-account) and mcp-microsoft365 (MCP protocol, full scope), with production-ready features: pagination, rate limiting, retry logic, and full TypeScript.
login.microsoftonline.com and graph.microsoft.com.M365_MCP_READ_ONLY=true for an enforced least-privilege mode. It requests
read-only OAuth scopes, omits mutating tools from discovery, and rejects direct
calls to them.~/.m365-mcp/auth/ (or M365_MCP_AUTH_DIR), protected with directory mode
0700 and file mode 0600 where supported. Protect that directory and revoke
the app's Microsoft account consent if a token or device is compromised.ClawHub installs the prebuilt npm package automatically. For a manual install:
npm install --global @sam2kb/m365-mcp
# Add account
m365-mcp-auth add work <tenantId> <clientId> you@company.com
# Authenticate
m365-mcp-auth login --account=work
Then configure m365-mcp as a stdio MCP server in your client.
See the project README for the full Azure setup guide.