List Google Drive Files with AI on Mac

Let Claude, ChatGPT, Cursor and more list your Google Drive files and folders on Mac. Runs 100% locally with LMCP — no API keys, no cloud, nothing stored.

L
LMCP··5 min read

The gdrive_list_files tool lets your AI assistant browse the contents of your locally-synced Google Drive folder on a Mac. It returns the files and folders living under any valid Drive path, so the AI can see what you actually have without you uploading or describing anything. A typical prompt looks like: "List the files in my Google Drive Reports folder and tell me which ones were updated this week."

Because Drive is synced locally, this reads straight from disk — fast and private. Tip: run gdrive_root first to discover the valid root paths (e.g. "My Drive", shared drives) before listing deeper folders.

LMCP is a free, native macOS MCP server with 150+ tools that connect AI assistants to your real Mac apps. Download LMCP to get started.

Which AI agents work?

Pretty much every major AI client works with gdrive_list_files:

  • Desktop clients — Claude Desktop, Cursor, VS Code (GitHub Copilot), Windsurf and Zed auto-configure through local stdio. LMCP wires itself in automatically.
  • Web AIs — ChatGPT, Claude.ai (web), Grok and Perplexity connect through the LMCP Cloud Relay connector, which securely bridges the web client to the server running on your Mac.

Whichever you use, the file listing happens on your machine — the AI just receives the result.

Automation

Listing is the entry point to a whole chain of Drive work. The AI can call gdrive_list_files to find candidate files, then read them, summarize them, or move them with other LMCP tools. For example: list a folder, pick the latest spreadsheet, open it with the Excel tool, then draft an email about it with the Mail tool — all in one conversation. You can also chain it with gdrive_root to walk an unfamiliar Drive structure top-down, or combine it with Finder and OneDrive tools to compare what's stored where.

Context

The AI works with your real Google Drive data — the actual files synced to your Mac, with their real names, folders and modification dates. There's no stale snapshot and no manual copy-paste. When you ask "what did I save in the Clients folder?", the assistant answers from the live folder, so its suggestions and summaries reflect your true workspace.

Productivity

Instead of switching to Finder or drive.google.com, scrolling through folders, and reporting back what you found, you just ask. "Which of last quarter's invoices are still in my Drive inbox folder?" gets answered in seconds. For anyone juggling dozens of folders, this turns a two-minute hunt into a one-line question — and because the AI can act on what it finds, you skip the back-and-forth of locating, opening and processing files separately.

Privacy & GDPR

Everything runs locally on your Mac. gdrive_list_files reads the synced folder directly on disk — no file contents or listings are sent to any LMCP server, and nothing is stored in the cloud. There are no API keys to hand over and no third-party data processor in the loop. This local-first design makes LMCP GDPR-compliant by architecture: your data never leaves your device.

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