mcp-onedrive
v0.10.2MCP server that lets AI assistants work with OneDrive (web) through a Chrome/Edge extension bridge
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_version Version and connection status
Shows the mcp-onedrive server version, the browser extension version, and whether a OneDrive tab is reachable.
api_traffic Show the OneDrive web app's API calls (diagnostic)
Lists the API endpoints the open OneDrive/SharePoint tab has called since the browser started: method, host, API route (file names and ids left out), status, which headers were sent (names only, never values) and the auth scheme. Used to find out which API the web app uses. Off unless the user turned on "Record OneDrive API calls" in the extension's popup. Reload the OneDrive tab and click around first.
| Parameter | Type | Description |
|---|---|---|
clear | boolean | Clear the recorded traffic after returning it |
host | string | Only show requests to hosts containing this text |
limit | integer |
list_folder List a OneDrive folder
Lists the files and subfolders of a folder in your OneDrive (folders first, then by name) with size, modified time and who modified it. Pass nextCursor back as cursor for the next page.
| Parameter | Type | Description |
|---|---|---|
cursor | string | nextCursor from the previous page (use the same path) |
limit | integer | |
path | string | Path relative to your OneDrive root, e.g. "Documents/Report.pdf". "" or "/" is the root. |
search_files Search OneDrive files
Full-text search over file names and contents (SharePoint search, KQL syntax such as filetype:pdf or "exact phrase"). scope "onedrive" searches your OneDrive; "all" also searches SharePoint sites and files shared with you (those results have a url but no path: pass the url to read_file or download_file). New files can take a few minutes to become searchable.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
limit | integer | |
offset | integer | |
scope | string |
find_files Find OneDrive files by name, folder, type, size or date
Finds files and folders in your OneDrive by their metadata, from a local index of the whole drive that follows OneDrive's changes (new files show up within seconds). Use it for names, folders, extensions, sizes and dates, e.g. the largest files, everything changed this week under a folder, or all *.pptx. To search inside file contents use search_files. The first use on a computer builds the index in the background; until index.state is "ready", results are partial.
| Parameter | Type | Description |
|---|---|---|
extensions | array | File extensions, e.g. ["pdf", "docx"] |
folder | string | Only inside this folder and its subfolders, e.g. "Projects/2026" |
limit | integer | |
maxSize | integer | In bytes |
minSize | integer | In bytes |
modifiedAfter | string | ISO date or date-time, e.g. 2026-10-01 |
modifiedBefore | string | ISO date or date-time |
name | string | Name to match, case-insensitive: a glob over the whole name ("*.pdf", "report-202?.xlsx"), or without * and ? any part of it |
offset | integer | |
order | string | |
sort | string | |
type | string |
read_file Read a OneDrive or SharePoint file
Returns the contents of a file for you to read, without saving it: the text of Word, Excel (every sheet, rows numbered, columns lettered), PowerPoint (slides and speaker notes), PDF, older Office formats (.doc, .xls, .ppt), RTF and OpenDocument, plain text, CSV, JSON and code, or the picture itself for PNG, JPEG, GIF and WebP. Long text comes in parts: pass nextOffset back as offset for the next one; totalChars is null until a long plain-text file has been read to its end. Works for files in your OneDrive (path) and anywhere on your organisation's SharePoint that you can open (url from search_…
| Parameter | Type | Description |
|---|---|---|
maxChars | integer | Most characters to return |
offset | integer | Character to start from (nextOffset of the previous part) |
path | string | Path relative to your OneDrive root, e.g. "Documents/Report.pdf". "" or "/" is the root. |
url | string | Instead of path: the url of a file as search_files returns it, e.g. on a SharePoint site or shared with you |
download_file Download a OneDrive or SharePoint file
Downloads a file from your OneDrive (path), or from your organisation's SharePoint (url from search_files), into the download folder (/home/runner/Downloads/mcp-onedrive) and returns the local path. Never overwrites a local file: an existing name gets " (1)" appended.
| Parameter | Type | Description |
|---|---|---|
path | string | Path relative to your OneDrive root, e.g. "Documents/Report.pdf". "" or "/" is the root. |
url | string | Instead of path: the url of a file as search_files returns it, e.g. on a SharePoint site or shared with you |
upload_file Upload a local file to OneDrive
Uploads a local file into a OneDrive folder. Large files are sent in chunks. Fails if a file with that name already exists in the folder, unless replace is true: then the upload becomes a new version of that file, and the previous content stays in its version history. The user is asked to confirm each upload; where the app cannot ask, only files in the allowed folders can be uploaded. Hidden files and folders (like ~/.ssh), ~/Library and AppData, and key or credentials files are never uploaded.
| Parameter | Type | Description |
|---|---|---|
localPath * | string | Absolute path of the local file |
folder | string | Destination folder relative to your OneDrive root ("" for the root). Must exist. |
name | string | File name in OneDrive (default: the local file name) |
replace | boolean | Save as a new version of an existing file with that name, instead of failing |
create_folder Create a OneDrive folder
Creates a folder in your OneDrive. The parent folder must exist. Returns created: false if it already exists.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path relative to your OneDrive root, e.g. "Documents/Report.pdf". "" or "/" is the root. |