Microsoft 365 MCP server for AI agents

Let Claude, ChatGPT or your own agent read and act on Microsoft 365: 10 typed functions through one MCP server. No Microsoft 365 API key needed.

Functions
10
Sign-in
For account actions
Works with
MCP, HTTP, Node, Python

Connect

Just Microsoft 365

An MCP server for Microsoft 365 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_365
Every site

One MCP server for Microsoft 365 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 6
  • getDocumentRetrieves metadata for a specific document or folder in the user's Microsoft 365 OneDrive by item ID.

    Arguments

    NameTypeRequired
    itemIdstringYes

    Returns microsoft_365Document

    interface microsoft_365Document {
      id: string;
      name: string;
      size?: number;
      lastModifiedDateTime?: string;
      webUrl?: string;
      createdDateTime?: string;
      lastModifiedBy?: { user?: { displayName?: string } };
      parentReference?: { driveId?: string };
      file?: { mimeType?: string };
      folder?: { childCount?: number };
      isFile: boolean;
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/microsoft_365/getDocument

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.microsoft_365.getDocument({ itemId: "01AVMG27P6PZZZZZZZZZZZZZZZZZZ" });
  • getDocumentContentRetrieves the binary content of a document from the user's Microsoft 365 OneDrive.

    Arguments

    NameTypeRequired
    itemIdstringYes

    Returns DocumentContent

    interface DocumentContent {
      content: string; // base64-encoded binary content of the file
      contentType?: string; // MIME type if available
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/microsoft_365/getDocumentContent

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.microsoft_365.getDocumentContent({ itemId: "01AVMG27P6PZZZZZZZZZZZZZZZZZZ" });
  • listDocumentsLists documents from the user's Microsoft 365 OneDrive, including files and folders with metadata.

    Arguments

    NameTypeRequired
    folderIdstringNo

    Returns microsoft_365Document[]

    interface microsoft_365Document {
      id: string;
      name: string;
      size?: number;
      lastModifiedDateTime?: string;
      webUrl?: string;
      createdDateTime?: string;
      lastModifiedBy?: { user?: { displayName?: string } };
      parentReference?: { driveId?: string };
      file?: { mimeType?: string };
      folder?: { childCount?: number };
      isFile: boolean;
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/microsoft_365/listDocuments

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.microsoft_365.listDocuments();
  • listDocumentVersionsLists the version history of a specific document in the user's Microsoft 365 OneDrive.

    Arguments

    NameTypeRequired
    itemIdstringYes

    Returns DocumentVersion[]

    interface DocumentVersion {
      id: string;
      versionNumber?: number;
      lastModifiedDateTime?: string;
      lastModifiedBy?: { user?: { displayName?: string } };
      publication?: { level?: string };
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/microsoft_365/listDocumentVersions

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.microsoft_365.listDocumentVersions({ itemId: "01AVMG27P6PZZZZZZZZZZZZZZZZZZ" });
  • listRecentDocumentsLists the user's recently accessed documents in Microsoft 365 OneDrive, ordered by most recently used.

    Arguments

    None.

    Returns microsoft_365Document[]

    interface microsoft_365Document {
      id: string;
      name: string;
      size?: number;
      lastModifiedDateTime?: string;
      webUrl?: string;
      createdDateTime?: string;
      lastModifiedBy?: { user?: { displayName?: string } };
      parentReference?: { driveId?: string };
      file?: { mimeType?: string };
      folder?: { childCount?: number };
      isFile: boolean;
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/microsoft_365/listRecentDocuments

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.microsoft_365.listRecentDocuments();
  • searchDocumentsSearches for documents in the user's Microsoft 365 OneDrive by name or content.

    Arguments

    NameTypeRequired
    querystringYes

    Returns microsoft_365Document[]

    interface microsoft_365Document {
      id: string;
      name: string;
      size?: number;
      lastModifiedDateTime?: string;
      webUrl?: string;
      createdDateTime?: string;
      lastModifiedBy?: { user?: { displayName?: string } };
      parentReference?: { driveId?: string };
      file?: { mimeType?: string };
      folder?: { childCount?: number };
      isFile: boolean;
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/microsoft_365/searchDocuments

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.microsoft_365.searchDocuments({ query: "test" });
Act 4
  • createDocumentCreates a new document in the user's Microsoft 365 OneDrive with the specified name and optional type (Word, Excel, PowerPoint, or OneNote).

    Arguments

    NameTypeRequired
    namestringYes
    parentFolderIdstringNo
    fileType"word" | "excel" | "powerpoint" | "onenote"No

    Returns microsoft_365Document

    interface microsoft_365Document {
      id: string;
      name: string;
      size?: number;
      lastModifiedDateTime?: string;
      webUrl?: string;
      createdDateTime?: string;
      lastModifiedBy?: { user?: { displayName?: string } };
      parentReference?: { driveId?: string };
      file?: { mimeType?: string };
      folder?: { childCount?: number };
      isFile: boolean;
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/microsoft_365/createDocument

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.microsoft_365.createDocument({ name: "<name>" });
  • deleteDocumentDeletes a document or folder from the user's Microsoft 365 OneDrive by item ID.

    Arguments

    NameTypeRequired
    itemIdstringYes

    Returns { id: string }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/microsoft_365/deleteDocument

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.microsoft_365.deleteDocument({ itemId: "<itemId>" });
  • restoreDocumentVersionRestores a document in Microsoft 365 OneDrive to a specified previous version.

    Arguments

    NameTypeRequired
    itemIdstringYes
    versionIdstringYes

    Returns microsoft_365Document

    interface microsoft_365Document {
      id: string;
      name: string;
      size?: number;
      lastModifiedDateTime?: string;
      webUrl?: string;
      createdDateTime?: string;
      lastModifiedBy?: { user?: { displayName?: string } };
      parentReference?: { driveId?: string };
      file?: { mimeType?: string };
      folder?: { childCount?: number };
      isFile: boolean;
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/microsoft_365/restoreDocumentVersion

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.microsoft_365.restoreDocumentVersion({ itemId: "<itemId>", versionId: "<versionId>" });
  • shareDocumentShares a document in Microsoft 365 OneDrive with another user by email address.

    Arguments

    NameTypeRequired
    itemIdstringYes
    shareWithstringYes
    permissionType"read" | "edit"No

    Returns { id: string }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/microsoft_365/shareDocument

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.microsoft_365.shareDocument({ itemId: "<itemId>", shareWith: "<shareWith>" });

Use it from code