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
node dist/index.jsEnvironment 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
thoughtbox
Provides a durable, local-first reasoning ledger and structured cognitive tools for AI agents, enabling step-by-step thinking, branching, revisions, and autonomous critique, with progressive tool disclosure and client compatibility adaptations.
tiger-gh-mcp-server
Provides a set of focused tools to Large Language Models (LLMs) for interacting with the GitHub API, enabling capabilities like fetching issues, pull requests, commits, releases, and searching code within a specified organization.
tiger-salesforce-mcp-server
Provides LLMs with tools to semantically search Salesforce case summaries and retrieve detailed case information from a TimescaleDB database.
mcp-server
This server integrates Kontent.ai content management with AI tools, allowing natural language operations to create, manage, and explore structured content.