Onedrive MCP server

Connect Onedrive to Claude, ChatGPT, Cursor, Claude Code, Codex, Gemini, GitHub Copilot and any other MCP client, for your whole team. Metorial adds security, governance, and tracing, and gives everyone one Magic MCP URL to connect.

What you can do with the Onedrive MCP server

Ask your agent in plain language. Each of these maps to a real tool on the server.

  • Use the manage permissions tool in Onedrive
  • Use the copy file or folder tool in Onedrive
  • Use the list files & folders tool in Onedrive
  • Use the move or rename item tool in Onedrive
  • Use the create folder tool in Onedrive
  • Use the share file or folder tool in Onedrive

Supported Tools

manage_permissions

Manage Permissions

Lists or removes permissions on a file or folder in OneDrive or SharePoint. Use "list" action to see all sharing permissions and links, or "remove" to revoke a specific permission.

copy_item

Copy File or Folder

Copies a file or folder to a new location in OneDrive or SharePoint. The copy is performed asynchronously by Microsoft Graph; a monitor URL is returned to track the operation status. Optionally rename the copy.

list_items

List Files & Folders

Lists files and folders within a specific folder in OneDrive or a SharePoint document library. Supports pagination, filtering, and sorting. Items can be addressed by folder ID or by path.

move_rename_item

Move or Rename Item

Moves a file or folder to a new location and/or renames it. Can move items between folders or across drives in OneDrive/SharePoint. Provide a new parent folder to move, a new name to rename, or both.

create_folder

Create Folder

Creates a new folder in OneDrive or SharePoint. The parent location can be specified by folder ID or path.

share_item

Share File or Folder

Creates a sharing link or sends sharing invitations for a file or folder in OneDrive or SharePoint. Can create anonymous, organization-wide, or user-specific links with read or edit access. Can also invite specific users by email.

delete_item

Delete File or Folder

Permanently deletes a file or folder from OneDrive or SharePoint. Deleted items may be moved to the recycle bin depending on the drive configuration.

get_item

Get File or Folder

Retrieves detailed metadata for a specific file or folder in OneDrive or SharePoint, including size, timestamps, permissions summary, and media-specific metadata (photo, audio, video). Items can be addressed by ID or path.

search_files

Search Files

Searches for files and folders in OneDrive or SharePoint by name, content, or metadata. Results include items from the user's own drive as well as items shared with them.

list_drives

List Drives

Retrieves all available drives for the authenticated user, including their personal OneDrive and any shared drives or SharePoint document libraries they have access to. Returns drive metadata including storage quota information.

upload_file

Upload File

Uploads a file to OneDrive or SharePoint. Supports simple upload for text/small content. For large file uploads, use the "Create Upload Session" tool instead. The destination can be specified by parent folder ID or path.

download_file

Get Download URL

Retrieves a pre-authenticated, short-lived download URL for a file in OneDrive or SharePoint. Supports optional format conversion (e.g., convert to PDF). The URL can be used directly to download the file content.

create_upload_session

Create Upload Session

Creates a resumable upload session for uploading large files (up to 250 GB) to OneDrive or SharePoint. Returns an upload URL that accepts byte range PUT requests. Use this for files larger than 4 MB.

Connect Onedrive to your AI client

Every client uses the same Magic MCP URL, and so does any other MCP client. Add it once and sign in with SSO.

  1. Enable Onedrive in Metorial. In your Metorial portal, enable the Onedrive MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
  2. Add a custom connector. Open Customize, then Connectors. Select Add, then Custom, then Web.
  3. Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>) and continue.
  4. Sign in. Select Add and sign in to load Onedrive tools.

Run Onedrive through the Metorial gateway

One governed layer for every app your agents reach, not a separate connector per tool.

  • Give Onedrive and every other app to your whole team through one MCP gateway, behind your SSO.
  • Scope which teams and agents can use Onedrive tools with role-based access control, and trace every call.
  • Prefer to run it yourself? Metorial is open source and self-hostable.

More integrations teams use with Onedrive

Notion

