Atlas / MCP servers / softeria / ms-365-mcp-server

ms-365-mcp-serverBLOCK

mcp/softeria/ms-365-mcp-server

A Model Context Protocol (MCP) server for interacting with Microsoft 365 and Microsoft Office services through the Graph API

Verdict
BLOCK
Grade
F
Trust score
58 /100
Exposed tools
11 8r · 2w · 1d
Transport
stdio · streamable-http
License
MIT
Stars
1,031
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

[](https://www.npmjs.com/package/@softeria/ms-365-mcp-server) [](https://github.com/softeria/ms-365-mcp-server/actions/workflows/build.yml) [](https://github.com/softeria/ms-365-mcp-server/blob/main/LICENSE)

Microsoft 365 MCP Server

A Model Context Protocol (MCP) server for interacting with Microsoft 365 and Microsoft Office services through the Graph API.

Supported Clouds

This server supports multiple Microsoft cloud environments:

To route Graph traffic through a proxy of your own (one that terminates the client's plain HTTP and originates TLS to Microsoft), set MS365_MCP_GRAPH_BASE_URL to its base URL; see the environment variable list under CLI Options, including what still bypasses it.

Prerequisites

  • Node.js >= 20 (recommended)
  • Node.js 14+ may work with dependency warnings

Features

  • Authentication via Microsoft Authentication Library (MSAL)
  • Comprehensive Microsoft 365 service integration
  • Read-only mode support for safe operations
  • Tool filtering for granular access control
  • Tool presets and dynamic discovery to shrink the tool surface and token usage

Output Format: JSON vs TOON

The server supports two output formats that can be configured globa

Read from source at commit a2fde07acd41OBSERVED · 2026-10-12
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code (npm)
claude mcp add ms-365-mcp-server -- npx -y @softeria/[email protected]
03

Exposed tools (11)

8 read · 2 write · 1 destructive. Blast radius: 1 tool can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.

ToolRiskDescription
bodyreadNew navigation property
create-folderwrite
execute-toolwrite
get-tool-schemareadReturns 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.
list-accountsreadList 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.
loginreadAuthenticate with Microsoft account
logoutreadLog out from Microsoft account
remove-accountdestructiveRemove a Microsoft account from the cache. Accepts email address (e.g. [email protected]) or account ID. Use list-accounts to discover available accounts.
search-toolsreadSearch 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.
select-accountreadSelect a Microsoft account as the default. Accepts email address (e.g. [email protected]) or account ID. Use list-accounts to discover available accounts.
verify-loginreadCheck current Microsoft authentication status
04

Trust audit

BLOCKgrade F · trust 58/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeFAIL
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfaceWARN
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (1 observation(s))
Network
declared (5 observation(s))
Shell
declared (4 observation(s))
Dependencies
not all pinned
Secrets in source
found

Findings (25)

HIGHCode injection · code.deserialize · CWE-78, CWE-94, CWE-95
bin/modules/extract-descriptions.mjs:24
const openApiSpec = yaml.load(fs.readFileSync(openapiFile, 'utf8'));
Why it matters. deserialises untrusted bytes into live objects
Fix. use json or yaml.safe_load
HIGHCode injection · code.deserialize · CWE-78, CWE-94, CWE-95
bin/modules/simplified-openapi.mjs:18
const openApiSpec = yaml.load(spec);
Why it matters. deserialises untrusted bytes into live objects
Fix. use json or yaml.safe_load
MEDIUMInformation disclosure · disclose.log_secret · CWE-209, CWE-532
src/auth.ts:241
logger.error(`Error reloading token cache: ${(error as Error).message}`);
MEDIUMInformation disclosure · disclose.log_secret · CWE-209, CWE-532
src/auth.ts:254
logger.error(`Error saving token cache: ${(error as Error).message}`);
MEDIUMInformation disclosure · disclose.log_secret · CWE-209, CWE-532
src/auth.ts:854
logger.error(`Error loading token cache: ${(error as Error).message}`);
MEDIUMInformation disclosure · disclose.log_secret · CWE-209, CWE-532
src/lib/microsoft-auth.ts:297
logger.warn(`Token endpoint upstream OAuth error: ${result.parsed.error}`, {
MEDIUMInformation disclosure · disclose.log_secret · CWE-209, CWE-532
src/oauth-provider.ts:32
logger.info(`OAuth token verified for user: ${userData.userPrincipalName}`);
MEDIUMHard-coded secrets · secret.generic · CWE-798, CWE-321
test/graph-client-token-redaction.test.ts:11
const TOKEN = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.super-secret-token-value';
MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
remove-account
Why it matters. 1 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius
LOWInventory / provenance · inv.hidden_file · CWE-1104
.releaserc.json
.releaserc.json
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
test/attachment-tickets.test.ts:149
['traversal', '/me/x/../../../beta/me/messages/$value'],
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
test/path-dot-segments.test.ts:104
"A1')/../../../../../../../me/messages?x=",
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
test/path-dot-segments.test.ts:105
"A1')/../../../../../../../me#",
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
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
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
test/attachment-split-listener.test.ts:167
process.env.MS365_MCP_ATTACHMENT_URL_BASE = `http://127.0.0.1:${attachmentPort}`;
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
test/attachment-split-listener.test.ts:179
`http://127.0.0.1:${attachmentPort}/attachment?t=${encodeURIComponent(ticket)}`
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
test/attachment-split-listener.test.ts:194
`http://127.0.0.1:${mcpPort}/attachment?t=${encodeURIComponent(ticket)}`
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
test/attachment-split-listener.test.ts:204
`http://127.0.0.1:${attachmentPort}/attachment?t=${encodeURIComponent(ticket)}`
LOWObfuscation / stealth · obf.zero_width · CWE-506, CWE-94
test/attachment-tickets.test.ts:376
writeFileSync(bom, 'secret\n');
LOWObfuscation / stealth · obf.zero_width · CWE-506, CWE-94
test/attachment-tickets.test.ts:382
).toBe('secret');
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@azure/msal-node, @modelcontextprotocol/sdk, @toon-format/toon, commander, dotenv, express, express-rate-limit, helmet
Why it matters. 35 dependency range(s) float
Fix. pin exact versions or ship a lockfile
LOWPrompt injection · prompt.transfer_instruction · CWE-94, CWE-1427
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 it matters. an instruction to move sensitive data to an outside destination
Fix. remove; a skill never needs the user's secrets off the machine
LOWPrompt injection · prompt.transfer_instruction · CWE-94, CWE-1427
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 it matters. an instruction to move sensitive data to an outside destination
Fix. remove; a skill never needs the user's secrets off the machine
LOWPrompt injection · prompt.transfer_instruction · CWE-94, CWE-1427
README.md:802
through an upload session in 3.75 MiB chunks, so the server never holds more than one chunk.
Why it matters. an instruction to move sensitive data to an outside destination
Fix. remove; a skill never needs the user's secrets off the machine
LOWPrompt injection · prompt.transfer_instruction · CWE-94, CWE-1427
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 it matters. an instruction to move sensitive data to an outside destination
Fix. remove; a skill never needs the user's secrets off the machine

Gates applied: no_behavioural_pass.

Audited 2026-10-12 · audit v0.4.1 · source sha a2fde07acd41full audit observations/trust-audit/mcp-server/softeria__ms-365-mcp-server.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-12a2fde07acd41BLOCKF58first audit
06

Questions

What is the @softeria/ms-365-mcp-server MCP server?

A Model Context Protocol (MCP) server for interacting with Microsoft 365 and Microsoft Office services through the Graph API

What tools does @softeria/ms-365-mcp-server 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 @softeria/ms-365-mcp-server safe to connect to an agent?

No — not without reading the findings first. The audit graded it F (58/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 @softeria/ms-365-mcp-server 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 @softeria/ms-365-mcp-server 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 (a2fde07acd41), read on 2026-10-12. The repository is watched and re-audited when it changes.

Advertisement