Microsoft OneDrive MCP server for AI agents
Let Claude, ChatGPT or your own agent read and act on Microsoft OneDrive: 7 typed functions through one MCP server. No Microsoft OneDrive API key needed.
- Functions
- 7
- Sign-in
- For account actions
- Works with
- MCP, HTTP, Node, Python
Connect
An MCP server for Microsoft OneDrive alone, with one tool per function. Paste it into Claude, ChatGPT, Cursor or any MCP client as a remote server.
https://api.bowmark.ai/mcp/site/microsoft_onedriveOne MCP server for Microsoft OneDrive and every other site Bowmark covers. Your agent looks up what it needs and calls it.
https://api.bowmark.ai/mcpSet it up in your clientBoth need a Bowmark API key. The quickstart gets you one and a first result in a few minutes. Functions that need a login use the person's own account: how sign-in works.
Functions
Open a function to see its arguments, what it returns and how to call it.
getFileGets metadata for a specific file by ID.Arguments
Name Type Required args{ id: string }Yes Returns
microsoft_onedriveRowinterface microsoft_onedriveRow { id: string; name: string; size: number; webUrl: string; lastModifiedDateTime: string; isFolder?: boolean; }HTTP endpoint
POST https://api.bowmark.ai/v1/sites/microsoft_onedrive/getFileCall it
import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.microsoft_onedrive.getFile({});import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.microsoft_onedrive.getFile({}))curl -X POST https://api.bowmark.ai/v1/sites/microsoft_onedrive/getFile \ -H "Authorization: Bearer $BOWMARK_API_KEY" \ -H "Content-Type: application/json" \ -d '{"args":{}}'// The body of a run: the MCP run tool, or POST /v1/run return await bowmark.providers.microsoft_onedrive.getFile({});listFilesLists files and folders in the user's OneDrive root or a specified path.Arguments
Name Type Required args{ path?: string }No Returns
microsoft_onedriveRow[]interface microsoft_onedriveRow { id: string; name: string; size: number; webUrl: string; lastModifiedDateTime: string; isFolder?: boolean; }HTTP endpoint
POST https://api.bowmark.ai/v1/sites/microsoft_onedrive/listFilesCall it
import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.microsoft_onedrive.listFiles();import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.microsoft_onedrive.listFiles())curl -X POST https://api.bowmark.ai/v1/sites/microsoft_onedrive/listFiles \ -H "Authorization: Bearer $BOWMARK_API_KEY" \ -H "Content-Type: application/json" \ -d '{}'// The body of a run: the MCP run tool, or POST /v1/run return await bowmark.providers.microsoft_onedrive.listFiles();listFoldersLists folders in the user's OneDrive root or a specified path.Arguments
Name Type Required args{ path?: string }No Returns
microsoft_onedriveRow[]interface microsoft_onedriveRow { id: string; name: string; size: number; webUrl: string; lastModifiedDateTime: string; isFolder?: boolean; }HTTP endpoint
POST https://api.bowmark.ai/v1/sites/microsoft_onedrive/listFoldersCall it
import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.microsoft_onedrive.listFolders();import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.microsoft_onedrive.listFolders())curl -X POST https://api.bowmark.ai/v1/sites/microsoft_onedrive/listFolders \ -H "Authorization: Bearer $BOWMARK_API_KEY" \ -H "Content-Type: application/json" \ -d '{}'// The body of a run: the MCP run tool, or POST /v1/run return await bowmark.providers.microsoft_onedrive.listFolders();
createFolderCreates a new folder in OneDrive at the specified path.Arguments
Name Type Required args{ name: string; path?: string }Yes Returns
microsoft_onedriveRowinterface microsoft_onedriveRow { id: string; name: string; size: number; webUrl: string; lastModifiedDateTime: string; isFolder?: boolean; }HTTP endpoint
POST https://api.bowmark.ai/v1/sites/microsoft_onedrive/createFolderCall it
import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.microsoft_onedrive.createFolder({});import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.microsoft_onedrive.createFolder({}))curl -X POST https://api.bowmark.ai/v1/sites/microsoft_onedrive/createFolder \ -H "Authorization: Bearer $BOWMARK_API_KEY" \ -H "Content-Type: application/json" \ -d '{"args":{}}'// The body of a run: the MCP run tool, or POST /v1/run return await bowmark.providers.microsoft_onedrive.createFolder({});deleteFileDeletes a file from OneDrive by ID.Arguments
Name Type Required args{ id: string }Yes HTTP endpoint
POST https://api.bowmark.ai/v1/sites/microsoft_onedrive/deleteFileCall it
import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.microsoft_onedrive.deleteFile({});import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.microsoft_onedrive.deleteFile({}))curl -X POST https://api.bowmark.ai/v1/sites/microsoft_onedrive/deleteFile \ -H "Authorization: Bearer $BOWMARK_API_KEY" \ -H "Content-Type: application/json" \ -d '{"args":{}}'// The body of a run: the MCP run tool, or POST /v1/run return await bowmark.providers.microsoft_onedrive.deleteFile({});uploadFileUploads a file to OneDrive at the specified path.Arguments
Name Type Required args{ name: string; base64: string; path?: string; mimeType?: string }Yes Returns
microsoft_onedriveRowinterface microsoft_onedriveRow { id: string; name: string; size: number; webUrl: string; lastModifiedDateTime: string; isFolder?: boolean; }HTTP endpoint
POST https://api.bowmark.ai/v1/sites/microsoft_onedrive/uploadFileCall it
import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.microsoft_onedrive.uploadFile({});import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.microsoft_onedrive.uploadFile({}))curl -X POST https://api.bowmark.ai/v1/sites/microsoft_onedrive/uploadFile \ -H "Authorization: Bearer $BOWMARK_API_KEY" \ -H "Content-Type: application/json" \ -d '{"args":{}}'// The body of a run: the MCP run tool, or POST /v1/run return await bowmark.providers.microsoft_onedrive.uploadFile({});
Use it from code
- Node
npm i @bowmark/web - Python
pip install bowmark-web - HTTP
POST /v1/sites/microsoft_onedrive/<function> - OpenAPI
/v1/sites/microsoft_onedrive/openapi.json