MCP server · Org-owned · Audited from source
ms-365-mcp-server
by softeria/ms-365-mcp-serverMIT licenceAudited 12 Oct 2026 · source a2fde07acd41
Is it safe? No — BLOCK, grade F (58/100). It exposes 11 tools: 8 read, 2 write and 1 destructive. The audit recorded 28 findings (0 critical, 2 high, 7 medium, 17 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 12 Oct 2026. https://modelsatlas.com/mcp/softeria/ms-365-mcp-server
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 12 Oct 2026
28 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 (28)
Sorted by severity · the 25 most severe of 28 are listed
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:149
['traversal', '/me/x/../../../beta/me/messages/$value'],
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · test/path-dot-segments.test.ts:104
"A1')/../../../../../../../me/messages?x=",
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · test/path-dot-segments.test.ts:105
"A1')/../../../../../../../me#",
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · README.md:740
- `MS365_MCP_GRAPH_BASE_URL=<url>`: Send Graph API requests to this base URL instead of the cloud's `graph.microsoft.com` (e.g. `http://127.0.0.1:10255/tenant-a/graph` for an egress proxy that origina
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · test/attachment-split-listener.test.ts:167
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:179
`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:194
`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:204
`http://127.0.0.1:${attachmentPort}/attachment?t=${encodeURIComponent(ticket)}`- Why
- No further detail recorded for this rule.
- Fix
- —
LOWObfuscation / stealthobf.zero_width · test/attachment-tickets.test.ts:376
writeFileSync(bom, 'secret\n');
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWObfuscation / stealthobf.zero_width · test/attachment-tickets.test.ts:382
).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.transfer_instruction · README.md:740
- `MS365_MCP_GRAPH_BASE_URL=<url>`: Send Graph API requests to this base URL instead of the cloud's `graph.microsoft.com` (e.g. `http://127.0.0.1:10255/tenant-a/graph` for an egress proxy that origina
- 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 · README.md:743
- `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 · README.md:802
through an upload session in 3.75 MiB chunks, so the server never holds more than one chunk.
- 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
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 58 / 100
First audit ·
a2fde07acd41
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 MCP server?
What tools does ms-365-mcp-server expose?
Is ms-365-mcp-server safe to connect to an agent?
What credentials does ms-365-mcp-server need?
How does ms-365-mcp-server run?
How current is this page?
I already installed ms-365-mcp-server. 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 · 12 Oct 2026
- ModelsAtlas trust audit — BLOCK verdict for commit a2fde07acd41Observed · 12 Oct 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 MCP server?
- What tools does ms-365-mcp-server expose?
- Is ms-365-mcp-server safe to connect to an agent?