Storage

OneDrive MCP Server

Connect your account, then chat with AI to run tools.

Find shared files, download documents, audit permissions, and roll back versions from chat — connect OneDrive once in MCPBundles and skip the drive UI hunt.

Best forKnowledge WorkersProject ManagersLegal OpsRemote Collaborators

Try this workflow

Find a shared deck

Search my OneDrive for 'Q3 roadmap', show the top three matches with size and last modified date, then download the newest as text if it is a doc.

Managed
17 tools
Agent guide included

Opens MCPBundles Studio with this server selected. After sign-in, chat and run tools from the same thread.

Browse all tools

What you can do with OneDrive

Built for

Knowledge Workers, Project Managers, Legal Ops Teams, Remote Collaborators

Example workflows

Find a shared deck

Search plus metadata and content download in one flow.

Try this

Search my OneDrive for 'Q3 roadmap', show the top three matches with size and last modified date, then download the newest as text if it is a doc.

Audit file access

Permission list plus revoke for access cleanup.

Try this

List who has access to the OneDrive file id I paste, summarize each permission role, and revoke any anonymous link grants.

Recover prior version

Version list plus restore for accidental edits.

Try this

Show version history for my OneDrive spreadsheet id, pick the version from yesterday afternoon, and restore it.

Context to know first

What is OneDrive MCP?

It lets AI agents browse, upload, share, and restore files in your OneDrive and connected SharePoint libraries after you connect Microsoft in MCPBundles.

Who is this for?

Teams who store working files in OneDrive and want search, downloads, sharing audits, and version rollback from chat without opening the web UI.

Can agents change my files?

Yes when prompted — agents can upload, move, share, delete, revoke permissions, and restore prior versions. Each session follows your instructions.

AI Skill
SKILL.md

Domain knowledge for OneDrive — workflow patterns, data models, and gotchas for your AI agent.

OneDrive

OneDrive for the signed-in user. Browse, upload, share, and restore files and folders; the default drive is usually personal OneDrive but additional document libraries may appear as separate drives.

First moves

  1. Drives — list drives when the account has multiple libraries (personal OneDrive, SharePoint sites).
  2. Drive info — read storage quota on the default drive or a specific drive id.
  3. Items — browse a folder's children, search by keyword, or fetch one item's metadata by id.
  4. Item by path — resolve a path like /Documents/report.pdf to item metadata when you lack the id.
  5. File content — download text or small binaries inline; larger files return a download link.
  6. Recent and shared — surface recently opened files or items shared with the user without walking the full tree.

Hierarchy

Drive → folder items → file items.

Folder ids and file ids come from list, search, recent, or shared responses. Use the drive root as the parent when listing top-level children.

Operational order

  1. List drives when the user mentions SharePoint or you need a non-default library id.
  2. Drive info when you need quota or owner metadata before bulk downloads.
  3. Browse, search, or resolve by path before downloading — confirm mime type and size from metadata.
  4. List permissions before revoking collaborator access; list versions before rolling back a file.
  5. Download content only after you hold a file item id (not a folder id).
  6. Check recent or shared lists for "that file someone sent me" before recursive folder walks.

Gotchas

  • Folders vs files — content download applies to file items; folders return metadata only.
  • Search scope — drive search runs from the drive root; combine with folder browsing when the user names a specific path.
  • Large files — inline text and small binaries are capped; oversized payloads spill to a download link.
  • Shared drives — pass the drive id when working outside the default personal library.
  • Version restore — overwrites the current file; list versions first to pick the right snapshot.
  • Pagination — folder listings paginate; keep paging until you have the full set or the user stops you.
  • Rate limits — prefer search and recent lists over deep recursive listing on large libraries.

Tools in this Server (17)

Onedrive Create Folder

Create a folder in OneDrive under parent_id (use root for top level). Returns the new folder item metadata including id for subsequent uploads.

Onedrive Create Share Link

Create a sharing link for a OneDrive file or folder. Returns the webUrl and link metadata. Use view scope for read-only sharing.

Onedrive Delete Item

Delete a OneDrive file or folder by item id. Deleting a folder removes its contents. This action is not reversible through the API.

Onedrive Get Drive Info

