OneDrive for AI agents

OneDrive is Microsoft's cloud storage service for storing, syncing, and sharing files and Office documents across devices. Individuals and businesses use it for everyday file storage and collaboration. Connect it once through Arc0, and your agent, or Claude, ChatGPT and Cursor, can use it through one MCP endpoint, limited to what each user approved.

Files and storageOAuth 2.0MCP + RESTonedrive.live.com
AUDIT LOG · ONEDRIVEPOLICY: acme-support
09:41:07 · claude · u_8f2read
onedrive.list_drives
List Drives✓ allowed · 212ms
09:41:08 · claude · u_8f2read
onedrive.get_item
Get Item Metadata✓ allowed · 164ms
09:41:09 · claude · u_8f2write
onedrive.create_link
Create Sharing Link✓ approved · approved by user
09:41:12 · claude · u_8f2destructive
onedrive.delete_item
Delete Item✕ blocked · policy: deny
EVERY ONEDRIVE CALL, ON THE RECORD
01 · USE CASES

What agents do in OneDrive.

01

Share a file with a colleague

Create a sharing link for a document so a colleague can view or edit it without an email attachment.

02

Check a file's metadata read-only

Look up a drive item's metadata and version history before deciding whether to update it.

03

Permanently delete a file with approval

Remove a file beyond the recycle bin only after explicit approval, since the action is irreversible.

02 · ACTIONS

88 OneDrive actions, graded by risk.

Every OneDrive action is tagged read, write or destructive, so one policy covers the whole app and new actions inherit the right default.

read

46

Look things up. Allowed by default.

  • onedrive.get_item
    Get Item Metadata
  • onedrive.get_root
    Get Drive Root Folder
  • onedrive.get_site
    Get Site Details
  • onedrive.get_user
    Get User Profile
  • onedrive.get_drive
    Get Drive
  • onedrive.get_share
    Get Shared Item by ShareId
  • onedrive.list_drives
    List Drives
  • onedrive.list_bundles
    List Drive Bundles
  • onedrive.search_items
    Search Items
  • onedrive.get_group_drive
    Get Group Drive
  • onedrive.list_activities
    List Drive Activities
  • onedrive.list_site_lists
    List Site Lists
  • onedrive.get_recent_items
    Get Recent Items
  • onedrive.get_shared_items
    Get Shared Items
  • onedrive.get_followed_item
    Get Drives Following
  • onedrive.get_item_versions
    Get Item Versions
+ 30 MORE

write

33

Create and change things. Allow, or ask the user first.

  • onedrive.create_link
    Create Sharing Link
  • onedrive.update_file_content
    Update File Content
  • onedrive.update_workbook_range
    Update Workbook Range
  • onedrive.add_workbook_worksheet
    Add Workbook Worksheet
  • onedrive.create_item_permission
    Create Drive Item Permission
  • onedrive.create_workbook_session
    Create Workbook Session
  • onedrive.update_workbook_worksheet
    Update Workbook Worksheet
  • onedrive.update_drive_item_metadata
    Update Drive Item Metadata
  • onedrive.create_sharepoint_list_item
    Create SharePoint List Item
  • onedrive.update_drive_items_permissions
    Update Drive Item Permissions
  • onedrive.update_sharepoint_item_permission
    Update SharePoint Item Permission
  • onedrive.update_sharepoint_list_item_fields
    Update SharePoint List Item Fields
  • onedrive.copy_item
    Copy Item
  • onedrive.move_item
    Move Item
  • onedrive.follow_item
    Follow Drive Item
  • onedrive.checkin_item
    Check In Drive Item
+ 17 MORE

destructive

9

Delete, cancel or archive. Ask first, or deny outright.

  • onedrive.delete_item
    Delete Item
  • onedrive.delete_workbook_range
    Delete Workbook Range
  • onedrive.delete_item_permission
    Delete Drive Item Permission
  • onedrive.delete_item_permanently
    Permanently Delete Drive Item
  • onedrive.delete_share_permission
    Delete Shares Permission
  • onedrive.delete_workbook_worksheet
    Delete Workbook Worksheet
  • onedrive.delete_sharepoint_item_permission
    Delete SharePoint Item Permission
  • onedrive.clear_workbook_range
    Clear Workbook Range
  • onedrive.close_workbook_session
    Close Workbook Session
03 · HOW IT WORKS

OneDrive in three steps.

  1. 01Your users connect OneDriveThey sign in to OneDrive on Arc0 Connect, under your brand, and approve the access you ask for.
  2. 02You set the rulesReads run, writes like “create Sharing Link” can wait for the user, and “delete Item” can be denied outright.
  3. 03Any agent can actYour agent calls OneDrive through the Arc0 SDK or MCP, and so can Claude, ChatGPT and Cursor. Every call lands on the audit log.
POLICY.TS
await arc0.policies.set('onedrive', {
  read: 'allow',
  write: 'ask',        // create_link
  destructive: 'deny',  // delete_item
})

# Claude Code: the same connection, one URL
$ claude mcp add --transport http arc0 \
    https://mcp.arc0.ai/u/u_8f2
04 · AUTH AND DATA

How OneDrive connects.

Users sign in to OneDrive on Arc0 Connect and approve the scopes you request. Build with Arc0’s OneDrive OAuth app, or bring your own so the OneDrive consent screen names you. Tokens refresh automatically, and you can export them whenever you want.

The same OneDrive connection serves your agent over MCP and your own backend over REST and the proxy, so a user connects once. How Arc0 handles credentials →

AUTH
OAuth 2.0 · OAuth 2.0 client credentials
CREDENTIALS
Per-tenant encrypted vault
MODEL SEES
Results only, never credentials
AUDIT LOG
Every call, on every plan
05 · WORKS WITH

Use OneDrive from any agent.

Claude
ChatGPT
Cursor
Codex
VS Code
OpenAI Agents SDK
Claude Agent SDK
Vercel AI SDK
Mastra
LangGraph
07 · FAQ

OneDrive and Arc0, answered.

Q01

Can I use OneDrive with Claude, ChatGPT or Cursor?

Yes. Connect OneDrive to Arc0 once, then add your Arc0 MCP URL to Claude, ChatGPT, Cursor, Claude Code or any other remote-MCP client. Each assistant only gets the OneDrive actions you allow.

Q02

How do users connect OneDrive?

Users sign in to OneDrive on Arc0 Connect and approve the scopes you request. Build with Arc0’s OneDrive OAuth app, or bring your own so the OneDrive consent screen names you. Tokens refresh automatically, and you can export them whenever you want.

Q03

Which OneDrive actions can my agent take?

88 in total: 46 read, 33 write and 9 destructive, such as “create Sharing Link”. Your policies decide which of them each agent may call.

Q04

Can I stop my agent from deleting things in OneDrive?

Yes. Actions like “delete Item” are graded destructive. Set destructive actions to deny, or to ask so the user approves each one, and blocked calls still show up on the audit log.

Q05

Can my own backend call OneDrive too?

Yes. The same OneDrive connection is available over REST and through the Arc0 proxy, so your product and your agent share one connection per user.

Get started

Plug OneDrive into your agent.

Your users connect OneDrive once, under your brand. Your agent gets 88 actions behind your policies, with every call on the record.

Free to build · MCP + REST · Audit log on every plan