files-mcp-server
by microsoft
Overview
This server provides a Model Context Protocol (MCP) interface for local testing with Microsoft OneDrive and SharePoint resources, enabling clients to interact with files, folders, sites, and libraries.
Installation
npx files-mcp-serverEnvironment Variables
- ODMCP_TENANT_ID
- ODMCP_CLIENT_ID
- ODMCP_VERBOSE
Security Notes
The primary MCP server mechanism correctly uses delegated authentication via bearer tokens from the client. However, a specific Express route for direct file streaming (`/file/*/contentStream`) hardcodes `token = "fake"` for its Graph API calls. This renders the direct file streaming endpoint non-functional for real Graph access and represents a significant vulnerability or broken feature if not addressed, even within a developer-only context. Required environment variables (Tenant ID, Client ID) are appropriately handled.
Similar Servers
ms-365-mcp-server
Provide an MCP server to interact with Microsoft 365 services like Email, Calendar, Files, and Teams via the Graph API.
sharepoint-docs-mcp
Provides SharePoint and OneDrive document search and download functionality through an MCP server.
mcp-mock-server
Provides a mock server for the Model Context Protocol (MCP) to aid in the development and testing of MCP clients.
mcp-servers
Provides current weather conditions and forecasts from the Open-Meteo API for a given geographical location.