# onedrive-cli MCP server

> Allows an AI client to browse, search, and read files from a OneDrive account via a read-only MCP server.

- Repository: https://github.com/lionello/onedrive-cli
- Page: https://hostedmcp.org/servers/lionello/onedrive-cli
- Transport: —
- Stars: 179
- License: MIT

## FAQ

### How do I authenticate with OneDrive?

Run the 'onedrive login' command, which opens a Microsoft login page in your browser to obtain an access token.

### Is the MCP server capable of modifying my files?

No, the MCP server is read-only and only issues GET requests, meaning it cannot modify your drive.

### How long are the access tokens valid?

Tokens are valid for one hour, so you may need to run the login command again if they expire.

### Can I use the MCP server in a read-only mode?

Yes, you can use the 'login -r' command to obtain a read-only token for the server.
