Connect Grok to OneDrive on Mac
In short: Let Grok browse, read, write, search and move files in the OneDrive folder synced on your Mac, without the Graph API.
Grok can work with OneDrive on your Mac once LMCP is installed and added to Grok. LMCP is a local MCP server: Grok can browse, read, write, search and move files in the OneDrive folder synced on your Mac, without the Graph API.
What Grok Can Do with OneDrive
- Browse your OneDrive — list root folders and drill into any directory
- Read files and write & update files (synced back to the cloud)
- Search — find files by name or content across your OneDrive
- Scope access — restrict the AI to a single subfolder so it only sees what you allow
Preview and confirmation behavior depends on the tool, platform and AI client. Check the tool requirements and review the intended action before authorizing a real call.
What You Will Need
- macOS 13+ and LMCP installed
- The OneDrive desktop app, with your folders synced on the Mac
- A Grok account — whether custom connectors (“Bring Your Own MCP”) are available depends on your Grok plan, which xAI sets
Connect Grok to Your Mac
Connect Grok to your Mac
grok.com/connectors- 1
Install LMCP on your Mac
Download LMCP from local-mcp.com and run the installer — it installs Local MCP to Applications and auto-configures your AI clients in ~30 seconds.
- 2
Turn on web access and copy your Connection URL
Click the LMCP icon in your menu bar and find Your web AI · Cloud Relay. Make sure web access is ON (it is on after installation unless you turned it off), then open your assistant’s panel and click Copy URL.
The URL is — it carries no token and is the same for everyone; every step below that says “the URL you copied” means this one. Access is granted by approving the connection on your Mac, not by the URL. - 3
Open Grok’s connectors
Go to grok.com/connectors, click New Connector, and choose Custom (Bring Your Own MCP).
- 4
Add the connector
Grok’s form has only Name and Server URL, and neither asks for a credential. Set Name: and Server URL: paste the URL you copied ( — it carries no token), then click Add. Add only registers the connector: approve the connection in the dialog that opens on your Mac, and the tool catalog loads after that. If no dialog appears, the approval simply expired — it lasts 5 minutes — so try again; nothing needs reinstalling.
- 5
Enable it in a chat
Start a new chat, enable the LMCP connector, and ask: “List my email accounts.” The connector URL never changes, so there is nothing to rotate or re-copy: what ties it to your Mac is the approval you gave, and you can revoke it by turning Cloud Data Forwarding off.
Steps verified 2026-09-17. Local tools run on your device; selected AI providers and connectors receive requested content. Review each tool’s permissions and approval behavior.
More detail: the full Grok guide.
Try It Out
Start a new chat, enable the LMCP connector, then ask:
Only give yourself access to my “Work Documents” folder in OneDrive, nothing else.
Find the budget spreadsheet in my OneDrive.
Save these meeting notes as a file in my OneDrive.
Troubleshooting
A file cannot be read
Files must be synced locally: files you have explicitly kept online-only need to be available locally. The web-only OneDrive does not create a local folder LMCP can read.
Grok shows “0 tools” or only setup_install
Either the connection was never approved on your Mac — remove the connector and add it again to trigger a fresh approval — or Cloud Data Forwarding is OFF: toggle it ON in the Cloud Relay section.
Connector shows “Connected” but tools fail
Make sure LMCP is running (the menu bar dot should be green) and Cloud Data Forwarding is on. If the approval is no longer valid, remove the connector and add it again: the URL never changes, so there is nothing to copy again.
Custom connector option not available in Grok
Whether “Bring Your Own MCP” custom connectors appear depends on your Grok plan, which xAI sets. If you only see prebuilt connectors, use LMCP with a local client (Claude Desktop, Cursor, Claude Code) that connects directly without the Cloud Relay.
Related Guides
Comments
Questions and experiences welcome — comments are reviewed before they appear.