MCP directory
MM

Microsoft365 Mcp Server

by github.com/sapientsai · v1.7.1 · updated Nov 23, 2026

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

npm

Run it locally

Install the package and point your AI client at it.

Environment variables

  • MS365_CLIENT_IDrequired

    Azure AD application (client) ID. Every mode except client-token needs it.

  • MS365_TENANT_ID

    Azure AD tenant ID, or 'common'/'organizations'/'consumers'. Read by certificate, client-secret and oauth-proxy modes.

  • MS365_CLIENT_SECRETsecret

    Azure AD client secret (client-secret mode).

  • MS365_CERT_PATH

    Path to the certificate used by certificate mode.

  • MS365_CERT_PASSWORDsecret

    Password for the certificate at MS365_CERT_PATH, if it has one.

  • MS365_ACCESS_TOKENsecret

    A Graph access token supplied directly (client-token mode).

  • MS365_AUTH_MODE

    Auth mode: interactive (default), certificate, client-secret, client-token or oauth-proxy.

  • MS365_OAUTH_BASE_URL

    Base URL of the OAuth proxy (oauth-proxy mode).

  • MS365_READ_ONLY

    Set to 'true' to expose read-only tools and refuse every write.

  • MS365_ENABLED_TOOLS

    Case-insensitive regular expression matched against tool names; only matching tools are registered. Not a comma-separated list.

  • MS365_PRESETS

    Comma-separated tool presets to enable instead of naming tools individually.

  • MS365_ORG_MODE

    Set to 'true' for organisation-wide (application-permission) behaviour.

  • TRANSPORT_TYPE

    Transport: 'stdio' (the default, and what this npm package is listed as) or 'httpStream' for remote/Docker deployments.

More from github.com/sapientsai

More MCP servers