OneDrive Live MCP on Cloudflare
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@OneDrive Live MCP on Cloudflaresearch for recent invoices in the Work folder"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
OneDrive Live MCP on Cloudflare
A private, read-only remote MCP server that lets ChatGPT search and read a selected folder in a personal Microsoft OneDrive account without a local workstation, tunnel, or recurring corpus snapshot.
ChatGPT
-> remote MCP over HTTPS
-> Cloudflare Worker
-> Microsoft Graph
-> one configured OneDrive folder treeThe server searches OneDrive live and downloads only the files requested for reading. It does not expose upload, edit, move, share, or delete tools.
Features
Live Microsoft Graph search across filenames, metadata, and Microsoft-indexed contents.
Folder browsing under one configured root.
On-demand bounded reads rather than a full local index.
Direct PPTX slide and speaker-note extraction.
Cloudflare Workers AI conversion for PDF, Office, image, HTML, XML, CSV, ODT/ODS, and other supported formats.
Plain-text and source-code decoding without AI conversion.
Microsoft OAuth delegated permissions limited to
Files.ReadandUser.Read.Immutable Microsoft-account allow-list.
Exact allowed-root path enforcement on search, listing, and reads.
Strongly consistent one-time OAuth state in a Durable Object.
Microsoft tokens encrypted before Durable Object storage.
Optional converted-text cache in Workers KV.
MCP tools
onedrive_statussearch_onedrivelist_onedrive_folderread_onedrive_file
All tools are annotated as read-only.
Quick start
Clone the repository and install dependencies:
npm ci npx wrangler loginCreate a Workers KV namespace:
npx wrangler kv namespace create OAUTH_KVEdit
wrangler.jsonc:replace
REPLACE_WITH_KV_NAMESPACE_ID;replace
REPLACE_WITH_ALLOWED_ONEDRIVE_FOLDERwith the exact folder path, such asWorkorWork/Projects;optionally rename the Worker and connector.
Follow the complete deployment guide:
An optional deployment-agent prompt is available at docs/CODEX_DEPLOY_PROMPT.md.
Validate locally before deployment:
npm run check
Configuration
Tracked configuration in wrangler.jsonc:
Variable | Purpose | Default |
| Human-readable consent/app name |
|
| Exact allowed OneDrive folder path | required |
| Maximum downloaded file size |
|
| Maximum characters returned per tool call |
|
| Converted-text cache lifetime; |
|
Cloudflare Worker secrets:
MICROSOFT_CLIENT_IDMICROSOFT_CLIENT_SECRETCOOKIE_ENCRYPTION_KEYOWNER_MICROSOFT_ID
Never commit these values.
Data handling
There is no full OneDrive snapshot. Search and folder listing are live. A requested file is downloaded only when read_onedrive_file is called.
By default, converted text up to 10 million characters is cached in Workers KV for seven days using a key derived from the file ID and eTag. Set CACHE_TTL_SECONDS to 0 to disable document-content caching.
See SECURITY.md for the threat model and storage boundaries.
Supported documents
Direct decoding:
text, Markdown, JSON, YAML, TOML, INI, logs;
common programming and shell-script formats;
PPTX slides and speaker notes.
Cloudflare Workers AI conversion:
PDF;
DOCX;
XLS/XLSX/XLSM/XLSB;
CSV;
HTML and XML;
ODT and ODS;
common image formats;
other formats supported by the Cloudflare conversion API.
Conversion availability and usage limits depend on the Cloudflare account.
Development
npm run dev
npm run type-check
npm test
npm run checkFor local secrets, copy .dev.vars.example to .dev.vars. The real .dev.vars file is ignored by Git.
Repository layout
src/ Worker, OAuth, Graph, MCP, and extraction code
test/ OAuth state and CSRF tests
docs/ Deployment, architecture, and troubleshooting
scripts/ Configuration validation
.github/workflows/ CI
wrangler.jsonc Cloudflare bindings and non-secret settingsImportant limitations
This implementation targets personal Microsoft accounts through the
consumersOAuth tenant.OneDrive live search depends on Microsoft indexing, so newly uploaded content may not appear immediately.
The configured root is enforced by application code; Microsoft
Files.Readitself is account-wide.The Worker must remain deployed and the Microsoft authorization must remain valid.
This repository does not include write-capable tools.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/njuorju/OneDrive-Live-MCP-on-Cloudflare'
If you have feedback or need assistance with the MCP directory API, please join our Discord server