Get OneDrive File Info with AI on Mac

Ask your AI for any OneDrive file's size, modified date, type and extension on Mac. LMCP reads metadata locally — no API keys, no cloud, fast and private.

L
LMCP··5 min read

The onedrive_file_info tool lets your AI assistant fetch metadata about a single file or folder stored in your OneDrive on your Mac: its size, last modification date, type (file or folder), and extension. Because it inspects one item directly instead of scanning the whole parent directory, it is noticeably faster than a full folder listing when you already know the path you care about.

A typical prompt looks like: "How big is Budget-2026.xlsx in my OneDrive Documents folder, and when was it last changed?" Your AI calls onedrive_file_info, reads the metadata locally, and answers in seconds without opening the file or uploading anything.

Download LMCP to connect your AI to your real OneDrive files on macOS.

Which AI agents work?

LMCP works with every major AI client. Desktop apps configure automatically over a local stdio connection, so the tool just appears once LMCP is installed:

  • Claude Desktop — auto-configured via local stdio
  • Cursor — auto-configured via local stdio
  • VS Code (GitHub Copilot) — auto-configured via local stdio
  • Windsurf — auto-configured via local stdio
  • Zed — auto-configured via local stdio

Web-based AIs connect through the LMCP Cloud Relay connector, which bridges them to the server running on your Mac:

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

Automation

Metadata is a building block, so onedrive_file_info chains naturally with the other 150+ tools LMCP exposes. Ask your AI to list a OneDrive folder, then check the info on the newest item to decide whether it needs attention. Combine it with file-reading tools to open only files above a certain size, or pair it with Calendar and Mail tools: "Check when Q3-Report.pdf was last modified in OneDrive, and if it changed this week, email it to my manager." The AI uses the modification date from onedrive_file_info as the condition for the next step.

Context

The AI is not guessing from a generic web index — it reads your actual OneDrive files on your actual Mac. When it reports a size or a modified date, that value comes straight from the file on disk. This grounding means answers reflect the current state of your work: a file you saved a minute ago shows its real timestamp, and a folder you reorganized shows its real contents. No stale cloud snapshot, no manual copy-paste of properties from Finder.

Productivity

Checking file properties by hand means opening Finder, navigating to the OneDrive folder, right-clicking, and reading the Get Info panel — repeated for every file. With onedrive_file_info your AI answers "which of these three reports is the largest and most recently edited?" in a single turn. For sync troubleshooting, version checks, or cleanup decisions, you skip the manual hunt entirely and let the assistant compare metadata across files in one breath.

Privacy & GDPR

Everything runs locally on your Mac. LMCP is a native macOS MCP server that reads your OneDrive metadata directly from disk — there are no API keys, no cloud middleman, and nothing is stored on any server. File sizes, paths, and dates never leave your machine. This local-first design makes LMCP GDPR-compliant by architecture: there is no third-party processor to audit because your data never travels.

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