Give Claude Access to OneDrive on Windows — No Graph API or Azure AD

Let your AI assistant read and write your OneDrive files on Windows without the Microsoft Graph API, OAuth tokens, or Azure AD app registration. Works with Claude Desktop, Cursor, VS Code, and ChatGPT. LMCP works directly with the OneDrive folder already synced on your PC.

L
LMCP··5 min read

To let Claude read and write your OneDrive files on Windows, install LMCP — a free local MCP server that works directly with the OneDrive folder already synced on your PC. 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.

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 downloaded LMCP-Setup.exe 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

Takes about 30 seconds. 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 it syncs to your other devices within seconds

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.

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

  • 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.
  • 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 (usually seconds); 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. 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 — destructive actions show a preview and ask for confirmation first.

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

Ready to try it?

Works with Claude, Cursor, VS Code and any MCP client

Free & open to useWindows 10+ · Requires Node.js 18+

✦ llms.txt

Comments

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