Skip to main content

Microsoft365 MCP Server

io.github.sapientsai/microsoft365-mcp-server

v1.7.1Updated Nov 23, 2026stdio · npm

Microsoft 365 via Graph — mail, calendar, contacts, files, Teams, Planner, OneNote, To Do.

Install

Replace 1 placeholder with your own values.

Run in your terminal. Replace 1 placeholder.

claude mcp add microsoft365-mcp-server -e 'MS365_CLIENT_ID=<your-ms365-client-id>' -- npx -y [email protected]

Configuration

13 settings.

  • MS365_CLIENT_ID
    Env var· required
    Azure AD application (client) ID. Every mode except client-token needs it.
  • MS365_CLIENT_SECRET
    Env var· optional· secret
    Azure AD client secret (client-secret mode).
  • MS365_CERT_PASSWORD
    Env var· optional· secret
    Password for the certificate at MS365_CERT_PATH, if it has one.
  • MS365_ACCESS_TOKEN
    Env var· optional· secret
    A Graph access token supplied directly (client-token mode).
  • MS365_TENANT_ID
    Env var· optional
    Azure AD tenant ID, or 'common'/'organizations'/'consumers'. Read by certificate, client-secret and oauth-proxy modes.
  • MS365_CERT_PATH
    Env var· optional
    Path to the certificate used by certificate mode.
Show 7 more
  • MS365_AUTH_MODE
    Env var· optional
    Auth mode: interactive (default), certificate, client-secret, client-token or oauth-proxy.
  • MS365_OAUTH_BASE_URL
    Env var· optional
    Base URL of the OAuth proxy (oauth-proxy mode).
  • MS365_READ_ONLY
    Env var· optional
    Set to 'true' to expose read-only tools and refuse every write.
  • MS365_ENABLED_TOOLS
    Env var· optional
    Case-insensitive regular expression matched against tool names; only matching tools are registered. Not a comma-separated list.
  • MS365_PRESETS
    Env var· optional
    Comma-separated tool presets to enable instead of naming tools individually.
  • MS365_ORG_MODE
    Env var· optional
    Set to 'true' for organisation-wide (application-permission) behaviour.
  • TRANSPORT_TYPE
    Env var· optional
    Transport: 'stdio' (the default, and what this npm package is listed as) or 'httpStream' for remote/Docker deployments.

Listed in the official MCP Registry since Nov 23, 2026. Mirrored daily; last checked Nov 26, 2026.