How to connect One drive to Claude

Connect Claude Web, Desktop and Cowork to One drive MCP. Share project folder with your team, download the latest version of report.docx, and more using natural language, with authentication handled for you.

One drive logoOne drive
Oauth2S2s Oauth2

OneDrive is Microsoft’s cloud storage for storing, syncing, and sharing files across devices. Access your files securely anywhere with real-time collaboration and offline support.

101 Tools9 Triggers

Introduction

Claude is Anthropic's AI assistant, available on the web, in the desktop app, and on mobile. Cowork is its agent for knowledge work, and it runs on all of those surfaces too. Connected to your apps, Claude can work with your files and services to accomplish complex tasks on your behalf.

This guide walks you through the easiest and most secure way to connect your One drive account to Claude via Composio Connect, enabling it to share project folder with your team, download the latest version of report.docx, check who can access budget.xlsx, and more such actions on your behalf without compromising your account security.

Setup is the same on Claude Web, Desktop, and Cowork, and you only need to do it once. The connector is tied to your account, so it's available in all three.

You can also connect Claude to multiple One drive accounts with Composio.

For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.

Also integrate One drive with

Connecting One drive to Claude Web, Desktop, and Cowork

Two ways to add the Composio connector. Pick whichever you prefer.

1. Add with one click

Click the button. Claude opens with the Composio connector filled in. Click Add, then go to step 2.

Add to Claude

Add manually

In Claude Desktop, click Customize in the left sidebar, then select Connectors and click the + icon at the top.

Claude Desktop connectors screen with Add custom connector selected

Click Add custom connector and paste in the Composio MCP server URL:

bash
https://connect.composio.dev/mcp
Add custom connector dialog with Composio MCP server URL

2. Authorize in your browser

Click Connect. You'll be redirected to a browser window where you can authorize Composio to continue.

Composio authorization screen for Claude Web, Desktop, and Cowork

3. Connect your One drive account

Back in Claude, ask it to connect to One drive or give it any One drive-related task.

For example, ask Claude to:

  • "Share project folder with your team"
  • "Download the latest version of report.docx"
  • "Check who can access budget.xlsx"

It will prompt you to authenticate and authorize access.

That's it. Composio's tools are now available in Claude, and your One drive account is ready to use.

What is the One drive Claude Connector, and what's possible with it?

The OneDrive MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your OneDrive account. It provides structured and secure access to your files, folders, sharing settings, activity history, and Excel workbooks, so your agent can inspect, copy, share, track, and manage content on your behalf.

  • File and folder management: Have your agent inspect file details, copy content to another location, delete unwanted items, or permanently remove sensitive files.
  • Sharing and access control: Let the agent create sharing links, invite people to files or folders, review permissions, and revoke access when it is no longer needed.
  • Activity and version tracking: Direct your agent to review recent OneDrive activity, inspect changes to specific files, track root folder updates, and retrieve version history.
  • Excel workbook operations: Instruct your agent to open workbook sessions, inspect table contents, format spreadsheet ranges, and close sessions when the work is complete.
  • SharePoint content management: Have your agent read site details and page content, review or create list items, track list changes, inspect site columns, and manage list permissions.

Troubleshooting

1. Why does Claude not use the Composio connector for One drive?

The connector can show as connected, but Claude must use it in each One drive conversation.

  • Click + at the lower left of the chat, or type /.
  • Hover Connectors.
  • Turn on Composio.
  • Ask Claude to connect to One drive again.

2. Why does Claude show an MCP server error before One drive connects?

Claude can show Couldn't reach the MCP server or Authorization with the MCP server failed when you add the connector for One drive.

  • Check that the connector URL is https://connect.composio.dev/mcp.
  • Connectors run from Anthropic's cloud, so your device network is usually not the problem.
  • Add the connector again from Customize > Connectors, then ask Claude to connect One drive.
  • If it fails again, send the error and the ofid_ reference id to support@composio.dev.

3. Why does the One drive authorization link not work?

