Microsoft 365 (hub)
by softeria
Comprehensive Microsoft 365 hub — Outlook mail, Calendar, Excel, Word, OneDrive/Files, Teams — via a single Graph API MCP.
Entra app (client) ID. Built-in app used if unset
Client secret for app credentials flow
Azure tenant ID. Defaults to 'common' for multi-tenant
Microsoft cloud environment: global, china, or gcc-high
Comma-separated Graph API scopes to limit tool surface
Additional Graph API scopes to request beyond tool-derived scopes
Email body format: text (plain) or html
Regex pattern to filter which tools are exposed
Path to file with regex patterns (one per line) for tool filtering
Require the server to use this Microsoft account username
Require the server to use this exact MSAL homeAccountId
Logging level (info, debug, etc.)
Optional KEY=VALUE pairs (one per line) set as extra environment variables on the connector's process. Lines starting with # are ignored; uncomment and edit what you need.
Default template
# Optional extra environment variables, one KEY=VALUE per line. # Lines starting with # are ignored: uncomment and edit what you need. # Documented options: https://github.com/softeria/ms-365-mcp-server # Use the compact TOON output format. # MS365_MCP_OUTPUT_FORMAT=toon # Largest page size a list request may ask Graph for (positive integer). # MS365_MCP_MAX_TOP=15 # Most pages followed when a tool fetches every page (default 100). # MS365_MCP_MAX_PAGES=100 # Most items collected when a tool fetches every page (default 10000). # MS365_MCP_MAX_ITEMS=10000 # Turn multi-page fetching off (default: on). # MS365_MCP_ALLOW_PAGINATION=false # Comma-separated field filter for user-directory reads. # MS365_MCP_USER_FIELDS= # Download tools return a short summary plus the file as an embedded resource. # MS365_MCP_BLOB_OUTPUT=true # With blob output on, the largest file a download reads, in bytes (default 5242880). # MS365_MCP_BLOB_MAX_BYTES=5242880 # Largest result read-mail-text returns, in characters (default 80000). # MS365_MCP_READ_MAIL_TEXT_MAX_CHARS=80000 # Trim oversized tool schemas to fit a hosted connector's tool-definition budget (the README suggests 4096). # MS365_MCP_TOOL_DEFINITION_BUDGET=4096 # Where the sign-in token cache and the selected-account record are stored. # MS365_MCP_TOKEN_CACHE_PATH= # MS365_MCP_SELECTED_ACCOUNT_PATH= # Send Graph requests through your own egress proxy (absolute http(s) base URL). # MS365_MCP_GRAPH_BASE_URL=
This template lands in your config when you add the connector. Edit or override anytime from My Connectors — click the connector's config action to open the same editor with your saved values.
Runtime commands — technical reference. Nothing to configure here; the desktop runs these for you.
npx -y @softeria/[email protected] --org-mode --read-only