Microsoft 365 Files
local MCP serverMicrosoft 365 Files is a local MCP server: Microsoft 365 OneDrive files via Graph: list, search, get, upload, download, share, read text. Install it from npm as @mindstone/mcp-server-microsoft-files.
Installation
Terminal
claude mcp add mcp-server-microsoft-files -e MS_CLIENT_ID=... -e MS_CONFIG_DIR=... -e MS_ACCOUNT_EMAIL=... -e MS_MCP_PACKAGE_ID=... -e MICROSOFT_REQUEST_TIMEOUT_MS=... -- npx -y @mindstone/mcp-server-microsoft-files
Run in your project folder. Add --scope user to use it everywhere.
Claude Desktop, Cursor & other clients
Add to claude_desktop_config.json or .cursor/mcp.json.
{
"mcpServers": {
"mcp-server-microsoft-files": {
"command": "npx",
"args": [
"-y",
"@mindstone/mcp-server-microsoft-files"
],
"env": {
"MS_CLIENT_ID": "...",
"MS_CONFIG_DIR": "...",
"MS_ACCOUNT_EMAIL": "...",
"MS_MCP_PACKAGE_ID": "...",
"MICROSOFT_REQUEST_TIMEOUT_MS": "..."
}
}
}
}Fill in the environment variables with your own credentials.
What you need
- Runtime: Node.js 18+ (runs with npx).
- MCP client: Claude Code, Codex, Antigravity, Claude Desktop, Cursor or any other client that speaks MCP over stdio.
- Environment variables:
MS_CLIENT_ID,MS_CONFIG_DIR,MS_ACCOUNT_EMAIL,MS_MCP_PACKAGE_ID,MICROSOFT_REQUEST_TIMEOUT_MS
Summary
Microsoft 365 OneDrive files via Graph: list, search, get, upload, download, share, read text.
Microsoft 365 Files vs similar servers
| Server | Stars | Type | API key | Runtime |
|---|---|---|---|---|
| Microsoft 365 Files | 12 | Local | Yes | npm |
| arxiv-mcp-server | 3,177 | Local | Yes | pypi |
| Microsoft 365 MCP Server | 998 | Local | No | npm |
| akb | 161 | Local | Yes | npm |
| mcp-microsoft-todo | 12 | Local | Yes | npm |
Questions
It reads 5 environment variables: MS_CLIENT_ID, MS_CONFIG_DIR, MS_ACCOUNT_EMAIL, MS_MCP_PACKAGE_ID, MICROSOFT_REQUEST_TIMEOUT_MS. Set them in your MCP config before starting the server.
Node.js 18+ (runs with npx), plus an MCP client such as Claude Code, Codex, Claude Desktop or Cursor.
Microsoft 365 Files is a local MCP server distributed as the npm package @mindstone/mcp-server-microsoft-files.
Run: claude mcp add mcp-server-microsoft-files -e MS_CLIENT_ID=... -e MS_CONFIG_DIR=... -e MS_ACCOUNT_EMAIL=... -e MS_MCP_PACKAGE_ID=... -e MICROSOFT_REQUEST_TIMEOUT_MS=... -- npx -y @mindstone/mcp-server-microsoft-files
Run: codex mcp add mcp-server-microsoft-files --env MS_CLIENT_ID=... --env MS_CONFIG_DIR=... --env MS_ACCOUNT_EMAIL=... --env MS_MCP_PACKAGE_ID=... --env MICROSOFT_REQUEST_TIMEOUT_MS=... -- npx -y @mindstone/mcp-server-microsoft-files
Similar MCP servers
NameStars
- arxiv-mcp-serverio.github.blazickjp/arxiv-mcp-server3,177
- Microsoft 365 MCP Serverio.github.Softeria/ms-365-mcp-server998
- akbio.github.dnotitia/akb161
- mcp-microsoft-todoio.github.MAG-Cie/mcp-microsoft-todo12
- Repomixio.github.yamadashy/repomix29K
- Firecrawl MCP Serverio.github.firecrawl/firecrawl-mcp-server7,526
- Agent-Native Assetsio.github.BuilderIO/agent-native-assets6,874
- braveai.smithery/brave1,477