Microsoft 365 Files
MCP server by mindstone Community
Microsoft 365 Files is an MCP server that lets an AI assistant list, search, upload, download, share, and read OneDrive files via Microsoft Graph. It is listed in Mindstone's source-available mcp-servers repository.
Install Microsoft 365 Files
Built from the published package, never by AI.
claude mcp add microsoft-365-files -e MS_CLIENT_ID=YOUR_MS_CLIENT_ID -e MS_CONFIG_DIR=YOUR_MS_CONFIG_DIR -- npx -y @mindstone/mcp-server-microsoft-filesRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"microsoft-365-files": {
"env": {
"MS_CLIENT_ID": "YOUR_MS_CLIENT_ID",
"MS_CONFIG_DIR": "YOUR_MS_CONFIG_DIR"
},
"args": [
"-y",
"@mindstone/mcp-server-microsoft-files"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"microsoft-365-files": {
"env": {
"MS_CLIENT_ID": "YOUR_MS_CLIENT_ID",
"MS_CONFIG_DIR": "YOUR_MS_CONFIG_DIR"
},
"args": [
"-y",
"@mindstone/mcp-server-microsoft-files"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"microsoft-365-files": {
"env": {
"MS_CLIENT_ID": "YOUR_MS_CLIENT_ID",
"MS_CONFIG_DIR": "YOUR_MS_CONFIG_DIR"
},
"args": [
"-y",
"@mindstone/mcp-server-microsoft-files"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add microsoft-365-files --env MS_CLIENT_ID=YOUR_MS_CLIENT_ID --env MS_CONFIG_DIR=YOUR_MS_CONFIG_DIR -- npx -y @mindstone/mcp-server-microsoft-files{
"mcpServers": {
"microsoft-365-files": {
"env": {
"MS_CLIENT_ID": "YOUR_MS_CLIENT_ID",
"MS_CONFIG_DIR": "YOUR_MS_CONFIG_DIR"
},
"args": [
"-y",
"@mindstone/mcp-server-microsoft-files"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install Microsoft 365 Files in Antigravity CLI
gemini mcp add microsoft-365-files npx -y @mindstone/mcp-server-microsoft-filesGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the microsoft-365-files block.
About
Microsoft 365 Files is an MCP server from Mindstone that connects an AI assistant to OneDrive files through Microsoft Graph. According to the repository, it can list, search, upload, download, share, and read OneDrive files. It reuses the Microsoft 365 OAuth surface that the host application orchestrates, so sign-in is handled by the host rather than by the connector itself.
The server is one of the connectors in the mindstone/mcp-servers monorepo, which the repository describes as source-available MCP servers that work with any MCP host, including Claude Desktop, Cursor, and Rebel. It is aimed at users who want an AI assistant to work with files stored in their Microsoft 365 OneDrive. Each server builds on its own with npm install and npm run build.
Written from the project's README and checked against it.
Tools it gives your assistant
listLists OneDrive files.searchSearches OneDrive files.uploadUploads files to OneDrive.downloadDownloads OneDrive files.shareShares OneDrive files.read textReads the text content of OneDrive files.
What you need
- Microsoft 365 account with OneDrive
- Host-orchestrated Microsoft 365 OAuth
- Node.js and npm to build the server
| Setting | Needed | What it is |
|---|---|---|
MS_Environment variable | Required | Microsoft Entra (Azure AD) application client ID |
MS_Environment variable | Required | Path to the per-user Microsoft config directory (credentials/, accounts.json) |
MS_Environment variable | Optional | Account email when running in multi-account per-instance mode (falls back to the first account in accounts.json) |
MS_Environment variable | Optional | Logical package ID surfaced in error responses Default: Microsoft365Files |
MICROSOFT_Environment variable | Optional | Override the upstream Microsoft Graph request timeout in milliseconds (max 300000 = 5 min) Default: 60000 |
MICROSOFT_Environment variable | Optional | Optional host renewal coordinator state file containing its loopback port and bearer token |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- List my latest OneDrive files in the Projects folder.
- Search OneDrive for the Q3 budget spreadsheet and show its details.
- Download the contract draft from OneDrive and read its text for me.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Microsoft 365 Files
All alternatives →Creates, opens, edits and exports Word, Excel, PowerPoint and PDF files through the MR Office MCP server. It suits AI assistants that need to work on real office documents, with the editor shown in chat when the client supports MCP Apps.
Parses Korean documents such as HWP, HWPX, PDF, XLSX, DOCX and PPTX into Markdown, and writes HWPX or HWP official documents from Markdown. It runs as a library, CLI, HTTP API or MCP server for AI assistants.
Desktop Commander is an MCP server that lets an AI assistant run terminal commands, edit files and manage processes on your computer. It is for developers and users who want an assistant to work with local code and text.
Connects AI assistants to the Linear GraphQL API so they can manage projects, issues, and documents. Built for teams that want planning and project-management workflows in Linear, beyond basic issue CRUD.
pptx-viewer MCP server and tools: manipulate, convert, and collaborate on PowerPoint .pptx files from AI agents.
Reactive Resume is a free, open-source resume builder with an MCP server for document management, imports, exports, checks and job application workflows. It suits people who want to write and track resumes and keep their data under their own control. The source describes the app itself and does not describe the DeepSeek Harness connection.
Compare with MR Office, kordoc or Desktop Commander
Microsoft 365 Files: common questions
Does Microsoft 365 Files need a Microsoft 365 account?
The repository says it uses the host-orchestrated Microsoft 365 OAuth surface and Microsoft Graph to reach OneDrive files. The source does not list further account requirements.
Which MCP hosts can use this server?
The repository says the mcp-servers connectors work with any MCP host and names Claude Desktop, Cursor, and Rebel as examples.
Is the source code available?
The repository describes its MCP servers, including this one, as source-available and hosted publicly on GitHub under the mindstone organization.
How do I install Microsoft 365 Files?
In Claude Code run claude mcp add microsoft-365-files -e MS_CLIENT_ID=YOUR_MS_CLIENT_ID -e MS_CONFIG_DIR=YOUR_MS_CONFIG_DIR -- npx -y @mindstone/mcp-server-microsoft-files. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Microsoft 365 Files the official server?
Microsoft 365 Files is a community project by mindstone, not verified by a company domain.
Is Microsoft 365 Files free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is Microsoft 365 Files safe to use?
It scores 58 of 100. Grades: maintenance A, licence F, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Microsoft 365 Files?
Similar MCP servers: MR Office, kordoc, Desktop Commander, MCP Linear.
Does Microsoft 365 Files work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
