# OneDrive MCP tools for AI agents

Source: https://corespeed.io/catalog/onedrive

Connect OneDrive to Claude Code, Codex, Cursor or any MCP agent through CoreSpeed. Browse, search, and read OneDrive files, upload text files, create folders and share links, and delete items. Your agent works through your own OneDrive account and gets 8 OneDrive tools; CoreSpeed holds the credential, so the agent never sees the token. Calling it is free.

## Tools

- `onedrive__list_items`: List the contents of a OneDrive folder (defaults to the drive root), with a compact projection of each item.
- `onedrive__search_items`: Search the whole OneDrive for files and folders matching a query.
- `onedrive__get_item`: Fetch one OneDrive item's full metadata by id — the escape hatch when the list projection is not enough.
- `onedrive__download_text`: Read a OneDrive file's contents as text. Intended for text-ish files; binary content will come back as mojibake. Output is capped at 100,000 characters and the reply reports whether it was truncated.
- `onedrive__create_folder`: Create a folder in OneDrive. A name collision is resolved by renaming rather than failing.
- `onedrive__upload_text_file`: Create or replace a text file in OneDrive. Uses Graph's simple upload, so content must be under 4 MiB.
- `onedrive__delete_item`: Delete a OneDrive file or folder. Graph moves it to the recycle bin, so it stays recoverable.
- `onedrive__create_share_link`: Create a sharing link for a OneDrive item. scope=anonymous produces a link anyone with the URL can open; organization limits it to the tenant, and is only meaningful for a work or school account — this connector's `common` tenant also admits personal Microsoft accounts, which have no organization to scope to, so pass anonymous for those.

## Questions

### Does OneDrive need my own account?

Yes. Connect your own OneDrive account once; CoreSpeed holds the credential, and your agents get tools, never the token.

### What does OneDrive cost on CoreSpeed?

Calling it is free.

### Which agents can use OneDrive?

Any MCP client, such as Claude Code, Codex, or Cursor. Give your agent the setup line, and the tools join its tool list. Set up an agent: https://corespeed.io/docs/mcp

## Related pages

- [OneDrive for Claude Code, Codex, and Cursor](https://corespeed.io/integrations/onedrive): Find a file in OneDrive, read its text, and turn it into a brief inside the agent you already use.

## Links

- Catalog: https://corespeed.io/catalog
- Set up an agent: https://corespeed.io/SKILL.md
- Pricing: https://corespeed.io/pricing (Markdown: https://corespeed.io/pricing.md)
