Mcp Gdrive Cloudflare
@brianmoney
Remote MCP server for Google Drive and Sheets running on Cloudflare Workers with full OAuth 2.0 support.
概要
What is Mcp Gdrive Cloudflare?
A remote MCP server that integrates Google Drive and Sheets with AI assistants. Runs on Cloudflare Workers, providing OAuth 2.0 authorization, file operations, and real‑time SSE transport. Designed for developers needing cloud‑hosted Google Drive access from AI tools.
How to use Mcp Gdrive Cloudflare?
Deploy to Cloudflare Workers using Wrangler CLI: install dependencies, create KV namespaces, configure Google OAuth credentials and environment variables, then run wrangler deploy. The worker URL serves as the MCP endpoint.
Key features of Mcp Gdrive Cloudflare
- Search Drive files with advanced filters (MIME type, owner, dates)
- Read files with 22+ export formats (PDF, DOCX, Markdown)
- Upload files up to 5MB
- Create, delete, move, and share files and folders
- Read, update, and append Google Sheets data
- Full OAuth 2.0 server with PKCE and auto token refresh
Use cases of Mcp Gdrive Cloudflare
- AI assistant reading and summarizing Drive documents
- Automating spreadsheet updates from chat prompts
- Organizing files across folders programmatically
- Sharing files with granular permissions via natural language
FAQ from Mcp Gdrive Cloudflare
How is this different from the original mcp-gdrive?
It runs remotely on Cloudflare Workers (not STDIO), includes a full OAuth 2.0 server with PKCE, supports multi‑client dynamic registration, write operations (create, delete, move, share, upload), and 22+ export formats.
What are the prerequisites?
A Cloudflare account (free tier works), a Google Cloud project with Drive and Sheets APIs enabled, Node.js LTS (v18+), and the Wrangler CLI (npm install -g wrangler).
How do I deploy it?
Install dependencies, create two KV namespaces (wrangler kv:namespace create KV_TOKENS and KV_CLIENTS), configure your Google OAuth client ID and secret as environment variables, then run wrangler deploy.
What transports does it use?
It uses SSE (Server‑Sent Events) transport for real‑time communication.
What is the file upload limit?
Uploads are limited to 5MB.