Onedrive

v0.2.1
io.github.pipeworx-io/onedrive Checked 16 hours ago Published 28 days ago

OneDrive (Microsoft Graph) MCP Pack

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

onedrive_list_files

List files and folders in a OneDrive (Microsoft 365) folder. Pass a folder path relative to the drive root (e.g. "Documents" or "Documents/Reports"); omit to list the root. Returns each item's id, name, size, whether it is a folder, last-modified time, and web URL. Use to browse a user's OneDrive documents.

ParameterTypeDescription
pathstringFolder path relative to the OneDrive root, e.g. "Documents" or "Documents/Reports". Omit or leave empty for the root folder.
topnumberMaximum number of items to return (default 50, max 200).

onedrive_search_files

Search a user's OneDrive (Microsoft 365) for files and folders matching a query string across file names and content. Returns matching items with id, name, size, folder flag, last-modified time, and web URL. Use to find documents by keyword.

ParameterTypeDescription
query *stringFree-text search query matched against OneDrive file names and content.
topnumberMaximum number of results to return (default 25).

onedrive_get_file

Get full metadata for a single OneDrive (Microsoft 365) file or folder by its item id. Returns id, name, size, folder/file info, created and last-modified times, web URL, and parent reference. Use after listing or searching to inspect one document.

ParameterTypeDescription
id *stringThe OneDrive drive-item id of the file or folder.

onedrive_get_file_content

Download and return the text content of a OneDrive (Microsoft 365) file by its item id. Best for plain-text, Markdown, and CSV files; binary formats (Office docs, PDFs, images) will return unreadable bytes. Content is capped at ~100,000 characters and flagged when truncated.

ParameterTypeDescription
id *stringThe OneDrive drive-item id of the file to read.

onedrive_list_shared

List files and folders that have been shared with the user in OneDrive / Microsoft 365 ("Shared with me"). Returns each item's name, web URL, and who shared it. Use to find documents shared by colleagues.

ParameterTypeDescription
topnumberMaximum number of shared items to return (default 25).

onedrive_get_profile

Get the user's OneDrive (Microsoft 365) drive profile: drive type, storage quota used and total (in bytes), and the owner display name. Use to report storage usage or confirm the connected account.