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

Just Microsoft OneDrive

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_onedrive
Every site

One 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/mcp
Set it up in your client

Both 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.

Read 3
  • getFileGets metadata for a specific file by ID.

    Arguments

    NameTypeRequired
    args{ id: string }Yes

    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/getFile

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.microsoft_onedrive.getFile({});
  • listFilesLists files and folders in the user's OneDrive root or a specified path.

    Arguments

    NameTypeRequired
    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/listFiles

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.microsoft_onedrive.listFiles();
  • listFoldersLists folders in the user's OneDrive root or a specified path.

    Arguments

    NameTypeRequired
    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/listFolders

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.microsoft_onedrive.listFolders();
Act 4
  • createFolderCreates a new folder in OneDrive at the specified path.

    Arguments

    NameTypeRequired
    args{ name: string; path?: string }Yes

    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/createFolder

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.microsoft_onedrive.createFolder({});
  • deleteFileDeletes a file from OneDrive by ID.

    Arguments

    NameTypeRequired
    args{ id: string }Yes

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/microsoft_onedrive/deleteFile

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.microsoft_onedrive.deleteFile({});
  • shareFileShares a file with another user, creating a sharing link or permission grant.

    Arguments

    NameTypeRequired
    args{ id: string; recipientEmail: string; type?: string }Yes

    Returns { id: string; link?: string }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/microsoft_onedrive/shareFile

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.microsoft_onedrive.shareFile({});
  • uploadFileUploads a file to OneDrive at the specified path.

    Arguments

    NameTypeRequired
    args{ name: string; base64: string; path?: string; mimeType?: string }Yes

    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/uploadFile

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.microsoft_onedrive.uploadFile({});

Use it from code