Microsoft 365 MCP Server
MCPReferenceby IDEAtells-B-V-Software
Indexed by Glama. No runnable package is published via Glama's API — open the repository for install instructions.
MCP configuration
Environment
SILENTSet to 'true' or '1' to disable console output.
LOG_LEVELSet logging level (default: 'info').
READ_ONLYSet to 'true' or '1' to start server in read-only mode, disabling write operations.
ENABLED_TOOLSRegex pattern to filter tools (alternative to --enabled-tools flag).
MS365_MCP_MAX_TOPHard cap for Graph $top / top on list requests (positive integer).
MS365_MCP_ORG_MODESet to 'true' or '1' to enable organization/work mode from start (includes Teams, SharePoint, etc.).
MS365_MCP_CLIENT_IDCustom Azure app client ID (defaults to built-in app).
MS365_MCP_MAX_ITEMSMaximum number of items accumulated when fetchAllPages is true (positive integer, default 10000).
MS365_MCP_MAX_PAGESMaximum number of pages followed when fetchAllPages is true (positive integer, default 100).
MS365_MCP_TENANT_IDCustom tenant ID (defaults to 'common' for multi-tenant). Personal accounts should set to 'consumers'.
MS365_MCP_CLOUD_TYPEMicrosoft cloud environment: 'global' or 'china' (21Vianet).
MS365_MCP_REDACT_PIISet to 'true' or '1' to scrub PII from log messages.
MS365_MCP_BODY_FORMATSet to 'html' to return email bodies as HTML instead of plain text.
MS365_MCP_OAUTH_TOKENsecretPre-existing OAuth token for Microsoft Graph API (BYOT method).
MS365_MCP_EXTRA_SCOPESAppend additional Graph scopes to the token request.
MS365_MCP_KEYVAULT_URLsecretAzure Key Vault URL for secrets management.
MS365_MCP_CLIENT_SECRETsecretAzure app client secret (optional for public apps).
MS365_MCP_OUTPUT_FORMATSet to 'toon' to enable experimental TOON output format for token reduction.
MS365_MCP_ALLOWED_SCOPESLimit exposed tools to Graph scopes covered by this allowlist.
MS365_MCP_ALLOW_PAGINATIONSet to '0', 'false', or 'no' to disable multi-page following entirely.
MS365_MCP_TOKEN_CACHE_PATHsecretCustom file path for MSAL token cache.
MS365_MCP_TRUST_PROXY_HOPSNumber of trusted reverse-proxy hops in HTTP mode (default 1).
MS365_MCP_EXPECTED_USERNAMERequire local MSAL auth to use this Microsoft account username (case-insensitive).
MS365_MCP_FORCE_WORK_SCOPESBackwards compatibility alias for MS365_MCP_ORG_MODE (deprecated).
MS365_MCP_AUTH_CACHE_COMMANDExternal executable wrapper for provider-neutral auth-cache storage.
MS365_MCP_RATE_LIMIT_DISABLEDSet to 'true' or '1' to disable per-IP rate limiting in HTTP mode.
MS365_MCP_SELECTED_ACCOUNT_PATHCustom file path for selected account metadata.
MS365_MCP_EXPECTED_HOME_ACCOUNT_IDRequire local MSAL auth to use this exact MSAL homeAccountId.
MS365_MCP_AUTH_CACHE_COMMAND_TIMEOUT_MSPer-invocation timeout for MS365_MCP_AUTH_CACHE_COMMAND (default: 10000).
Install in one click with Zurek
Browse here, install from the native macOS app — pick targets, fill env vars, and write configs safely.