Skip to main content
Prerequisites Before you begin, create an account and get your API Key.

Getting started

Connect to OneDrive to manage files, folders, and automate cloud storage operations through AI agents.
  • API
  • UI
  • Open Source
1

Install the SDKs (optional)

pip install klavis
2

Create a Strata MCP Server with OneDrive

from klavis import Klavis
from klavis.types import McpServerName

klavis_client = Klavis(api_key="YOUR_API_KEY")

response = klavis_client.mcp_server.create_strata_server(
    servers=[McpServerName.ONEDRIVE],
    user_id="user123"
)

API Reference

Full Strata API endpoints
3

Authenticate

import webbrowser

# Open OAuth authorization page
webbrowser.open(response.oauth_urls[McpServerName.ONEDRIVE])
🎉 Your OneDrive MCP Server is ready! Once authentication is complete, you can use your MCP server URL with any MCP-compatible client.

Available Tools

Tool NameDescription
onedrive_rename_itemRename a file or folder by its ID
onedrive_move_itemMove a file or folder into another folder
onedrive_delete_itemDelete a file or folder by its ID
onedrive_read_file_contentRead the raw content of a text file
onedrive_create_fileCreate a new file in a folder or root
onedrive_create_folderCreate a new folder inside a folder or root
onedrive_list_root_files_foldersList all files and folders in the root of OneDrive
onedrive_list_inside_folderList contents of a specific folder
onedrive_search_item_by_nameSearch files and folders by name
onedrive_search_folder_by_nameSearch only folders by name
onedrive_get_item_by_idGet details or metadata of a file or folder by its ID
onedrive_list_shared_itemsList items that are shared with the user
For more details about tool input schema, use the get_tools API.

Next Steps

I