Access and manage Google Drive files, folders, and sharing directly from Claude. Search, navigate, upload, and organize your Drive with OAuth or service account authentication.
io.github.mcp-z/mcp-drive
Google Drive runs locally over stdio. Test it on your machine with MCP Playground Desktop:
Local install
STDIO
2 required env vars
How models use it and what it is built for.
Access and manage Google Drive files, folders, and sharing directly from Claude. Search, navigate, upload, and organize your Drive with OAuth or service account authentication.
Local install — runs as a subprocess.
Configuration this server reads at startup.
Google OAuth client ID (required for OAuth authentication modes)
Google OAuth client ID (required for OAuth authentication modes)
Google OAuth client secret (optional for public clients)
Path to service account JSON key file (required for service-account auth mode)
Authentication mode
Disable browser auto-open, return auth URL instead (true/false)
OAuth redirect URI (optional, default: ephemeral loopback)
Resource store URI for exported files (file://)
HTTP server port (overrides --port)
Base URL for HTTP transport (used for OAuth/DCR endpoints and file links)
Logging level
Google OAuth client secret (optional for public clients)
Path to service account JSON key file (required for service-account auth mode)
Authentication mode
Disable browser auto-open, return auth URL instead (true/false)
OAuth redirect URI (optional, default: ephemeral loopback)
Dynamic Client Registration mode
External verification endpoint URL (required for external DCR mode)
DCR client storage URI (for self-hosted DCR mode)
Resource store URI for exported files (file://)
HTTP server port (overrides --port)
Base URL for HTTP transport (used for OAuth/DCR endpoints and file links)
Logging level
Where to find authoritative docs and source for Google Drive.
Paste any of these into Agent Studio after connecting Google Drive.
Common questions about connecting and running Google Drive.
How do I authenticate this MCP server with Google Drive?
Set AUTH_MODE to either 'oauth' or 'service-account'. For OAuth, provide GOOGLE_CLIENT_ID and optionally GOOGLE_CLIENT_SECRET. For service account, point GOOGLE_SERVICE_ACCOUNT_KEY_FILE to your JSON key file. The server handles the authentication flow automatically.
Can I use this in a headless environment without a browser?
Yes. Set HEADLESS=true and the server will return an authentication URL instead of auto-opening a browser. You can then manually visit the URL to complete OAuth flow.
What file operations does this MCP server support?
The server supports file operations including navigation, search, folder creation, and sharing. Specific operations are exposed as MCP tools—check the server's tool definitions for the complete list of available actions.
Do I need both GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET?
GOOGLE_CLIENT_ID is required for OAuth mode. GOOGLE_CLIENT_SECRET is optional and only needed for confidential clients; public clients can omit it.
How do I export or store files accessed through this server?
Set RESOURCE_STORE_URI to a file:// path to configure where exported files are stored. This allows the server to persist files locally when needed.
MCP Playground runs 10,000+ hosted MCP servers — GitHub, Linear, Notion, Stripe, Sentry and more — across Claude, GPT, Gemini, DeepSeek and 90+ AI models. Compare model answers side-by-side, save agent presets, share runs. Zero install.
Open Agent StudioIn your browser
MCP Agent Studio
Server has a public URL? Chat with 90+ models on it, watch every tool call, and compare models side by side.
Open MCP Agent Studio →On your computer
MCP Playground Desktop
Server runs on localhost or over stdio? The browser can’t reach it. The desktop app can, with 90+ models in Agent Studio. Download free
Judges Panel
45 judges that evaluate AI-generated code for security, cost, and quality with built-in AST.
Addozhang Nexus
Query Sonatype Nexus Repository (OSS/Pro) for Maven, Python, and Docker artifacts
Cyanheads MCP Ts Template
TypeScript template for building MCP servers with declarative tooling, observability, and auth.
Chernistry Bernstein
Declarative agent orchestration for engineering teams