The Composio connector is one server. Your One drive account connects separately when Claude asks for it.

  • If the browser does not open, or the link expires, ask Claude to retry the One drive connection.
  • Composio creates a fresh One drive authorization link.
  • Open that link in your browser and finish the One drive sign-in.

4. Why do One drive actions fail after they worked before?

The One drive connection can expire or lose permission.

  • Ask Claude to inspect the One drive connection.
  • If the connection is unhealthy, disconnect it when Claude prompts you.
  • Reconnect the One drive account and retry the action.
  • If Claude shows a permission prompt, approve it before Claude changes data in One drive.
  • If the action still fails with a permission error, check that the connected account has that permission in One drive itself.

5. How do I switch to a different One drive account?

Claude can manage the One drive connection for you.

  • Ask Claude to disconnect or delete the current One drive account.
  • Ask Claude to connect One drive again.
  • Open the new Composio authorization link for One drive.
  • Sign in with the other One drive account in the browser.
  • After the account connects, ask Claude to retry the One drive task.

6. Why is my One drive connection missing in Claude Desktop or on a Team plan?

The connector belongs to your Claude account, so your One drive connection works in Claude Web, Desktop, and Cowork.

  • In Claude Desktop, open Customize > Connectors.
  • Next to Composio, click ⋮ and click Clear cache.
  • If One drive tools still do not appear, click ⋮, disconnect, remove the connector, and add it again.
  • On Team or Enterprise, an Owner or Primary Owner must enable the connector before you can connect One drive.
TOOLS & TRIGGERS

Supported Tools and Triggers

Every One drive action and event your agent gets out of the box.

Add Workbook Worksheet

Adds a new worksheet to an existing Excel workbook in OneDrive or SharePoint.

Calculate Workbook

Recalculate formulas in an Excel workbook at the requested depth.

Check In Drive Item

Tool to check in a checked out driveItem resource, making the version of the document available to others.

Checkout Drive Item

Tool to check out a driveItem to prevent others from editing it and make your changes invisible until checked in.

Clear Workbook Range

Clears values, formats, or both from a worksheet range in an Excel workbook stored in OneDrive or SharePoint without deleting cells or shifting neighboring data.

Close Workbook Session

Close an Excel workbook session without deleting the workbook.

Copy Item

Copies a DriveItem file or folder, optionally renaming it or specifying a destination folder.

Create Drive Item Permission

Tool to create a new permission on a OneDrive drive item.

Create Sharing Link

Tool to create a sharing link for a DriveItem (file or folder) by its unique ID.

Create SharePoint List Item

Create an item in a SharePoint list using Microsoft Graph through the OneDrive connection.

Create Upload Session

Create only a resumable upload session for a named file; this action does not upload bytes.

Create Upload Session By Path

Create only a resumable upload session at a root-relative path; this action does not upload bytes.

Create Workbook Session

Create a persistent or temporary session for an Excel workbook.

Delete Item

Delete a DriveItem (file or folder) by ID from a specified drive or user's OneDrive, defaulting to the authenticated user's drive.

Permanently Delete Drive Item

Tool to permanently delete a driveItem by its ID without moving it to the recycle bin.

Delete Drive Item Permission

Tool to delete a permission from a drive item.

Delete Shares Permission

Tool to delete the permission navigation property for a shared drive item.

Delete SharePoint Item Permission

Revoke a Microsoft Graph beta permission from a SharePoint list or list item.

Delete Workbook Range

Deletes a range of cells from an Excel worksheet in OneDrive, shifting remaining cells up or left to fill the gap.

Delete Workbook Worksheet

Deletes a worksheet from a workbook in OneDrive by its ID or name.

Discard Checkout

Tool to discard the checkout of a driveItem, releasing it and discarding any changes made while checked out.

Download a file

Downloads a file from a user's OneDrive using its item ID, which must refer to a file and not a folder.

Download file by path

Downloads the contents of a file from OneDrive by its path.

Download item as format

Tool to download the contents of a driveItem converted to a specific format (e.g., PDF or HTML).

