Read and write local files with configurable access controls.
- Home
- Top MCPs for Filesystem & Storage
- OneDrive & SharePoint
OneDrive & SharePoint
Search, read, and write OneDrive and SharePoint files from an AI agent — official Microsoft remote MCP.
Quick answer
What it does
Exposes Microsoft Graph OneDrive and SharePoint file operations as MCP tools that are auto-discovered from the ODSP endpoint — list and search drives, read and write files, navigate sites and document libraries, and run cross-content search across the tenant.
Best for
- Microsoft 365 file search across OneDrive + SharePoint
- Reading a SharePoint document into the agent's context
- Writing generated files to a user's OneDrive
- Tenant-scoped, Entra-enforced installs
Not for
- Non-Microsoft-365 tenants
- Clients without remote-MCP support
Source: top-mcps.com/mcp/onedrive — verified Aug 2026
Setup recipe
Pick your client, then follow the three steps.
- 1
Install
claude_desktop_config.jsonjson{ "mcpServers": { "onedrive": { "command": "npx", "args": [ "-y", "mcp-remote", "https://agent365.svc.cloud.microsoft/agents/tenants/{tenant_id}/servers/mcp_ODSPRemoteServer" ] } } }Claude Desktop launches stdio servers, so mcp-remote bridges to the hosted endpoint and opens the sign-in in your browser. On Pro, Max, Team and Enterprise you can skip the file: Settings → Connectors → Add custom connector → https://agent365.svc.cloud.microsoft/agents/tenants/{tenant_id}/servers/mcp_ODSPRemoteServer. Authorization happens in the browser on first use (OAuth); no token goes in the config file.
CLI or .mcp.jsonshellclaude mcp add --transport http onedrive https://agent365.svc.cloud.microsoft/agents/tenants/{tenant_id}/servers/mcp_ODSPRemoteServerThen run /mcp inside Claude Code to finish the sign-in. Authorization happens in the browser on first use (OAuth); no token goes in the config file.
.cursor/mcp.jsonjson{ "mcpServers": { "onedrive": { "url": "https://agent365.svc.cloud.microsoft/agents/tenants/{tenant_id}/servers/mcp_ODSPRemoteServer" } } }Global path: ~/.cursor/mcp.json. Cursor shows "Needs login" once it connects — click it to authorize. Authorization happens in the browser on first use (OAuth); no token goes in the config file.
.vscode/mcp.jsonjsonc{ "servers": { "onedrive": { "type": "http", "url": "https://agent365.svc.cloud.microsoft/agents/tenants/{tenant_id}/servers/mcp_ODSPRemoteServer" } } }VS Code uses the "servers" key. Run MCP: List Servers → Start Server and allow the sign-in. Authorization happens in the browser on first use (OAuth); no token goes in the config file.
~/.codeium/windsurf/mcp_config.jsonjson{ "mcpServers": { "onedrive": { "serverUrl": "https://agent365.svc.cloud.microsoft/agents/tenants/{tenant_id}/servers/mcp_ODSPRemoteServer" } } }Windsurf uses "serverUrl" for hosted servers. Open via Cascade → hammer icon → Configure. Authorization happens in the browser on first use (OAuth); no token goes in the config file.
cline_mcp_settings.jsonjson{ "mcpServers": { "onedrive": { "command": "npx", "args": [ "-y", "mcp-remote", "https://agent365.svc.cloud.microsoft/agents/tenants/{tenant_id}/servers/mcp_ODSPRemoteServer" ] } } }Bridged through mcp-remote. Open via the Cline sidebar → MCP Servers → Edit. Authorization happens in the browser on first use (OAuth); no token goes in the config file.
~/.continue/config.jsonjson{ "experimental": { "modelContextProtocolServers": [ { "transport": { "type": "streamable-http", "url": "https://agent365.svc.cloud.microsoft/agents/tenants/{tenant_id}/servers/mcp_ODSPRemoteServer" } } ] } }Continue takes the hosted URL directly in the transport block. Authorization happens in the browser on first use (OAuth); no token goes in the config file.
CLIshellcodex mcp add onedrive --url https://agent365.svc.cloud.microsoft/agents/tenants/{tenant_id}/servers/mcp_ODSPRemoteServerCodex detects OAuth support and opens the browser to authorize. Authorization happens in the browser on first use (OAuth); no token goes in the config file.
~/.config/zed/settings.jsonjsonc{ "context_servers": { "onedrive": { "command": { "path": "npx", "args": [ "-y", "mcp-remote", "https://agent365.svc.cloud.microsoft/agents/tenants/{tenant_id}/servers/mcp_ODSPRemoteServer" ] } } } }Bridged through mcp-remote under "context_servers". Settings live-reload on save. Authorization happens in the browser on first use (OAuth); no token goes in the config file.
ChatGPT → Settings → Connectors (remote URL)json{ "name": "OneDrive & SharePoint", "transport": "http", "url": "https://agent365.svc.cloud.microsoft/agents/tenants/{tenant_id}/servers/mcp_ODSPRemoteServer" }Paste this into Settings → Connectors → Add custom connector. Requires ChatGPT Pro / Team / Enterprise / Edu with Developer mode enabled.
- 2
Set required secrets
No credentials required — this MCP runs over stdio without authentication.
- 3
Try a minimum working prompt
Summarise a SharePoint document into a Teams-ready brief
Search SharePoint for the most recent file named "Q4 launch plan" in the Marketing site, read it, and return a 5-bullet summary I can paste into a Teams channel.Tested with: VS Code.
Tools & permissions
Tools list pending verification. The server exposes tools over MCP; we haven’t yet parsed its capability manifest into this page. Check the GitHub repo for the authoritative list.
Security & scope
- Access scope
- Read + write
- Sandbox
- Hosted by Microsoft and authenticated via Microsoft Entra. The agent's scope equals the calling user's OneDrive and SharePoint permissions inside the tenant. Conditional-access policies apply.
- Gotchas
- The remote URL embeds the tenant ID — sharing a configured install bundle leaks tenant identity; use the install button rather than passing a raw URL.
- Auto-discovered tools mean the available surface changes as Microsoft ships new Graph capabilities — review the latest tool list before relying on a specific call in an automation.
Agent prompt pack
— copy into Claude, Cursor, or ChatGPT.Recommend the best MCP servers for [task: e.g. filesystem & storage work] in [client: VS Code]. Constraints: - Prefer tools that are [official | open-source | read-only] — pick what matters for my use case. - Exclude MCPs that require [e.g. a paid plan, OAuth-only flows, remote-only transport]. - Return at most 3 picks, ranked. For each pick include: 1. One-sentence rationale. 2. The ready-to-paste install snippet for my client. 3. Any required secrets I need to create before installing. Cross-check the top-mcps.com listing: https://top-mcps.com/top-mcps-for-filesystem-storage
Compare OneDrive & SharePoint MCP vs [Box MCP] for the following job: [describe the job, e.g. "let an agent create GitHub issues on bug triage"]. Judge them on: - Setup time and complexity (what a new user hits first). - Auth model (none / API key / OAuth 2.1) and credential risk. - Transport (stdio / Streamable HTTP / SSE) and where the server runs. - Required secrets and the blast radius if they leak. - Operational risk in an unattended agent loop. - Which one is "good enough" for a weekend prototype vs. production. End with one sentence: which should I pick for my scenario, which is: [my scenario]. References: - https://top-mcps.com/mcp/onedrive - top-mcps.com listing for Box
Install the OneDrive & SharePoint MCP server for my [client: VS Code] at the default config path for that client. Use the exact install snippet published at https://top-mcps.com/mcp/onedrive (fetch https://top-mcps.com/mcp/onedrive.json for the canonical server.json if you can read URLs). Before finishing: 1. Create the required secrets (no secrets) and put them in the appropriate env block — do not hard-code them. 2. Restart or reload the client so it picks up the new server. 3. Verify the server is connected (green / running state) and at least one tool is listed. 4. If anything fails, read the client's MCP logs and report the exact error — do not silently retry. Confirm when done and list the tools the server now exposes.
Frequently asked questions
What changed
— 3 updates tracked.Azure.Mcp.Server-3.0.0-beta.31 released — Azure.Mcp.Server 3.0.0-beta.31
Azure.Mcp.Server-3.0.0-beta.30 released — Azure.Mcp.Server 3.0.0-beta.30
Template.Mcp.Server-0.0.12-alpha.6621500 released — Template.Mcp.Server 0.0.12-alpha.6621500
More Filesystem & Storage MCPs
Other tools in the same category worth evaluating.
Read, write, and search across Notion pages, databases, and blocks.
Reach the whole Cloudflare API from an agent — DNS records, Workers, R2, and the Registrar beta — through one hosted Code Mode server.
Compared with OneDrive & SharePoint
Side-by-side breakdowns for the choices people most often weigh against this MCP.
Exploring Top MCPs for Filesystem & Storage? See all Filesystem & Storage MCPs →