Return OneDrive storage quota and drive metadata for the default drive or a specific drive id. Use before large downloads to check remaining space.

Onedrive Get Drives

List OneDrive and SharePoint document libraries available to the signed-in user, or fetch one drive by id. Returns drive name, drive type, and owner.

Onedrive Get File Content

Download file bytes for a OneDrive item. Returns inline text or base64 for small payloads; larger files include a presigned download link (spillover)....

Onedrive Get Item By Path

Resolve a OneDrive file or folder path to item metadata (id, size, mime, webUrl). Use when you know the human path but not the Graph item id.

Onedrive Get Items

List folder children, search drive items, or fetch one item's metadata by id. Pass id for a single file or folder. Pass search for keyword lookup from...

Onedrive Get Recent Files

List recently accessed OneDrive files for the signed-in user. Useful for 'that document I had open yesterday' without folder traversal.

Onedrive Get Shared Items

List files and folders shared with the signed-in user (sharedWithMe). Surfaces collaborator content without searching the full drive tree.

Onedrive List Permissions

List sharing permissions granted on a OneDrive file or folder. Returns permission ids, roles, and grantee metadata — use permission ids to revoke acce...

Onedrive List Versions

List prior versions of a OneDrive file. Returns version ids, last modified timestamps, and sizes. Use a version id with the restore version tool to ro...

Onedrive Move Or Copy Item

Move or copy a OneDrive item to another folder. Move updates the item in place; copy creates a duplicate under destination_parent_id. Optionally renam...

Onedrive Restore Version

Restore a OneDrive file to a prior version by version id. Overwrites the current file content — list versions first to confirm the target snapshot.

Onedrive Revoke Permission

Remove a sharing permission from a OneDrive file or folder. Obtain permission_id from the list permissions tool. Does not delete the item itself.

Onedrive Update File Content

Replace the content of an existing OneDrive file by item id. The entire file is overwritten. Use upload file content instead when creating a new file.

Onedrive Upload File Content

Upload a file to OneDrive. Provide content_text for small text payloads, or file_content_base64 (≤1 MB), file_url, or local_path for binary content. F...

Frequently Asked Questions

What is OneDrive MCP?

It lets AI agents browse, upload, share, and restore files in your OneDrive and connected SharePoint libraries after you connect Microsoft in MCPBundles.

Who is this for?

Teams who store working files in OneDrive and want search, downloads, sharing audits, and version rollback from chat without opening the web UI.

Can agents change my files?

Yes when prompted — agents can upload, move, share, delete, revoke permissions, and restore prior versions. Each session follows your instructions.

How do large downloads work?

Small files return inline content. Larger binaries return a download link the agent can open or chain into upload tools elsewhere.

How do I connect OneDrive to my AI agent?

Add the MCPBundles server URL to your MCP client configuration (Claude Desktop, Cursor, VS Code, etc.). The URL format is: https://mcp.mcpbundles.com/bundle/onedrive. Authentication is handled automatically.

How many tools does OneDrive provide?

OneDrive provides 17 tools that can be called by AI agents, along with a SKILL.md that gives your AI agent domain knowledge about when and how to use them.

What authentication does OneDrive require?

OneDrive uses One-click sign in. OneDrive requires credentials. Connect via MCPBundles and authentication is handled automatically.

Setup Instructions

Connect OneDrive to any MCP client in minutes

MCP URL
https://mcp.mcpbundles.com/bundle/onedrive

One-click install:

The link prefills the Add custom connector dialog — you still review the values and click Add, then Connect to complete OAuth.

Or add manually

  1. Open claude.ai → Settings → Connectors.
  2. Click the + button and choose Add custom connector.
  3. Set Name to OneDrive and paste the MCP URL into Remote MCP server URL.
  4. Click Add. OneDrive will appear under Not connected — select it and click Connect to complete OAuth.
Name: OneDrive
Remote MCP server URL: https://mcp.mcpbundles.com/bundle/onedrive
Authentication: OAuth

Custom connectors at claude.ai require a paid Claude plan (Pro, Max, Team, or Enterprise).

Ready to use OneDrive?

Sign in to connect your credentials and start running tools from the chat.