Restrict AI OneDrive Access to One Folder on Mac

Use onedrive_set_scope to confine LMCP's OneDrive access to a single folder on your Mac. Free, local, no API keys. Works with Claude, ChatGPT, Cursor and more.

L
LMCP··5 min read

The onedrive_set_scope tool lets you draw a boundary around exactly which part of your OneDrive an AI assistant can touch. Once you set a scope, every other OneDrive tool in LMCP — listing, reading, searching, uploading — only operates inside that one folder. Nothing outside it is reachable, even if you ask. A natural prompt looks like: "Limit OneDrive access to my OneDrive/Clients/Acme folder and only work in there from now on." The AI calls onedrive_set_scope, confirms the boundary, and the rest of your OneDrive stays invisible.

This is the safety rail people reach for before letting an assistant loose on a synced drive full of personal and work files. You point it at one project folder, and the AI physically cannot wander into your tax returns or family photos. LMCP is a free, native macOS MCP server with 150+ tools that runs entirely on your Mac. Download LMCP to get started.

Which AI agents work?

Desktop clients auto-configure over a local stdio connection — no keys, no setup beyond installing LMCP:

  • Claude Desktop
  • Cursor
  • VS Code (GitHub Copilot)
  • Windsurf
  • Zed

Web-based AIs connect through the LMCP Cloud Relay connector:

  • ChatGPT
  • Claude.ai (web)
  • Grok
  • Perplexity

Automation

onedrive_set_scope is the gatekeeper that other tools chain off of. A typical flow: set the scope to a client folder, then ask the AI to list everything inside it, read the latest proposal, search for an invoice, and drop a new revision back — all without re-stating the path each time. Because the scope persists, you can say "summarize every PDF in here" and the assistant already knows "here" means your locked folder. Combine it with Mail or Calendar tools to, say, pull a contract from the scoped folder and reference it in a reply, while OneDrive access stays fenced.

Context

This works against your real OneDrive sync on your real Mac — the actual files in ~/Library/CloudStorage, not a re-upload or a copy. The AI sees the same folder Finder sees, with live contents, so answers reflect what is actually on disk right now. Setting a scope simply teaches the assistant which slice of that real data it is allowed to read and write.

Productivity

Without a scope, you either trust the AI with your entire drive or babysit every request. With onedrive_set_scope you spend ten seconds defining a boundary and then work freely for the rest of the session — no path-pasting, no second-guessing. For consultants juggling per-client folders, switching context is one sentence instead of a careful manual file hunt, saving minutes on every task and removing the anxiety of an assistant reaching the wrong document.

Privacy & GDPR

Everything runs locally on your Mac. LMCP reads your OneDrive folder directly through the operating system — there is no cloud copy, no server-side storage, and no API key handed to a third party. The scope you set is enforced on-device, so the AI literally never receives data from outside the folder. This is privacy by architecture, which is what makes LMCP GDPR-compliant by architecture.

Ready to try it?

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

Download LMCP (.dmg)
FreemacOS 12+ · Apple Silicon & Intel

✦ llms.txt