Best for
- Users who need AI access to personal OneDrive files
- CLI enthusiasts
- Scenarios requiring strictly read-only access
onedrive-cli offers a cross-platform CLI for OneDrive Personal and a read-only MCP server, suitable for AI access to cloud files. It does not support OneDrive for Business, and it's a community project, not official. Users should handle tokens securely and prefer read-only tokens to reduce risk.
onedrive-cli is a cross-platform command line tool for managing OneDrive (Personal). It also provides a read-only MCP server (over stdio) that lets MCP clients like Claude browse and read your OneDrive. The MCP server only issues GET requests and cannot modify the drive.
onedrive login and follow the OAuth flow (recommend login -r for read-only token). 2. Add the server configuration to your MCP client (e.g., Claude Desktop) via claude_desktop_config.json with mcpServers. 3. The client will launch onedrive mcp automatically.{
"mcpServers": {
"onedrive": {
"command": "onedrive",
"args": [
"mcp"
]
}
}
}