Onedrive logo

Onedrive

Connects AI agents to OneDrive through Microsoft Graph for browsing, searching, metadata, text retrieval, and sharing checks.

Install Onedrive

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "onedrive": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-onedrive"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 6 tools correctly (16d ago).

Overview

The Onedrive MCP server connects AI agents to a user's Microsoft OneDrive through Microsoft Graph. It exposes tools for browsing folders, searching file names and content, retrieving item metadata, downloading text files, listing shared items, and checking drive storage details. Use the hosted Pipeworx endpoint for a connected Microsoft account, or run the package locally over stdio without a Pipeworx account. Text retrieval is intended for plain text, Markdown, and CSV; binary files may produce unreadable bytes.

Use cases

  • Browse folders in a connected OneDrive
  • Search documents by filename or content
  • Retrieve metadata for a selected file
  • Read supported text, Markdown, or CSV files
  • Check shared items and storage usage

Key features

  • List files and folders by path
  • Search OneDrive names and content
  • Retrieve file and folder metadata
  • Read text file content with truncation flags
  • List items shared with the user
  • Report drive quota and owner details

Tools6

What Onedrive lets your agent do. Expand a tool for its parameters.

Verified live~657 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 3d ago

Recent health check succeeded.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · @pipeworx/mcp-onedrive (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads446Package downloads in the last 30 days.
Last commit28d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed6Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Onedrive works

What the Onedrive MCP server does

The Onedrive MCP server gives an MCP-compatible AI client access to selected OneDrive and Microsoft 365 file operations. It can browse folders, search across file names and content, inspect individual items, retrieve text from files, find items shared with the connected user, and report drive profile information.

The server works against the connected Microsoft account. Results include identifiers and practical file details such as names, sizes, folder status, modification times, web URLs, and parent references. This makes it suitable for agents that need to locate documents, inspect their metadata, or read supported text files before answering a question.

How it works

Two connection modes are documented. The hosted option uses a Pipeworx MCP endpoint at https://gateway.pipeworx.io/onedrive/mcp. Before using that endpoint, sign in to Pipeworx and connect a Microsoft account. The same gateway can also be accessed through its full endpoint, although the full gateway lists tools from all available packs directly.

A local option runs @pipeworx/mcp-onedrive with npx and communicates through standard input and output. The local process exposes only the OneDrive pack's tools, while the hosted pack endpoint also includes Pipeworx-wide meta-tools such as routing and discovery tools. The hosted connection can therefore route questions beyond this pack through ask_pipeworx.

Setup and configuration

For a hosted MCP client, add the pack URL as an MCP server. A local setup uses the following command and does not require a Pipeworx account:

config.json
{
  "mcpServers": {
    "onedrive": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-onedrive"]
    }
  }
}

The package can also be started directly with npx -y @pipeworx/mcp-onedrive to confirm that it launches. For users without an MCP client, Pipeworx documents HTTP access to individual tools using a bearer key. The key is obtained from a Pipeworx account after connecting Microsoft.

Tools and capabilities

The Onedrive MCP server provides these documented tools:

  • onedrive_list_files lists items in the root or a folder path relative to the drive root.
  • onedrive_search_files searches file names and content using a query string.
  • onedrive_get_file returns metadata for a file or folder identified by item ID.
  • onedrive_get_file_content returns text content for a file by item ID.
  • onedrive_list_shared lists items in the user's “Shared with me” collection and identifies the sharer.
  • onedrive_get_profile reports drive type, quota usage, total quota, and owner display name.

Content retrieval is capped at approximately 100,000 characters and indicates when output is truncated. The tool is intended for plain-text, Markdown, and CSV files. Office documents, PDFs, images, and other binary formats may return unreadable bytes rather than parsed document content.

Limitations and notes

Hosted pack connections include shared Pipeworx meta-tools in addition to the six OneDrive tools. The exact hosted tool scope can change; the README recommends treating the connection's initialize response as authoritative. The local stdio process does not include those shared tools or cross-pack routing.

The documented operations focus on listing, searching, reading, metadata, sharing, and profile information. Use the item ID returned by listing or searching when inspecting an individual file, and expect text output limits when reading content.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Onedrive

Onedrive is an MCP server that connects AI agents to a user's Microsoft OneDrive through Microsoft Graph. Its main tools list files, search files, retrieve metadata, download text content, list shared items, and inspect drive profile and storage details. It can run through Pipeworx or locally over stdio.

Run it locally with `npx -y @pipeworx/mcp-onedrive` or add that command and package to your MCP client's server configuration. This local mode does not require a Pipeworx account. You can instead use the hosted Pipeworx endpoint after connecting a Microsoft account.

Yes, Cursor is listed as a supported MCP client configuration. Add `https://gateway.pipeworx.io/onedrive/mcp` as the server URL for the hosted connection, or configure the local `npx` command for stdio access.

No, reliable content retrieval is documented for plain-text, Markdown, and CSV files. PDFs, Office documents, images, and other binary formats may be returned as unreadable bytes. Retrieved content is capped at approximately 100,000 characters and may be marked as truncated.

Use the standalone package locally over stdio with `npx -y @pipeworx/mcp-onedrive`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewOnedrive AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/onedrive?style=directory)](https://allmcps.com/mcp/onedrive)
HTML Embed
<a href="https://allmcps.com/mcp/onedrive"><img src="https://allmcps.com/api/badge/onedrive?style=directory" alt="Onedrive on AllMCPs" /></a>