OneDrive Integrations
File Management & Storage
Build OneDrive automations with your AI agent. Run them on Zapier.
- apps to connect
- 10,000+
- ways to start a workflow
- 3
- available app actions
- 18
Automate OneDrive with Zapier
- Dependable AI workflows
- Full audit trails and controls
- Easy visual workflow manager
- Free tier available
- SOC 2 Type II, SOC 3, GDPR, and CCPA compliant
Top teams trust Zapier to automate work
OneDrive MCP server: connect OneDrive to your AI agent with Zapier
Install Zapier once, then tell your agent what you want done. Behind the scenes, Zapier MCP finds the right triggers and actions to use with OneDrive and runs them—all with your credentials managed by Zapier and kept out of the model.
Connect to Zapier MCP at https://mcp.zapier.com/api/v1/connect and help me sign in to Zapier or sign up. Then connect my OneDrive account and help me build a Zap with OneDrive: ask me what I want to automate. Read the setup steps at https://zapier.com/AGENTS.md if you can't connect.
Paste this prompt into Claude, ChatGPT, Cursor, or your preferred AI agent to build OneDrive automations.
https://mcp.zapier.com/api/v1/connect
Install this server in Claude, ChatGPT, Cursor, VS Code, or any MCP client. You sign in once with OAuth.
npm install @zapier/zapier-sdk npm install -D @zapier/zapier-sdk-cli npx zapier-sdk login npx zapier-sdk create-connection onedrive
Call any app action from TypeScript. Zapier handles OAuth, token refresh, retries, and rate limits.
npx @zapier/install-zapier
Run this command to print setup instructions for your client, then follow the prompts to sign in.
Ask your AI agent to do it
Tell Claude, ChatGPT, or your go-to AI agent to install Zapier MCP, and it’ll get you started with Zapier.
Wire it into your own code
Connect your agent to OneDrive and 10,000+ more apps with the TypeScript SDK. Zapier handles OAuth and token refresh.
Set it up from your terminal
Tell your coding agent to run one command. It installs Zapier MCP so your agent can use OneDrive and other apps.
Use a premade OneDrive automation template to start building from anywhere: in your go-to agent interface, in code, or in Zapier.
Connect OneDrive to the apps you already use
- OneDrive + Microsoft OutlookCalendar
- OneDrive + PlaudAI Assistants
- OneDrive + GmailEmail
- OneDrive + HubSpotMarketing Automation
- OneDrive + Microsoft ExcelMicrosoft
- OneDrive + ChatGPT (OpenAI)AI Assistants
- OneDrive + AirtableDatabases
- OneDrive + monday.comProject Management
- OneDrive + SalesforceCRM (Customer Relationship Management)
- OneDrive + ClickUpProject Management
- OneDrive + TrelloProject Management
- OneDrive + DropboxFile Management & Storage
- OneDrive + YouTubeGoogle
- OneDrive + Google DriveFile Management & Storage
- OneDrive + ZoomVideo Conferencing
With Zapier MCP installed, your AI agent can build automations across 10,000+ apps and 90,000+ triggers and actions. Automations run reliably on Zapier from an app event, on a schedule (cron), or from a webhook. Here are the OneDrive triggers and actions your agent can build with right away.
New File
Triggers when a new file is created in the personal drive.
New Folder
Triggers when a new folder is created in the personal drive.
New or Updated File
Triggers when a file is created or modified in the selected folder.
Copy File or Folder
Copy a file or folder to a new location.
Delete File or Folder
Deletes a file or folder, moving it to the Recycle Bin.
Export File
Exports a file to PDF or HTML format.
Upload File
Upload a file.
Create Folder
Create a new folder.
Your agent picks the right OneDrive action from what you ask. Connect Zapier once and it can use 22 OneDrive tools, each with typed inputs. Zapier handles OneDrive’s login, so you never paste an API key. The same actions run from TypeScript through the Zapier SDK.
Set up OneDrive MCP in Claude, Claude Code, ChatGPT, Cursor, and Codex
Zapier MCP works with any MCP client that supports Streamable HTTP. Connect or add Zapier in your AI tool, sign in when prompted, then ask for OneDrive.
https://mcp.zapier.com/api/v1/connect
- Claude
Connect Zapier in Claude and sign in when prompted. Claude setup guide
- Claude Code
Install Zapier MCP in Claude Code, then sign in from the terminal. Claude Code setup guide
- ChatGPT
Connect Zapier in ChatGPT and approve the sign-in. ChatGPT setup guide
- Cursor
mcp.jsonAdd Zapier to Cursor and sign in. Cursor setup guide
- Codex
Add Zapier to Codex and sign in. Codex setup guide
- VS Code and other clients
mcp.jsonAdd Zapier to any MCP client that supports Streamable HTTP.
- OpenCode
opencode.jsonAdd Zapier to OpenCode.
- Terminal auto-installer
Install Zapier MCP in whichever client you have.
How your agent gets these tools
- Connect Zapier to your AI tool (pick yours above) and sign in once in the browser. Zapier sets up your MCP server, with no token to paste.
- Ask your agent to connect OneDrive. It calls
discover_zapier_actionsto find the OneDrive actions, thenenable_zapier_actionto add them. - Approve the OneDrive sign-in when prompted. If OneDrive isn’t connected yet, the first call returns a sign-in link.
- Ask for what you want done in plain language. Each enabled action becomes its own tool, named as below. Until then,
execute_zapier_read_actionandexecute_zapier_write_actionrun it.
Use OneDrive in 36 AI tools with Zapier MCP
- Amazon Quick by AWS
- Antigravity by Google
- Antigravity CLI by Google
- ChatGPT by OpenAI
- Claude by Anthropic
- Claude Code by Anthropic
- Claude Cowork by Anthropic
- Claude Duet by Anthropic
- Claude for Small Business by Anthropic
- Copilot Studio by Microsoft
- Dots by OpenAI
- Figma Make by Figma
- Gemini by Google
- Gemini Enterprise by Google
- Grok by SpaceXAI
- Grok Bot by SpaceXAI
- Grok Build (Cursor) by Anysphere
- Julius AI by Caesar Labs
- Kiro by AWS
- Linear Agent by Linear
- Manus by Manus AI
- Muse by Meta
- OpenClaw by the OpenClaw Foundation
- OpenCode by Anomaly
- Pally
- Replit by Replit
- Slackbot by Slack
- Superhuman Go by Superhuman
- Toolhouse
- Town by Town
- v0 by Vercel
- Vapi by Vapi
- Vibe by Mistral AI
- VS Code by Microsoft
- Warp by Denver Technologies
- Zed by Zed Industries
22 OneDrive MCP tools
| Tool | MCP name | What it does |
|---|---|---|
| New File | onedrive_new_file | Trigger · Read-only. Triggers when a new file is created in the personal drive. Optional: |
| New Folder | onedrive_new_folder | Trigger · Read-only. Triggers when a new folder is created in the personal drive. Optional: |
| New or Updated File | onedrive_new_or_updated_file | Trigger · Read-only. Triggers when a file is created or modified in the selected folder. Optional: |
| Find Drive by ID | onedrive_find_drive_by_id | Search · Read-only. Find a specific drive using its unique ID. Required: |
| Find File | onedrive_find_file | Search · Read-only. Search for files by name, content, or metadata. Required: |
| Find File or Folder by ID | onedrive_find_file_or_folder_by_id | Search · Read-only. Find a specific file or folder in a personal drive using its unique ID. Required: |
| Find Items (Via KQL) | onedrive_find_items_via_kql | Search · Read-only. Search for items using Keyword Query Language. Required: |
| Find Folder | onedrive_find_folder | Search · Read-only. Search for folders by name and metadata. Required: |
| Get Item Permissions | onedrive_get_item_permissions | Search · Read-only. List all users and links that have access to a file or folder. Required: |
| Make API GET Request | onedrive_make_api_get_request | Action · Read-only. Make a GET HTTP request to OneDrive's API, without needing to handle authentication. Fixed parameters: - method: GET Required: Optional: |
| Copy File or Folder | onedrive_copy_file_or_folder | Action · Writes data. Copy a file or folder to a new location. Optional: |
| Delete File or Folder | onedrive_delete_file_or_folder | Action · Writes data. Deletes a file or folder, moving it to the Recycle Bin. Required: |
| Export File | onedrive_export_file | Action · Writes data. Exports a file to PDF or HTML format. Required: Optional: |
| Upload File | onedrive_upload_file | Action · Writes data. Upload a file. Required: Optional: |
| Create Folder | onedrive_create_folder | Action · Writes data. Create a new folder. Required: Optional: |
| Move or Rename File or Folder | onedrive_move_or_rename_file_or_folder | Action · Writes data. Moves a file or folder to a different location. Optionally rename the item. Optional: |
| Remove Item Permission | onedrive_remove_item_permission | Action · Writes data. Remove a specific user or link’s access to a file or folder. Provide either email address or permission ID. Required: Optional: |
| Replace File | onedrive_replace_file | Action · Writes data. Replaces a file with new content. Required: Optional: |
| Create Sharing Invitation | onedrive_create_sharing_invitation | Action · Writes data. Send a sharing invitation to specific recipients for a file or folder in a personal drive. Required: Optional: |
| Create Sharing Link | onedrive_create_sharing_link | Action · Writes data. Create a sharing link for a file or folder in a personal drive. Required: Optional: |
| Create Text File | onedrive_create_text_file | Action · Writes data. Create a new text file with custom content. Required: Optional: |
| Make API Mutating Request | onedrive_make_api_mutating_request | Action · Writes data. Make a mutating HTTP request (POST, PUT, PATCH, DELETE, etc.) to OneDrive's API, without needing to handle authentication. Required: Optional: |
OneDrive API with the Zapier SDK, without pasting an API key
The Zapier SDK gives your code one way to call OneDrive. You connect your account once, and your code references that connection instead of a raw token.
copyFileOrFolder (Copy File or Folder) has no required inputs. Every OneDrive action and its inputs are listed under OneDrive triggers and actions above. Zapier handles OAuth, token refresh, retries and rate limits. Read the SDK docs
npm install @zapier/zapier-sdk npm install -D @zapier/zapier-sdk-cli npx zapier-sdk login npx zapier-sdk create-connection onedrive
import { createZapierSdk } from "@zapier/zapier-sdk";
const zapier = createZapierSdk();
const { data: connection } = await zapier.findFirstConnection({ app: "onedrive", owner: "me" });
const { data } = await zapier.runAction({
app: "onedrive",
actionType: "write",
action: "copyFileOrFolder",
connection: connection.id,
inputs: {},
});npx zapier-sdk run-action onedrive write copyFileOrFolder \
--inputs '{}'Frequently asked questions about automating with OneDrive
How do I connect OneDrive to Claude?
Connect Zapier in Claude, sign in to Zapier, then ask Claude to connect OneDrive. Claude finds the OneDrive actions and adds them. If OneDrive needs a sign-in, you approve it once.
Can I use the OneDrive API without managing API keys?
With the Zapier SDK you connect your OneDrive account to Zapier once, and your code runs actions through that connection. Zapier handles OneDrive’s login, so you never paste an API key into your code.
What can an AI agent do with OneDrive?
Through Zapier MCP, your agent can use 22 OneDrive tools, such as New File, New Folder, and New or Updated File. 10 tools only read data, so you can start with those before you let your agent make changes.
My AI agent already connects to my apps. Why add Zapier?
Your AI agent’s built-in or native connectors cover a limited set of popular apps. Zapier reaches 10,000+ apps and 90,000+ triggers and actions. Zapier also adds what your AI agent can’t: one place to manage logins and credentials, so you never paste an API key; automations that keep running after the chat closes, with fixes you can review when a run hits a snag; and the freedom to switch agent interfaces without starting over.
Can’t my AI agent already run tasks on a schedule?
Most popular AI agents can run scheduled tasks. And for simple recurring jobs, that might be all you need. Automations that run on Zapier can run on a schedule too, but they can also start the moment something happens in your apps—like when a new lead/ticket comes in or you get an email reply. Zapier also uses AI only in the steps that need judgment, so routine steps like posting to Slack or updating Salesforce don’t burn model tokens.
Why not have my AI agent write me a script?
You can, and the first version will probably work. The trouble comes later: a script needs somewhere to run, a way to hear about events, and someone to keep it going. If an API changes or a login expires, your script can quietly stop until you notice. It also holds your keys, often in a repo, where a leak can expose your accounts. With Zapier, your agent builds the automation, and you publish it. Zapier hosts it, handles your logins and credentials, and records every run. If a run fails, Zapier diagnoses what went wrong and prepares a fix you can review. Or you can decide which fixes Zapier can apply for you.
Point your AI agent to this page’s markdown file to build OneDrive automations. It covers how OneDrive connects, every trigger and action with its inputs, and how to run them with Zapier MCP, the SDK, or the CLI. To start from a ready-made Zap instead, have it search zapier.sh.
About OneDrive
OneDrive, Microsoft's file sync app formerly known as SkyDrive, lets you store your files online, edit Office documents in the free Office Web Apps, and easily access your online files from your PC.
Related categories: File Management & Storage, Microsoft