Create, read, update, and archive pages and databases in a Notion workspace. Manage blocks (paragraphs, lists, headings, embeds, etc.) within pages. Query databases with filters and sorts across rich property types including text, numbers, dates, selects, relations, and formulas. Search across pages and databases by title. Add and read comments on pages and blocks. Upload files to pages. Manage workspace users and retrieve user profiles.

Google Sheets

Create, read, and update spreadsheets and their cell data. Read and write values to individual cells, ranges, or multiple ranges using A1 notation or named ranges. Apply cell formatting including text styles, backgrounds, borders, number formats, and conditional formatting. Manage sheets (tabs) within a spreadsheet—add, delete, copy, rename, and reorder them. Create and manage embedded charts, pivot tables, filter views, data validation rules, protected ranges, named ranges, and merged cells. Perform batch operations to apply multiple updates atomically.

GitHub

Manage repositories, issues, and pull requests. Create and configure branches, star repositories, review code, and merge changes. Automate CI/CD workflows with GitHub Actions, manage workflow runs, secrets, and artifacts. Track issues with labels, milestones, and assignees. Search across code, repositories, issues, and users. Manage organizations, teams, and memberships. Create and manage projects, gists, packages, deployments, and environments. Access security alerts including code scanning, secret scanning, and Dependabot alerts. Read and write file contents in repositories. Manage webhooks, notifications, and codespaces.

Salesforce

Manage CRM data including Accounts, Contacts, Leads, Opportunities, Cases, and custom objects. Create, read, update, and delete records. Query data using SOQL and search across objects using SOSL. Perform bulk data operations for large-scale imports, exports, and migrations. Execute composite requests to batch multiple operations in a single API call. Access analytics, reports, and dashboards. Manage files and attachments associated with records. Interact with Chatter feeds, posts, and groups for social collaboration. Manage org metadata including custom objects, fields, layouts, and workflows. Query data using GraphQL for precise data retrieval across related objects.

Sharepoint

Manage SharePoint sites, document libraries, lists, and files. Create, read, update, and delete lists and list items with custom columns. Resolve site users to numeric Person/Group LookupId values. Upload, download, move, copy, and version files in document libraries. Search across sites, files, folders, lists, and list items using Microsoft Search. Manage permissions at site, list, and item levels with granular access control. Define and manage content types and site columns. Retrieve site properties and search for sites across Microsoft 365.

Airtable

Create, read, update, and delete records in Airtable bases and tables. Manage base schemas including creating tables and fields. Filter records using formulas, sort by fields, and scope queries to specific views. Upsert records to find, create, or update in a single call. Upload attachments to records, read and write record comments, list accessible bases, and receive real-time base change events through webhooks.

Technical notes for Onedrive

Upload, download, create, copy, move, rename, and delete files and folders in OneDrive and SharePoint document libraries. Share files and folders via sharing links or permission grants. Search for files by name, content, or metadata. Manage drives and access storage quota information. Track file and folder changes over time using delta queries. Access file previews, thumbnails, and rich metadata for photos, audio, and video. Supports resumable uploads for large files up to 250 GB and PDF conversion on download.

Frequently asked questions

Common questions about connecting Onedrive to AI agents with Metorial.

  1. How many tools does the Onedrive MCP server have?
    The Onedrive MCP server exposes 13 tools, including Manage Permissions, Copy File or Folder, List Files & Folders. Each one is governed and traced through Metorial.
  2. Onedrive exposes tools your agents call on demand; it does not publish event triggers yet. Everything still runs through one governed MCP URL.
  3. Any MCP client, including VS Code, Windsurf, Zed, OpenCode and Grok. Each one reaches the Onedrive MCP server through the same Metorial URL.
  4. Use role-based access control to decide which teams, users, and agents can use Onedrive and which of its tools they can call.
  5. Yes. Metorial is open source, so you can run the Onedrive MCP server yourself or use the hosted gateway.

Connect Onedrive to production AI agents

See how Metorial gives your team governed access to Onedrive, with tracing and security controls built in.