Back to Home
microsoft icon

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

Run Command
npx files-mcp-server

Environment 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

Stats

Interest Score51
Security Score3
Cost ClassHigh
Avg Tokens10000
Stars84
Forks11
Last Update2025-12-02

Tags

MCP ServerLocal TestingMicrosoft GraphFilesSharePointOneDrive