One drive — Claude Code MCP server: features and setup
Give an agent tools to search OneDrive, manage files and folders, and inspect sharing permissions. Useful when cloud-drive tasks belong in an assistant workflow.
no license 2,146 installs updated 2025-11-19
claude mcp add --transport http one-drive https://one_drive.run.toolsWhat One drive does
The server lets an agent browse folders, search for files, inspect drive and item details, download content, and find byte-identical copies across folders. It can also create folders, copy or move items, rename them, and delete them.
Separate tools handle sharing: create a link, review current permissions, or revoke an anonymous grant. Copies run asynchronously, and the server can check their status. One limitation matters for fresh files: search indexing can take seconds or minutes to catch up, so an item may not appear right after it is created.
What it helps with
- locate a file or folder in OneDrive
- download a file and inspect its details
- find identical copies across folders
- create a sharing link for an item
- review or revoke file permissions
Example prompts for the agent
- Find the
budget.xlsxfile in my OneDrive. - Find byte-identical files and identify the copies marked for deletion.
- Check who can access the
Reportsfolder and revoke its anonymous link.
How to install One drive
Platform CLI: remote server
claude mcp add --transport http one-drive https://one_drive.run.toolsPlatform CLI: remote server
codex mcp add one-drive --url https://one_drive.run.toolsConfig file
{
"mcpServers": {
"one-drive": {
"url": "https://one_drive.run.tools"
}
}
}Config file
{
"servers": {
"one-drive": {
"type": "http",
"url": "https://one_drive.run.tools"
}
}
}Platform CLI: remote server
gemini mcp add -t http one-drive https://one_drive.run.toolsStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about One drive
How do I install One drive in Claude Code?
Run claude mcp add --transport http one-drive https://one_drive.run.tools to add the MCP server over HTTP.
What does One drive do?
It gives an agent tools to search and browse OneDrive files, download content, manage folders, and inspect sharing access.
Why might search miss a newly created file?
OneDrive search indexing can take seconds or minutes to reflect new items.