Google Drive server
@tonioshikanlu
Google Drive MCP server for integrating with Google Drive to allow listing, reading, and searching over files.
Overview
What is Google Drive server?
Google Drive server is an MCP (Model Context Protocol) server that integrates with Google Drive to list, read, and search files. It provides a tool for searching and a resource scheme for accessing file content, with automatic export of Google Workspace documents.
How to use Google Drive server?
After setting up a Google Cloud project, enabling the Drive API, and creating OAuth credentials saved as gcp-oauth.keys.json, run node ./dist auth (or the Docker equivalent) to authenticate via browser. Then add the server configuration (Docker or npx) to your MCP client’s mcpServers JSON.
Key features of Google Drive server
- Search files in Google Drive
- Access files via
gdrive:///<file_id>URI - Export Google Docs as Markdown, Sheets as CSV, Slides as plain text, Drawings as PNG
- Support all Google Drive file types
- Read-only access using OAuth 2.0
Use cases of Google Drive server
- Search and retrieve documents for automated processing
- Export Google Docs to Markdown for content management
- Access CSV data from Google Sheets for analysis
- Browse and download files programmatically from Drive
FAQ from Google Drive server
What Google Workspace export formats are supported?
Docs are exported as Markdown, Sheets as CSV, Presentations as plain text, and Drawings as PNG.
How do I authenticate the server?
After placing your OAuth keys file as gcp-oauth.keys.json, run node ./dist auth (or the Docker equivalent) to open a browser flow, then credentials are saved locally.
What OAuth scope is used?
The server uses the https://www.googleapis.com/auth/drive.readonly scope for read‑only access.
How do I configure the server with the Desktop App?
Add a gdrive entry under mcpServers using either the Docker or npx command shown in the README configuration examples.
Does the server support all file types?
Yes, all Google Drive file types are supported; Google Workspace files are auto‑exported, while other files are provided in their native format.