Skip to content

OneDrive MCP for Claude: Your Personal or Work OneDrive on Windows

In short: Install LMCP on your PC and restart your AI client: Claude Desktop, Cursor or VS Code then read, write, search and move the files in the OneDrive folder synced to your PC, from a personal or work account.

L
LMCP··5 min read
  • Runs on your Windows PC: your AI receives only what each request needs.
  • No API key to create or paste.
  • No admin rights: it installs to your user folder.
  1. Download and run LMCP-Setup
  2. Find its icon in the system tray
  3. Connect your AI app

Average 4.7 out of 5 · Ratings: 73See all reviews →

  • “Me ayuda para todas mis tareas diarias”

    Alejo M.
  • “helps me out so much with daily tasks”

    LMCP user
  • “ansolutely amazing! love pairing it with my AI and watching my productivity increase literally tenforld.”

    Andrew S.

To let Claude read and write your OneDrive files on Windows, install LMCP — a local MCP server that works directly with the OneDrive folder already synced on your PC. With no Microsoft 365 account connected, there is no Azure AD app registration, no OAuth scopes and no Graph API — the same mechanism as the macOS version, just pointed at your Windows sync folder. With a Microsoft 365 account connected, LMCP reaches your OneDrive through Microsoft Graph with that account instead.

LMCP executes the file tools locally, while the OneDrive desktop app synchronizes files and writes with Microsoft. If the selected AI client uses a cloud AI provider, that provider can receive and process the file content requested for the task under its own terms.

What You Can Access

Through LMCP, your AI assistant can:

  • Browse your OneDrive — list root folders and drill into any directory
  • Read files — open text, notes, and structured content from your synced files
  • Write & update files — create new files or overwrite existing ones (synced back to the cloud)
  • Search — find files by name across your OneDrive
  • Move & rename, get file info, delete — reorganize files and folders
  • Scope access — restrict the AI to a single subfolder so it only sees what you allow

How to Install

Download LMCP for Windows and install it:

  1. Run the LMCP-Setup file you downloaded, from your Downloads folder
  2. Follow the installer — no admin rights needed, it installs to your user folder
  3. LMCP starts automatically and appears in your system tray

Your AI clients are configured automatically.

Then restart your AI client:

  • Claude Desktop — quit completely and reopen
  • Cursor — restart the editor
  • VS Code — reload the window (Ctrl+Shift+P → “Reload Window”)

Make sure the OneDrive app is signed in and your files are synced locally (usually under C:\Users\<you>\OneDrive). LMCP detects your OneDrive folder automatically — no API keys, no app to register.

Keep the AI in a Safe Folder

OneDrive often holds your entire working life. LMCP has a built-in scope feature — just ask:

Prompt — paste into your AI

Only give yourself access to my “Work Documents” folder in OneDrive, nothing else.

LMCP restricts itself to that subfolder for all future sessions — no config file to edit.

Example Prompts

  • “What's in my OneDrive Projects folder?” — lists files
  • “Find the budget spreadsheet in my OneDrive” — searches by name
  • “Read the latest proposal in my Work Documents folder and summarize it” — opens and summarizes a file
  • “Save these meeting notes as a file in my OneDrive” — writes a new file that syncs to the cloud
  • “Can Claude write files to my OneDrive folder on my PC?” — yes, and the OneDrive app syncs it to your other devices

Real-World Workflows

Draft and file in one step

Prompt — paste into your AI

Draft a project kickoff doc based on the notes in my OneDrive “Project X” folder, and save it back there as kickoff.md.

Your AI reads the source material and writes the result straight into OneDrive — no download, no re-upload.

Find and summarize across files

Prompt — paste into your AI

Search my OneDrive for everything related to the Q3 budget, read the relevant files, and give me a one-page summary of where the numbers stand.

Using ChatGPT in the browser? Connect ChatGPT to OneDrive on Windows— the same tools, through the web connector.

LMCP also connects your AI assistant to Outlook, Microsoft Teams and Office documents on Windows. See the full list of guides or learn more at local-mcp.com.

Limitations

  • Without a Microsoft 365 account connected, files must be synced locally — with Files On-Demand, online-only files download when accessed; files kept explicitly online-only need to become available locally first.
  • Without a Microsoft 365 account connected, it requires the OneDrive desktop app — the web-only OneDrive does not create a local folder LMCP can read.
  • Sync timing — changes the AI writes appear in the cloud as soon as OneDrive syncs; keep OneDrive running.
  • Office file formats — for editing .docx/.xlsx/.pptx content specifically, use LMCP's dedicated Word/Excel/PowerPoint tools alongside the file tools.

Frequently Asked Questions

How do I let Claude read my OneDrive files on Windows without Azure AD?

Install LMCP and make sure the OneDrive desktop app is signed in and syncing. With no Microsoft 365 account connected, LMCP works with the local sync folder directly — no Azure AD, no Graph API.

Can Claude write files to my OneDrive folder on my PC?

Yes. Your AI can read, write, move and delete files in OneDrive. Check the selected tool and platform for its preview and confirmation requirements.

Does it work with a personal OneDrive account?

Yes. With no Microsoft 365 account connected, LMCP uses the sync folders, personal or work, and finds each one you sync. With an account connected, it reads that account's OneDrive through Microsoft Graph.

Do I need API keys or a Microsoft subscription?

No. If the OneDrive desktop app is signed in and synced, LMCP works with those local files directly — no API keys, no admin approval.

Related Guides

Comments

Questions and experiences welcome — comments are reviewed before they appear.