One drive MCP for AI Agents



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.
Connect One drive without Auth hassles
We manage OAuth, API Key, token refresh, and scopes, you just build.
Try for FreeTry One drive now
Enter a prompt below to test the integration in our Tool Router playground. You'll be redirected to sign in and try it live.
Supported Tools and Triggers
Install Composio
pip install composio claude-agent-sdkCreate Tool Router Session
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions
composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.urlConnect to AI Agent
import asyncio
options = ClaudeAgentOptions(
permission_mode='bypassPermissions',
mcp_servers={
'tool_router': {
'type': 'http',
'url': url,
'headers': {
'x-api-key': 'your-composio-api-key'
}
}
},
system_prompt='You are a helpful assistant with access to One drive tools.',
max_turns=10
)
async def main():
async with ClaudeSDKClient(options=options) as client:
await client.query('Download the latest project report file from OneDrive')
async for message in client.receive_response():
if hasattr(message, 'content'):
for block in message.content:
if hasattr(block, 'text'):
print(block.text)
asyncio.run(main())Why Use Composio?
AI Native One drive Integration
- Supports both One drive MCP and direct API based integrations
- Structured, LLM-friendly schemas for reliable tool execution
- Rich coverage for reading, writing, and querying your One drive data
Managed Auth
- Built-in OAuth handling with automatic token refresh and rotation
- Central place to manage, scope, and revoke One drive access
- Per user and per environment credentials instead of hard-coded keys
Agent Optimized Design
- Tools are tuned using real error and success rates to improve reliability over time
- Comprehensive execution logs so you always know what ran, when, and on whose behalf
Enterprise Grade Security
- Fine-grained RBAC so you control which agents and users can access One drive
- Scoped, least privilege access to One drive resources
- Full audit trail of agent actions to support review and compliance
Use One drive with any AI Agent Framework
Choose a Framework you want to connect One drive with
ChatGPT
Use One drive MCP with ChatGPT
OpenAI Agents SDK
Use One drive MCP with OpenAI Agents SDK
Claude Agents SDK
Use One drive MCP with Claude Agents SDK
Claude Code
Use One drive MCP with Claude Code
Claude Cowork
Use One drive MCP with Claude Cowork
Codex
Use One drive MCP with Codex
Cursor
Use One drive MCP with Cursor

VS Code
Use One drive MCP with VS Code

OpenCode
Use One drive MCP with OpenCode

OpenClaw
Use One drive MCP with OpenClaw

Hermes
Use One drive MCP with Hermes
CLI
Use One drive MCP with CLI
Google ADK
Use One drive MCP with Google ADK
Langchain
Use One drive MCP with Langchain
AI SDK
Use One drive MCP with AI SDK
Mastra AI
Use One drive MCP with Mastra AI
LlamaIndex
Use One drive MCP with LlamaIndex
CrewAI
Use One drive MCP with CrewAI
Pydantic AI
Use One drive MCP with Pydantic AI
Autogen
Use One drive MCP with Autogen
Explore Other Toolkits
Google Drive
Google Drive is a cloud storage platform for uploading, sharing, and collaborating on files. It's perfect for keeping your documents accessible and organized across devices.
Google Docs
Google Docs is a cloud-based word processor that enables document creation and real-time collaboration. Its seamless sharing and version history make team editing and content management a breeze.
Google Super
Google Super is an all-in-one suite combining Gmail, Drive, Calendar, Sheets, Analytics, and more. It gives you a unified platform to manage your digital life, boosting productivity and organization.
Frequently Asked Questions
Do I need my own developer credentials to use One drive with Composio?
Can I use multiple toolkits together?
Is Composio secure?
What if the API changes?

Used by agents from



Never worry about agent reliability
We handle tool reliability, observability, and security so you never have to second-guess an agent action.





