Live survey304 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Org-owned · Audited from source

Ms 365 MCP server

by softeria/ms-365-mcp-serverMIT licenceAudited 26 Sep 2026 · source fba8bb4b1c28

npm @softeria/ms-365-mcp-server 0.0.0-developmentstdiostreamable-http★ 997
✕BLOCKGrade F · 59/100 · 26 Sep 2026 · fba8bb4

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

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
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

Trust score59/100✕BLOCK F
0 critical2 high7 medium14 low0 info

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
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
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
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
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
F-12 Information disclosureCWE-209 · CWE-532Layer L1
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
F-12 Information disclosureCWE-209 · CWE-532Layer L1
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
F-12 Information disclosureCWE-209 · CWE-532Layer L1
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
F-12 Information disclosureCWE-209 · CWE-532Layer L1
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
F-12 Information disclosureCWE-209 · CWE-532Layer L1
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
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMFilesystem / pathmcp.destructive_tools
F-05 Filesystem / pathCWE-22 · CWE-59Layer L3
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
LOWInventory / provenanceinv.hidden_file · .releaserc.json
F-13 Inventory / provenanceCWE-1104Layer L0
.releaserc.json
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWFilesystem / pathfs.traversal · test/attachment-tickets.test.ts:124
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
['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
F-04 Network egressCWE-200 · CWE-319Layer L1
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
F-04 Network egressCWE-200 · CWE-319Layer L1
`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
F-04 Network egressCWE-200 · CWE-319Layer L1
`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
F-04 Network egressCWE-200 · CWE-319Layer L1
`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
F-04 Network egressCWE-200 · CWE-319Layer L1
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
F-07 Obfuscation / stealthCWE-506 · CWE-94Layer L1
writeFileSync(bom, 'secret\n');
Why
No further detail recorded for this rule.
Fix
—
LOWObfuscation / stealthobf.zero_width · test/attachment-tickets.test.ts:269
F-07 Obfuscation / stealthCWE-506 · CWE-94Layer L1
).toBe('secret');
Why
No further detail recorded for this rule.
Fix
—
LOWSupply chainsupply.unpinned · package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- **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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- `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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- **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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
| `/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

8 read2 write1 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.

ToolWhat it doesRisk
remove-accountRemove 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-folderNo description in the sourcewrite
execute-toolNo description in the sourcewrite
bodyNew navigation propertyread
get-tool-schemaReturns 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-accountsList 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
loginAuthenticate with Microsoft accountread
logoutLog out from Microsoft accountread
search-toolsSearch 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-accountSelect 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-loginCheck current Microsoft authentication statusread

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

  1. ✕BLOCK F 59 / 100

    First audit · fba8bb4b1c28

README badge

Badges show the current verdict, BLOCK included

ModelsAtlas: BLOCK FMODELSATLASBLOCK · F

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?
A Model Context Protocol (MCP) server for interacting with Microsoft 365 and Microsoft Office services through the Graph API
What tools does Ms 365 expose?
11 in total: 8 read-only, 2 that write, and 1 that can delete or overwrite (remove-account). Every one is listed on this page with its risk.
Is Ms 365 safe to connect to an agent?
No — not without reading the findings first. The audit graded it F (59/100) and found 2 critical or high issues in the source. Each one is listed on this page with the file and line it is on. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does Ms 365 need?
It reads MS365_MCP_ALLOW_UNAUTHENTICATED_DISCOVERY, MS365_MCP_ATTACHMENT_URL_KEY, MS365_MCP_ATTACHMENT_URL_KEY_FILE, MS365_MCP_AUTH_CACHE_COMMAND, MS365_MCP_CLIENT_SECRET, MS365_MCP_KEYVAULT_URL, MS365_MCP_OAUTH_TOKEN, MS365_MCP_TOKEN_CACHE_PATH and MS365_MCP_TRUST_PROXY_AUTH from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Ms 365 run?
It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as @softeria/ms-365-mcp-server at 0.0.0-development.
How current is this page?
The grade is for one exact copy of the source (fba8bb4b1c28), read on 2026-09-26. The repository is watched and re-audited when it changes.
I already installed Ms 365. What should I do?
Remove it from your client's MCP configuration, then rotate any API keys and tokens that were in your environment while it ran.
Can the verdict change?
Yes. The repository is watched and re-audited when its source changes. If the findings are removed the verdict updates, and the history on this page shows it.

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.