Skip to content

MCP server

OneDrive MCP server

Microsoft's OneDrive MCP server, part of its Work IQ preview, lets AI find, read, create, move, share and delete files in OneDrive.

At a glance

Maintained by
Microsoft
Tools exposed
10 listed below
Reviewed
September 24, 2026

Why it matters

What it does and why it matters

Companies on Microsoft 365 store most of their files in OneDrive and SharePoint. Microsoft now offers a OneDrive MCP server as part of its Work IQ and Agent 365 servers, in preview. An assistant can list folders, find files, read small text files, create files and folders, rename, move, share and delete.

For Microsoft-based teams, that brings file work into the same assistant that handles email and chat.

The server is in preview, and Microsoft says tool names may change. Microsoft does not document a Claude Code setup, so a community Microsoft 365 server is noted as an alternative in the setup section. Sign-in and access follow your Microsoft account and admin policies, so involve your Microsoft 365 administrator before connecting it.

Use cases

Best business use cases

Find files

Locate files across your OneDrive.

Read notes

Read and summarize small text files.

Organize

Create folders and move files with approval.

Share

Share approved files with colleagues.

Microsoft 365 assistants

Combine files with Teams and Outlook work.

Tools

Available tools

Tool names as published by the maintainer at review time. Versions change, so check the repository for the current list.

Read and write: Read and write on the user's personal OneDrive, files 5 MB or less; includes sharing and sensitivity labels.

  • getFolderChildrenInMyOnedrive

    List up to 20 files and folders in a folder.

  • findFileOrFolderInMyOnedrive

    Find a file or folder by name.

  • getFileOrFolderMetadataInMyOnedrive

    Get metadata for a file or folder by ID.

  • readSmallTextFileFromMyOnedrive

    Read a text file under 5 MB.

  • createSmallTextFileInMyOnedrive

    Create a text file under 5 MB.

  • createFolderInMyOnedrive

    Create a new folder.

  • renameFileOrFolderInMyOnedrive

    Rename a file or folder.

  • moveFileOrFolderInMyOnedrive

    Move a file or folder to another folder.

  • shareFileOrFolderInMyOnedrive

    Invite people to read or edit a file or folder.

  • deleteFileOrFolderInMyOnedrive

    Delete a file or folder.

Workflows

Example workflows

Set up a project folder

  1. 1

    Ask for a new project folder.

  2. 2

    The assistant creates the folder structure.

  3. 3

    It moves related files in after approval.

  4. 4

    It shares the folder with the team.

  5. 5

    It reports what it did.

Find and summarize

  1. 1

    Describe the file you need.

  2. 2

    The assistant searches OneDrive.

  3. 3

    It confirms the match.

  4. 4

    It reads and summarizes it.

  5. 5

    It links to the file.

Prompts

Example prompts

  • “Find the Q3 budget notes in my OneDrive and summarize them.”

  • “Create a folder for the Harbor project with subfolders for contracts and invoices.”

  • “Share the onboarding checklist with the new team member.”

Setup

Installation and configuration

Examples for Claude Desktop and Claude Code. Replace the placeholder values with your own keys, and store secrets outside version control.

Claude Code: terminal

unverified (Microsoft does not document a Claude Code setup for this server)
  • Hosted server: https://agent365.svc.cloud.microsoft/agents/tenants/{tenantId}/servers/mcp_OneDriveRemoteServer.
  • Needs: Microsoft Entra ID (tenant sign-in). Access is limited to the signed-in user's OneDrive. Preview terms apply..

Security

Security considerations

  • Limit folders

    Connect an account or service user that sees only the folders a task needs.

  • Start with reading

    Begin with search and read access. Add write actions one at a time.

  • Sensitive files

    Involve your Microsoft 365 admin, and review preview terms before use.

  • Keep a record

    Log which files the assistant opens and changes.

Related servers

Servers that pair well with it

Microsoft Teams

Microsoft's Teams MCP server, part of its Work IQ preview, lets AI list and read chats and channels and post messages and replies.

Google Drive

Google's own Drive MCP server lets AI search, read and create files in Google Drive, with your Google Workspace sign-in.

Box

Box's official MCP server lets AI search and read files, ask questions across documents with Box AI, extract data and upload files.

Keep exploring

FAQ

Questions people ask us

Have a question that is not here? Ask us directly.

Start a project

Want this connected to your own systems? We build AI workflows with MCP.

Send a short brief. We reply with questions, a suggested plan and an estimate you can compare with other offers.

Your privacy choices

We use necessary storage to run this site. With your permission we also use Google Analytics to see which pages help people, and load maps from Google. You can change this at any time. Read the cookie policy.