microsoft
MCP Servermicrosoftpublic

files mcp server

A OneDrive MCP server implementation for local testing and community contribution

Repository Info

54
Stars
8
Forks
54
Watchers
2
Issues
TypeScript
Language
MIT License
License

About This Server

A OneDrive MCP server implementation for local testing and community contribution

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

Files MCP Server

This library provides an MCP server for local testing with any client that supports the Model Context Protocol.

It is an http server using delegated authentication to access your environment.

Scopes

This sample uses the Files.ReadWrite.All and Sites.Read.All delegated Graph scopes.

Install

  1. Clone this repository locally (will update once we are published to NPM)
  2. In your MCP client of choice add this server using npx -y {ABSOLUTE LOCAL PATH}\files-mcp-server
  3. Edit the server configuration to include the require env vars
     {
         "mcp": {
             "servers": {
                 "files-localhost-debug": {
                     "type": "http",
                     "url": "http://localhost:3001/mcp",
                 }
             }
         }
     }
    
  4. Begin interacting with the server

Local Development

  1. Create a .env file
ODMCP_TENANT_ID="{TENANT_ID}"
ODMCP_CLIENT_ID="{CLIENT_ID}"
  1. Hit F5 to start the server
  2. Inspector works well for testing the MCP server itself or use your LLM Client of choice!

To test the delegated authentication flow as of June 5 Visual Studio Code insiders supports the protected resource flow.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft’s Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party’s policies.

Usage

PLEASE USE THIS ONLY IN A DEVELOPER ENVIRONMENT — NOT FOR PRODUCTION

For more information, see the Microsoft identity platform security guidance.

Quick Start

1

Clone the repository

git clone https://github.com/microsoft/files-mcp-server
2

Install dependencies

cd files-mcp-server
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownermicrosoft
Repofiles-mcp-server
LanguageTypeScript
LicenseMIT License
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation