# OneDrive MCP connector

Connect OneDrive to Elaichi and Claude, ChatGPT, Cursor, or any MCP client can browse your drives, search files and folders, read documents, and check who a file is shared with, all inside each person's own OneDrive access.

Source: https://elaichi.ai/connectors/onedrive/

## Facts

| | |
| --- | --- |
| Application | OneDrive |
| Category | Cloud Storage |
| AI tools | 13 |
| Authentication | Connects over OAuth |
| Needs your own OAuth app | Yes |
| MCP endpoint | https://api.elaichi.ai/mcp |
| Works with | Claude, ChatGPT, Cursor, any MCP client, and the Elaichi Agent |
| Tools advertised by name | Yes |

## What you can ask once OneDrive is connected

- List files added to the Contracts folder this week.
- Who has permissions on the FY25 Budget workbook?
- Search OneDrive for the latest vendor onboarding deck.

## Connect OneDrive in Elaichi

This happens once for the organization, before any client is involved.

1. Open Connections, choose Add connection, and pick OneDrive.
2. Optionally set Share with, then press Connect.
3. Supply your own OneDrive app, then approve. OneDrive needs an OAuth app you register yourself, so bring its client ID and secret. One person does this once for the organization.

Credentials are vaulted and nobody, including the AI, reads them back. The connection becomes a toolbox immediately, so you can curate which OneDrive tools are exposed, rename them, or freeze arguments before anyone points a client at it.

## Connect OneDrive to Claude

Endpoint: https://api.elaichi.ai/mcp

1. Open Customize, then Connectors.
2. Press Add.
3. Name it, paste the MCP server URL, then Continue.
4. Sign in and approve.

On Team and Enterprise, an Owner adds it once. Everyone else turns it on for themselves.

## Connect OneDrive to ChatGPT

Endpoint: https://api.elaichi.ai/mcp

1. Open Plugins, then press the + button.
2. Name it and paste the endpoint into Server URL.
3. Leave Authentication on OAuth, then tick the risk acknowledgement.
4. Press Create, then sign in and approve.

Works on the web today. The plugin directory lives at chatgpt.com/plugins.

## Connect OneDrive to Cursor

Endpoint: https://api.elaichi.ai/mcp

1. Open `~/.cursor/mcp.json`.
2. Add the endpoint under `mcpServers`.
3. Reload Cursor, then sign in and approve.

Set up per machine, so repeat it on each computer you work from.

## Connect OneDrive to any MCP client

Endpoint: https://api.elaichi.ai/mcp

1. Add the endpoint as a remote MCP server.
2. Sign in and approve.

The Elaichi Agent already has these tools, with nothing to set up.

## What the consent screen decides

Only Read is granted by default, which is not enough to call a OneDrive tool. Over MCP there is no trusted place to confirm a write in the moment, so the consent screen is the standing approval rather than a formality. Grant Read and Run tools. Think hard before granting Delete, which reaches into connected apps and cannot be undone.

## What teams do with OneDrive through Elaichi

### Find the right proposal before a call

Sales. Ask for the latest pricing deck or proposal for an account and get the file from OneDrive without hunting through folders. Pull the key points into your notes while the call is still fresh.

### Pull the answer out of a guide

Support. Search OneDrive for the setup guide or troubleshooting document a customer needs and read the relevant section back in plain language. Reply with the exact steps instead of a link to a folder.

### Check who can see a shared folder

Operations. Look up the sharing on a vendor contract or process document and see which people and links have access. Spot files that are shared wider than they should be before an audit does.

### Locate last quarter's spreadsheets fast

Finance. Search across OneDrive for budget files, invoices, and reconciliations by name or content and open the version you need. Summarize the totals from a spreadsheet without downloading it yourself.

### Gather onboarding documents for a new hire

HR. List the policy handbooks, benefits summaries, and forms sitting in the HR drive and pull together what a new starter needs. Confirm each file is current before sending it on.

### Read a contract clause on demand

Legal. Find a signed agreement in OneDrive by counterparty and have the renewal, termination, or liability clause read back to you. Compare the wording across several agreements in one sitting.

## Frequently asked questions

### How do I connect OneDrive to Claude?

First connect OneDrive in Elaichi, then in Claude go to Customize, then Connectors, then Add, and paste https://api.elaichi.ai/mcp. OneDrive connects over OAuth, but it needs an app registration created once inside your Microsoft account, so an administrator brings that client ID and secret to Elaichi a single time. After that, each person simply signs in to their Microsoft account in the browser and nobody else ever handles a key.

### Does OneDrive work with ChatGPT and Cursor as well as Claude?

Yes. Once OneDrive is connected in Elaichi, the same endpoint, https://api.elaichi.ai/mcp, works in Claude, ChatGPT, Cursor, any MCP client, and the Elaichi Agent. You connect OneDrive once and every client picks it up.

### What can an AI agent actually do with my OneDrive data?

With OneDrive connected, an agent can list your drives and folders, search files by name or content, open a document and read or summarize it, and download a file when you ask for it. It can also look up which people in your organization have access to a file and who the users in your OneDrive are. This connector reads from OneDrive; it does not create, edit, move, or delete files.

### Does connecting OneDrive give the AI access to every file in the company?

No. Every request to OneDrive runs as the person who signed in, so the agent can only see the drives, folders, and shared files that person can already open in OneDrive. Elaichi can narrow that further, for example limiting a team to search and read only, but it can never widen access beyond what OneDrive already grants.

### Can my team share one OneDrive connection?

Yes. One person sets up the OneDrive connection in Elaichi, including the one-time app registration, and shares it with a team so nobody else handles a client ID or secret. Each teammate still signs in to OneDrive as themselves, so their access stays their own and the audit log names the actual person behind every file opened.

### Can I stop an agent from deleting or changing things in OneDrive?

This OneDrive connector only browses, searches, reads, and downloads, so there are no delete or edit actions for an agent to reach in the first place. On top of that, Elaichi restrictions work per action, so you can also switch off downloads or permission lookups for a given team. A blocked action is never shown to Claude, ChatGPT, or Cursor at all, so no prompt can trigger it.

### What happens to a OneDrive connection when someone leaves?

When you offboard a person in Elaichi, their access to OneDrive through every connected client ends immediately. A shared OneDrive connection keeps working for everyone else on the team. If you ever want to remove OneDrive entirely, disconnecting it once in Elaichi removes it from Claude, ChatGPT, Cursor, and every other client at the same time.

## All 13 OneDrive tools

Every tool below is callable through https://api.elaichi.ai/mcp once OneDrive is connected, subject to the toolbox it is in and the restrictions on the caller.

- **List all OneDrive me** (List). Retrieves the profile information of the currently authenticated user, including their ID, name, email, and userPrincipalName
- **List all OneDrive drives** (List). List drives for a user in OneDrive. Requires user_id. Returns id, driveType, name, and owner with user id and displayName for each drive.
- **Get single OneDrive drive by ID** (Get). Get a drive by id in OneDrive. Returns id, driveType, owner user id and displayName, and quota details including deleted, fileCount, remaining, state, and total.
- **List all OneDrive drive items** (List). List DriveItem by drive_id and item_id in OneDrive. Returns an array of driveItem objects including name, size, and folder childCount if applicable.
- **Get single OneDrive drive item by ID** (Get). Get metadata for a specific DriveItem by id in OneDrive using drive_id and id. Returns fields like createdBy, createdDateTime, cTag, eTag, folder childCount, id, lastModifiedBy, lastModifiedDateTime, name, size, and webUrl.
- **OneDrive drive items download** (Download). Internal download-passthrough helper: fetches a pre-signed file URL (from a drive item's @microsoft.graph.downloadUrl) via truto_base and truto_path. Not intended for direct agent use — to download a file's content, use the drive item content download tool (get by file id) instead.
- **List all OneDrive search** (List). Run a search query in OneDrive with a JSON body containing requests specifying entityTypes, contentSources, region, query, from, size, and fields. Returns search terms, hits with hitId, rank, summary, and resource details.
- **Get single OneDrive drive item content download by ID** (Get). Download the contents of a DriveItem file in OneDrive using id. Returns a 302 redirect to a pre-authenticated download URL in the Location header.
- **List all OneDrive drive item permissions** (List). List effective sharing permissions on a DriveItem in OneDrive by id. Returns permissions including roles, link details, grantedTo user info, and inheritedFrom ancestor reference.
- **List all OneDrive users** (List). List users in OneDrive. Returns user properties including businessPhones, displayName, givenName, id, jobTitle, mail, mobilePhone, officeLocation, preferredLanguage, surname, and userPrincipalName. NOTE: Microsoft Graph directory endpoints only accept $-prefixed OData parameters, which cannot be passed through MCP tools — server-side select/filter/search are unavailable here; list users and filter client-side.
- **Get single OneDrive user by ID** (Get). Get information about a specific user in OneDrive. Requires id. Returns default user properties including businessPhones, displayName, givenName, id, jobTitle, mail, mobilePhone, officeLocation, preferredLanguage, surname, and userPrincipalName. NOTE: Microsoft Graph directory endpoints only accept $-prefixed OData parameters, which cannot be passed through MCP tools — server-side select/filter/search are unavailable here; list users and filter client-side.
- **List all OneDrive search drive items** (List). Search DriveItems in OneDrive root drive using query q. Returns matching DriveItems with id, name, folder info, and searchResult.onClickTelemetryUrl fields.
- **List all OneDrive root** (List). Get metadata for the root DriveItem in OneDrive. Returns fields including id, name, size, createdBy, lastModifiedBy, createdDateTime, lastModifiedDateTime, folder childCount, and webUrl.
