Microsoft OneDrive MCP Server
for AI Agents
Connect your AI agent to StackOne's Microsoft OneDrive MCP server and give it 46 MCP tools out of the box. Auth, tool execution, and security all managed.
Coverage
46 Agent Actions
Create, read, update, and delete across Microsoft OneDrive — and extend your agent's capabilities with custom actions.
Authentication
Agent Tool Authentication
Per-user OAuth in one call. Your Microsoft OneDrive MCP server gets session-scoped tokens with zero credentials stored on your infra.
Agent Auth →Security
Agent Protection
Every Microsoft OneDrive tool response scanned for prompt injection in milliseconds — 88.7% accuracy, all running on CPU.
Prompt Injection Defense →Performance
Max Agent Context. Min Cost.
Free up to 96% of your agent's context window to enhance reasoning and reduce cost, on every Microsoft OneDrive call.
Tools Discovery →What is the Microsoft OneDrive MCP Server?
A Microsoft OneDrive MCP server lets AI agents read and write Microsoft OneDrive data through the Model Context Protocol — Anthropic's open standard for connecting LLMs to external tools. StackOne's Microsoft OneDrive MCP server ships with 46 pre-built actions, fully extensible via the Connector Builder — plus managed authentication, prompt injection defense, observability, and agent execution runtime. Connect it from MCP clients like Claude Desktop, Claude Code, Cursor, Goose, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.
All Microsoft OneDrive MCP Tools
Every action from Microsoft OneDrive's API, ready for your agent. Create, read, update, and delete — scoped to exactly what you need.
Unified Files
- Upload Unified File
Upload a new file to Microsoft OneDrive using the StackOne unified upload schema
- List Unified Files
List unified files in Microsoft OneDrive with StackOne unified filters
- Get Unified File
Get a unified file by ID from Microsoft OneDrive with metadata mapped to the StackOne unified schema
- Download Unified File
Download the content of a unified file from Microsoft OneDrive
Unified Folders
- List Unified Folders
List unified folders from the root of the authenticated user's OneDrive
- Get Unified Folder
Get a unified folder by ID from Microsoft OneDrive
Unified Drives
- List Unified Drives
List unified drives available to the authenticated user in Microsoft OneDrive
- Get Unified Drive
Get a unified drive by ID from Microsoft OneDrive
Drive Items
- Copy Drive Item
Create a copy of a driveItem including any children
- Search Drive Items
Search for items in a drive
- Search Drive Items
Search for items in a drive
- Get Drive Item
Retrieve metadata for a driveItem in a drive
- Download Drive Item
Download the contents of a driveItem
- Update Drive Item
Update the properties of a driveItem
- Move Drive Item
Move a driveItem to a new parent item
- Delete Drive Item
Delete a driveItem
Item Versions
- List Item Versions
Retrieve the versions of a file
- Get Item Version
Retrieve metadata for a specific version of a driveItem
- Download Item Version
Download the contents of a specific version
Item Permissions
- List Item Permissions
List permissions on a driveItem
- Get Item Permission
Get a specific permission on a driveItem
- Update Item Permission
Update a permission on a driveItem
- Delete Item Permission
Remove a permission from a driveItem
Users
- Create User
Create a new user account in the organization with the specified properties
- List Users
Retrieve a list of user objects. By default, returns a limited set of properties (businessPhones, displayName, givenName, id, jobTitle, mail, mobilePhone, officeLocation, preferredLanguage, surname, userPrincipalName). Use $select to specify alternative properties.
- Get User
Retrieve the properties and relationships of a specific user by their ID or userPrincipalName. By default, only a limited set of properties are returned (businessPhones, displayName, givenName, id, jobTitle, mail, mobilePhone, officeLocation, preferredLanguage, surname, userPrincipalName). Use the select parameter to return an alternative property set.
Other (20)
- Create Folder
Create a new folder in a drive
- Upload File To Drive
Upload a new file to a drive location
- Create Sharing Link
Create a sharing link for a driveItem
- Send Sharing Invitation
Send a sharing invitation to users
- List Current User's Drives
Retrieve the list of drive resources available for the authenticated user
- List User's Drives
Retrieve the list of drive resources available for a specific user
- Get Drive
Get metadata about a specific drive
- Get Default Drive
Get the user's default OneDrive
- Get Drive Root Folder
Get the root folder of a drive
- List Drive Root Children
List children of the root folder of a drive
- List Followed Items
List items the user is following
- Get Special Folder
Access a special folder by its canonical name
- List Drive Item Children
List children of a driveItem
- Get Drive Item By Path
Retrieve a driveItem by file system path
- Get Drive Item Thumbnails
List thumbnails for a driveItem
- Follow Drive Item
Follow a driveItem
- Unfollow Drive Item
Unfollow a driveItem
- Restore Drive Item
Restore a deleted driveItem from the recycle bin
- Check In Drive Item
Check in a checked out driveItem
- Check Out Drive Item
Check out a driveItem
Set Up Your Microsoft OneDrive MCP Server in Minutes
One endpoint. Any framework. Your agent is talking to Microsoft OneDrive in under 10 lines of code.
Agent Frameworks
{
"mcpServers": {
"stackone": {
"command": "npx",
"args": [
"-y",
"mcp-remote@latest",
"https://api.stackone.com/mcp?x-account-id=<account_id>",
"--header",
"Authorization: Basic <YOUR_BASE64_TOKEN>"
]
}
}
}Check More Cloud Storage MCP Servers
94+ actions
90+ actions
89+ actions
64+ actions
30+ actions
26+ actions
19+ actions
Platform Resources
MCP Code Mode: Keeping Tool Responses Out of Agent Context
Anthropic's code_execution processes data already in context. Custom MCP code mode keeps raw tool responses in a sandbox. 14K tokens vs 500.
11 min
Comparing BM25, TF-IDF, and Hybrid Search for MCP Tool Discovery
Benchmarking BM25, TF-IDF, and hybrid search for MCP tool discovery across 916 tools. The 80/20 TF-IDF/BM25 hybrid hits 21% Top-1 accuracy in under 1ms.
10 min
Indirect Prompt Injection Defense for MCP Tools: A Technical Guide
MCP tools that read emails, CRM records, and tickets are indirect prompt injection vectors. Here's how we built a two-tier defense that scans tool results in ~11ms.
12 min
MCP vs A2A: Architecture, Security, and When to Use Each
MCP vs A2A: what each protocol standardizes, how they differ, their shared security risks including indirect prompt injection, and when to use one, both, or a hybrid architecture.
12 min
MCP vs API: What 200+ Connector Builds Taught Us
MCP wraps APIs, it doesn't replace them. After building 200+ connectors that serve both, here's when each approach wins.
14 min read
Microsoft OneDrive MCP Server FAQ
Does StackOne have a Microsoft OneDrive MCP server?
Microsoft OneDrive MCP server vs direct API integration — what's the difference?
How does Microsoft OneDrive authentication work for AI agents?
origin_owner_id.Are Microsoft OneDrive MCP tools vulnerable to prompt injection?
What is the context bloat of a Microsoft OneDrive agent and how do I avoid it?
Can I limit which actions my Microsoft OneDrive agent can access?
Can I create custom agent actions for my Microsoft OneDrive MCP server?
When should I NOT use a Microsoft OneDrive MCP server?
What AI frameworks and AI clients does the StackOne Microsoft OneDrive MCP server support?
Put your AI agents to work
All the tools you need to build and scale AI agent integrations, with best-in-class connectivity, execution, and security.