MCP server · Org-owned · Audited from source
Ms 365 MCP server
by softeria/ms-365-mcp-serverMIT licenceAudited 26 Sep 2026 · source fba8bb4b1c28
Is it safe? No — BLOCK, grade F (59/100). It exposes 11 tools: 8 read, 2 write and 1 destructive. The audit recorded 23 findings (0 critical, 2 high, 7 medium, 14 low). Maintainer's description: A Model Context Protocol (MCP) server for interacting with Microsoft 365 and Microsoft Office services through the Graph API
Cite
Cite this page
ModelsAtlas. “Ms 365 MCP server (softeria/ms-365-mcp-server)”. Retrieved 26 Sep 2026. https://modelsatlas.com/mcp/softeria/ms-365
Why this is BLOCK. The audit found 0 critical and 2 high findings; the most severe is Code injection at bin/modules/extract-descriptions.mjs:24. Each finding is listed below with its file and line.
Why this page is still public. People search for this server by name. Hiding it would leave them with the README's word alone; here they see what the code does. We list it so you can decide, and we do not show connect commands for BLOCK servers.
Trust audit
Audit 0.4.1 · full source read 26 Sep 2026
23 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemDeclared1 observation
- NetworkDeclared5 observations
- ShellDeclared4 observations
- DependenciesNot pinnedSome ranges float
- SecretsFoundSee the findings
Findings (23)
Sorted by severity
HIGHCode injectioncode.deserialize · bin/modules/extract-descriptions.mjs:24
const openApiSpec = yaml.load(fs.readFileSync(openapiFile, 'utf8'));
- Why
- deserialises untrusted bytes into live objects
- Fix
- use json or yaml.safe_load
HIGHCode injectioncode.deserialize · bin/modules/simplified-openapi.mjs:18
const openApiSpec = yaml.load(spec);
- Why
- deserialises untrusted bytes into live objects
- Fix
- use json or yaml.safe_load
MEDIUMInformation disclosuredisclose.log_secret · src/auth.ts:241
logger.error(`Error reloading token cache: ${(error as Error).message}`);- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMInformation disclosuredisclose.log_secret · src/auth.ts:254
logger.error(`Error saving token cache: ${(error as Error).message}`);- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMInformation disclosuredisclose.log_secret · src/auth.ts:854
logger.error(`Error loading token cache: ${(error as Error).message}`);- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMInformation disclosuredisclose.log_secret · src/lib/microsoft-auth.ts:297
logger.warn(`Token endpoint upstream OAuth error: ${result.parsed.error}`, {- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMInformation disclosuredisclose.log_secret · src/oauth-provider.ts:32
logger.info(`OAuth token verified for user: ${userData.userPrincipalName}`);- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMHard-coded secretssecret.generic · test/graph-client-token-redaction.test.ts:11
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMFilesystem / pathmcp.destructive_tools
remove-account
- Why
- 1 tool(s) can delete or overwrite
- Fix
- prefer a read-only mode or scoped tokens; the page states the blast radius
LOWFilesystem / pathfs.traversal · test/attachment-tickets.test.ts:124
['traversal', '/me/x/../../../beta/me/messages/$value'],
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · test/attachment-split-listener.test.ts:165
process.env.MS365_MCP_ATTACHMENT_URL_BASE = `http://127.0.0.1:${attachmentPort}`;- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · test/attachment-split-listener.test.ts:177
`http://127.0.0.1:${attachmentPort}/attachment?t=${encodeURIComponent(ticket)}`- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · test/attachment-split-listener.test.ts:192
`http://127.0.0.1:${mcpPort}/attachment?t=${encodeURIComponent(ticket)}`- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · test/attachment-split-listener.test.ts:202
`http://127.0.0.1:${attachmentPort}/attachment?t=${encodeURIComponent(ticket)}`- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · test/attachment-split-listener.test.ts:209
const get = await fetch(`http://127.0.0.1:${attachmentPort}/mcp`);- Why
- No further detail recorded for this rule.
- Fix
- —
LOWObfuscation / stealthobf.zero_width · test/attachment-tickets.test.ts:263
writeFileSync(bom, 'secret\n');
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWObfuscation / stealthobf.zero_width · test/attachment-tickets.test.ts:269
).toBe('secret');- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · package.json
@azure/msal-node, @modelcontextprotocol/sdk, @toon-format/toon, commander, dotenv, express, express-rate-limit, helmet
- Why
- 35 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
LOWPrompt injectionprompt.credential_read · docs/deployment.md:229
- **Managed identity**: use managed identity for Key Vault access (no secrets in environment variables)
- Why
- asks the agent to read credentials
- Fix
- —
LOWPrompt injectionprompt.transfer_instruction · README.md:665
- `MS365_MCP_REDACT_PII=false|0`: Disable scrubbing of JWTs, Bearer headers, OAuth token fields, and email addresses from log messages (default: enabled). The server handles live Graph bearer tokens,
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
LOWPrompt injectionprompt.transfer_instruction · docs/deployment.md:234
- **Structured audit log**: enabled by default. Every tool invocation that reaches Microsoft Graph emits one JSON line on stderr (captured by the container platform's log collector) and to `~/.ms-365-
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
LOWPrompt injectionprompt.transfer_instruction · docs/deployment.md:243
| `/mcp` | GET/POST | MCP protocol endpoint | Bearer token |
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
Tools it exposes
11 declared in source · 1 destructive
1 tool can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.
| Tool | What it does | Risk |
|---|---|---|
remove-account | Remove a Microsoft account from the cache. Accepts email address (e.g. [email protected]) or account ID. Use list-accounts to discover available accounts. | destructive |
create-folder | No description in the source | write |
execute-tool | No description in the source | write |
body | New navigation property | read |
get-tool-schema | Returns the full parameter schema (name, placement, required, JSON Schema) for a tool discovered via search-tools. Call this before execute-tool so you know what parameters to pass and what enum values are valid. | read |
list-accounts | List all Microsoft accounts configured in this server. Use this to discover available account emails before making tool calls. Reflects accounts added mid-session via --login. | read |
login | Authenticate with Microsoft account | read |
logout | Log out from Microsoft account | read |
search-tools | Search through ${totalCount} tools (${toolsRegistry.size} Microsoft Graph API operations + ${utilityTools.length} server utilities like download-bytes). Ranks results by BM25 over tool name, llmTip, description, and path. After picking a tool, call get-tool-schema for parameters, then execute-tool. | read |
select-account | Select a Microsoft account as the default. Accepts email address (e.g. [email protected]) or account ID. Use list-accounts to discover available accounts. | read |
verify-login | Check current Microsoft authentication status | read |
Safer alternatives
We could not match this server to a job, so we cannot suggest a like-for-like alternative. Read-only servers are the least-privilege place to start.
Audit history
- ✕BLOCK F 59 / 100
First audit ·
fba8bb4b1c28
README badge
Badges show the current verdict, BLOCK included
A badge cannot be hidden by the maintainer while the verdict is BLOCK. Fix the findings, push, and the re-audit updates it.
Questions about Ms 365 MCP server
What is the Ms 365 MCP server?
What tools does Ms 365 expose?
Is Ms 365 safe to connect to an agent?
What credentials does Ms 365 need?
How does Ms 365 run?
How current is this page?
I already installed Ms 365. What should I do?
Can the verdict change?
Sources
- softeria/ms-365-mcp-server on GitHub — the source we read, its licence, stars and activityObserved · 26 Sep 2026
- ModelsAtlas trust audit — BLOCK verdict for commit fba8bb4b1c28Observed · 26 Sep 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the Ms 365 MCP server?
- What tools does Ms 365 expose?
- Is Ms 365 safe to connect to an agent?