Download Item Thumbnail

Download thumbnail image bytes for a DriveItem identified by item ID.

Download Drive Item Version Content

Tool to download the contents of a specific previous version of a drive item (file).

Download Thumbnail by Path

Download thumbnail image bytes for a path-addressed item in the current user's OneDrive.

Follow Drive Item

Tool to follow a driveItem (file or folder) in OneDrive or SharePoint.

Format Workbook Range

Apply dimensions, alignment, wrapping, font, fill, and borders to a workbook range.

Get document comments

Extracts comments from a Word .docx file in OneDrive.

Get Drive

Retrieves properties and optionally expanded relationships of a Drive resource, including a specific drive or a user's, group's, or site's drive.

Get DriveItem by Sharing URL

Resolve a OneDrive or SharePoint sharing URL or share ID to drive item metadata and available IDs.

Get Drive Item List Item

Retrieve the SharePoint list item associated with a driveItem.

Get Drives Following

Tool to retrieve a specific followed driveItem from a drive.

Get Group Drive

Tool to retrieve the document library (drive) for a Microsoft 365 group.

Get Item Metadata

Retrieves the metadata of a DriveItem by its unique ID.

Get Item by Path

Retrieve OneDrive or SharePoint driveItem metadata by drive-relative path.

Get Item Permissions

Retrieve a page of permissions for a DriveItem by ID, or by path in the current user's drive.

Get Item Thumbnails

Tool to retrieve the thumbnails associated with a DriveItem.

Get Item Versions

Tool to retrieve the version history of a DriveItem by its unique ID.

Get Drive Root Folder

Retrieve metadata for the root folder of the signed-in user's OneDrive or a specified user's OneDrive, such as size, child count, or web URL.

Get Shared Item by ShareId

Tool to access a shared DriveItem or collection of shared items using a shareId or encoded sharing URL.

Get SharePoint List Items

Tool to get the items (list items) within a specific SharePoint list on a site.

Get Site Details

Retrieves metadata for a specific SharePoint site by its ID.

Get SharePoint Site Page Content

Gets the content of a modern SharePoint site page.

Get Drive Special Folder

Tool to retrieve a special folder in OneDrive by name.

Get User Profile

Retrieves profile properties for a Microsoft user by user ID or user principal name, including available contact details, job information, and account status.

Get Workbook Range Fill

Read the fill color applied to an Excel worksheet range.

Get Workbook Used Range

Retrieves the used range of a worksheet in an Excel workbook stored in OneDrive or SharePoint without requiring the caller to know an explicit A1 range address.

Get Workbook Worksheet

Retrieves a specific worksheet from an Excel workbook stored in OneDrive or SharePoint using Microsoft Graph API.

Grant Shares Permission

Tool to grant users access to a link represented by a permission using an encoded sharing URL.

Grant SharePoint Item Permission

Grant an application permission on a SharePoint list or list item using Microsoft Graph beta.

Inspect Workbook Table

Read a workbook table's occupied range and one page of its columns.

Invite User to Drive Item

Invite users or grant permissions to a OneDrive file or folder with specified access roles.

List Drive Activities

Tool to retrieve recent activities on the authenticated user's OneDrive.

List All Drive Items

Lists a complete OneDrive or SharePoint drive safely, one Microsoft Graph delta page per invocation.

List Drive Bundles

Tool to retrieve a list of bundle resources from a specified drive.

List Drives

Tool to retrieve a list of Drive resources available to the authenticated user, or for a specific user, group, or site.

List Folder Children

List the direct children (files/folders) of a OneDrive/SharePoint folder by DriveItem ID or path.

List Followed Sites

List SharePoint sites followed by the signed-in organizational user.

List Drive Item Activities

Tool to list recent activities for a specific item in a OneDrive drive.

List OneDrive Shared Items

List files shared from other people's OneDrive accounts using Microsoft Graph Search match-all and a OneDrive-personal URL heuristic.

List Root Drive Changes

