Google Drive server
@tonioshikanlu
About Google Drive server
Google Drive MCP server for integrating with Google Drive to allow listing, reading, and searching over files.
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-gdrive-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--mount",
"type=bind,source=/path/to/gcp-oauth.keys.json,target=/gcp-oauth.keys.json",
"-v",
"mcp-gdrive:/gdrive-server",
"-e",
"GDRIVE_OAUTH_PATH=/gcp-oauth.keys.json",
"-e",
"GDRIVE_CREDENTIALS_PATH=/gdrive-server/credentials.json",
"-p",
"3000:3000",
"mcp/gdrive",
"auth"
]
}
}
}Tools
1Search for files in Google Drive
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.
More Files & Storage MCP servers
Storacha MCP Storage Server
storachaStoracha MCP storage server - self-sovereign data for your AI applications.
Filesystem MCP Server (@shtse8/filesystem-mcp)
shtse8📁 Secure, efficient MCP filesystem server - token-saving batch operations with project root confinement
MCP File System Server
MarcusJellinghausMCP Workspace Server: A secure Model Context Protocol server providing file, git, and GitHub tools for AI assistants within a sandboxed project directory.
S3 MCP Server
samuraikunMCP server to integrate AWS S3 and LLM
Filesystem MCP Server
cyanheadsA Model Context Protocol (MCP) server for platform-agnostic file capabilities, including advanced search/replace and directory tree traversal
Comments