joescars-onedrive-mcp
v0.1.2Read-only MCP server for personal Microsoft OneDrive accounts
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_onedrive
Search OneDrive for files/folders by name or content match. Args: query: Search text (Graph full-text search over file/folder names and content). top: Page size, between 1 and 200 (default 20). next_link: Continuation returned by this tool; keep query and top unchanged. Returns {query, count, items, next_link, has_more}. Repeat with next_link until has_more is false; count is the number of items in this page only.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
next_link | ||
top | integer |
list_folder
List the contents of a OneDrive folder. Args: path: Folder path (e.g. '/Documents') or 'root'/'/' for the drive root. A Graph item id is also accepted. top: Page size, between 1 and 200 (default 50). next_link: Continuation returned by this tool; keep path and top unchanged. Returns {items: [...], next_link, has_more}. Repeat with next_link until has_more is false. Opaque continuations are bound to this folder and page size, and expire after one hour or a server restart.
| Parameter | Type | Description |
|---|---|---|
next_link | ||
path | string | |
top | integer |
get_item_metadata
Get full metadata for a single OneDrive file or folder. Args: path_or_id: Either a human path (e.g. '/Documents/foo.pdf') or a raw Graph drive item id. Returns {name, id, path, size, last_modified, is_folder, web_url, created, mime_type, child_count}. The pre-authenticated Graph downloadUrl is intentionally NOT returned (see SECURITY_REVIEW N-M2) — use download_file() to fetch content.
| Parameter | Type | Description |
|---|---|---|
path_or_id * | string |
download_file
Download a OneDrive file's content to local disk (read-only — the source file in OneDrive is never modified). Args: path_or_id: Human path (e.g. '/Documents/foo.pdf') or Graph item id of the FILE to download. dest_filename: Optional bare local filename to save as (defaults to the OneDrive file's own name). Saved under DOWNLOAD_DIR. Must be a plain file name (no path separators) and must not already exist — an existing destination raises an error instead o…
| Parameter | Type | Description |
|---|---|---|
path_or_id * | string | |
dest_filename |
get_drive_info
Get basic OneDrive info (quota, owner, drive id) — useful as a smoke test that authentication is working. Returns {drive_id, drive_type, owner_name, quota_used, quota_total, quota_remaining, web_url}.