List drive item changes using Microsoft Graph delta, including additions, modifications and deletions, for a specified drive or the current user's drive.

List Shared Drive Item Children

List one page of children beneath a folder addressed by a sharing link.

List Shares Permission

Tool to retrieve permission details for a shared OneDrive or SharePoint item using a share ID.

List SharePoint Item Permissions

List Microsoft Graph beta permissions from a SharePoint list or list item.

List SharePoint List Items Delta

Tool to track changes to items in a SharePoint list using a delta query.

List Site Columns

Tool to list all column definitions for a SharePoint site.

List Site Drive Items Delta

Tool to track changes to DriveItems in the default document library of a SharePoint site.

List Site Lists

Tool to list all lists under a specific SharePoint site.

List Site Recycle Bin Items

Return one page of deleted items from a SharePoint site's recycle bin.

List Site Subsites

Lists subsites of a SharePoint site for an organizational Microsoft 365 account.

List Subscriptions

Lists current webhook subscriptions for the authenticated user or app, one page at a time.

List Workbook Names

List defined names and formulas in an Excel workbook.

List Workbook Worksheets

Retrieves a list of all worksheets in an Excel workbook stored in OneDrive or SharePoint.

Move Item

Tool to move a file or folder to a new parent folder in OneDrive.

Create folder

Creates a new folder in the user's OneDrive with configurable conflict behavior, optionally within a specified parent_folder (by ID or full path from root) which, if not the root, must exist and be accessible.

Create a new text file

Creates a plain-text file in a user's OneDrive folder, identified by ID or path.

Find Item

Find files or folders by exact name within a specified OneDrive folder, without searching subfolders.

Find Folder

Find direct child folders in a OneDrive parent folder, optionally matching an exact name.

List OneDrive items

Lists one page of files and folders at the root of a user's OneDrive without recursively listing subfolders.

Upload file

Uploads a file to a OneDrive or SharePoint folder using chunked uploads, creating missing destination folders as needed.

Preview Drive Item

Generates or retrieves a short-lived, permission-bound embeddable URL for a preview of a specific item.

Read Workbook Range

Reads a range of cells from an Excel workbook worksheet stored in OneDrive or SharePoint using Microsoft Graph API.

Restore Deleted Item

Tool to restore a deleted OneDrive driveItem (file or folder) from the recycle bin.

Restore Item Version

Restores a previous version of a DriveItem (file) by creating a new version with the content of the specified version.

Revoke Sharing Link Grants

Remove selected recipients from a work or school specific-user sharing link.

Search Drive Items

Search OneDrive and accessible SharePoint files with Microsoft Graph Search.

Search Items

Search OneDrive files and folders by keyword, with sorting and pagination.

Search SharePoint Sites

Search SharePoint sites visible to an organizational Microsoft account.

Track Folder Changes

Track changes beneath one folder, one Microsoft Graph delta page at a time.

Delete Drive Following

Tool to unfollow a driveItem by removing it from the user's followed items collection.

Update Drive Item Metadata

Tool to update the metadata of a specific item (file or folder) in OneDrive.

Update Drive Item Permissions

Tool to update the roles of an existing permission on a OneDrive drive item.

Update File Content

Tool to update an existing file's content in OneDrive.

Update SharePoint Item Permission

Update an application permission on a SharePoint list or list item using Microsoft Graph beta.

Update SharePoint List Item Fields

Update field values on a SharePoint list item using Microsoft Graph through the OneDrive connection.

Update Table Column Range

Update values, formulas, number formats, or row and column visibility in a table column's whole or data-body range.

Update Workbook Range

Updates a range in a workbook worksheet using Microsoft Graph API.

Update Workbook Worksheet

Updates properties of a worksheet in an Excel workbook stored in OneDrive.

Write Workbook Cell

Updates the value, formula, or format of a specific cell in an Excel workbook stored in OneDrive.

FAQ

Frequently asked questions

Start with One drive.It takes 30 seconds.

Managed auth, hosted MCP servers, and every One drive tool your agent needs.Free to start.

Start building