A Model Context Protocol (MCP) server for interacting with Microsoft 365 and Office services through the Graph API
Install from
M8ven verifies MCPs across every public registry — install directly from whichever one you prefer.
process.env. You'll be asked to provide them before it can run.ENABLED_TOOLS— Filter tools using a regex pattern (alternative to --enabled-tools flag)LOG_LEVEL— Set logging level (default: 'info')MS365_MCP_BASE_URLMS365_MCP_BODY_FORMAT— html: Return email bodies as HTML instead of plain text (default: text)MS365_MCP_CLIENT_ID— your-azure-ad-app-client-id-hereMS365_MCP_CLIENT_SECRET— your-secret-here # Optional for public appsMS365_MCP_CLOUD_TYPE— globalchina: Microsoft cloud environment (alternative to --cloud flag)MS365_MCP_CORS_ORIGINMS365_MCP_FORCE_WORK_SCOPES— true1: Backwards compatibility for MS365_MCP_ORG_MODEMS365_MCP_KEYVAULT_URL— Azure Key Vault URL for secrets management (see Azure Key Vault section)MS365_MCP_LOG_DIRMS365_MCP_MAX_TOP— n>: Hard cap for Graph $top / top on list requests (positive integer). When the model passes a larger value, the server clamps it to n so responses stay smaller. Example: MS365_MCP_MAX_TOP=15MS365_MCP_OAUTH_TOKEN— your_oauth_token npx @softeria/ms-365-mcp-serverMS365_MCP_ORG_MODE— true1: Enable organization/work mode (alternative to --org-mode flag)MS365_MCP_OUTPUT_FORMAT— toon npx @softeria/ms-365-mcp-serverMS365_MCP_PUBLIC_URLMS365_MCP_SELECTED_ACCOUNT_PATH— Custom file path for selected account metadata (see Token Storage below)MS365_MCP_TENANT_ID— Custom tenant ID (defaults to 'common' for multi-tenant)MS365_MCP_TOKEN_CACHE_PATH— Custom file path for MSAL token cache (see Token Storage below)READ_ONLY— true1: Alternative to --read-only flagSILENT— true1: Disable console output[](https://m8ven.ai/mcp/softeria-ms-365-mcp-server-1lbx0w)