Back to Home
the-sage-group icon

m365cp

by the-sage-group

Overview

Provides a Model Context Protocol (MCP) server for interacting with Microsoft 365 services, including email and file management, via the Microsoft Graph API.

Installation

Run Command
node dist/index.js

Environment Variables

  • PORT

Security Notes

CRITICAL VULNERABILITY: The `MicrosoftGraphTokenVerifier` explicitly states it 'doesn't verify the token ourselves - Microsoft Graph API will do that'. This means the MCP server *does not verify the authenticity or integrity* (e.g., signature) of incoming bearer tokens before extracting claims (clientId, scopes, expiresAt) and generating `AuthInfo`. An attacker could forge a JWT with valid-looking claims (if it includes `exp`, `scp`/`scope`, `appid`/`client_id`) and bypass the server's authentication middleware, even if subsequent calls to the Microsoft Graph API would fail. This compromises the server's internal trust model for client authentication. Puppeteer is used for converting HTML emails to PDF, which involves rendering potentially untrusted HTML content in a browser environment. While Puppeteer isolates processes, this adds to the attack surface if not perfectly sandboxed. `sanitize-filename` is used when uploading files, which is a good practice.

Similar Servers

Stats

Interest Score0
Security Score2
Cost ClassMedium
Avg Tokens2000
Stars0
Forks0
Last Update2025-12-15

Tags

Microsoft 365Graph APIEmail AutomationFile ManagementAI Tools