How to integrate OneDrive using MCP
Browse OneDrive files and storage. This guide creates an MCP server from Arthur's OneDrive template — tools preconfigured against https://graph.microsoft.com/v1.0 — and finishes by sharing the server's MCP swagger documentation.
Steps
Open the Secrets vault and create a secret named
ONEDRIVE_API_KEYholding your access token. Register an application with Microsoft Entra ID, complete a delegated OAuth 2.0 flow, and provide a Microsoft Graph access token with the Files.Read permission.


Go to the REST API Templates gallery and search for OneDrive.


Click Use template on the OneDrive card to open the server-creation dialog.


Review the server name and select
ONEDRIVE_API_KEYin the credential field — the dialog only accepts vault secrets, and it lists every tool that will be created.


Click Create server. Arthur creates the server, applies the authentication, and generates all the tools.





Open the server's Tools tab to review the generated tools.

Open the server's Connect section and click Share the MCP swagger documentation — Arthur generates the public documentation link and QR code for this server.



Confirm it worked
The server appears with 3 preconfigured tool(s): get_my_drive, list_root_children, list_item_children. The Connect section offers the MCP swagger documentation — a shareable page with setup instructions for any AI client.
Good to know
- Inspect the signed-in user's OneDrive metadata and browse files and folders without downloading or changing content.
- This integration requires a credential (bearer). Get one at https://portal.azure.com/.
- Official API documentation: https://learn.microsoft.com/en-us/graph/api/resources/onedrive?view=graph-rest-1.0
- Editing a tool later never changes the template — templates are starting points, and the server is fully yours after creation.
Related
Tutorial video