Overview
Access, search, and manage Google Drive files and folders.
Setup
Run with npx:
npx -y @modelcontextprotocol/server-google-driveConfiguration
GOOGLE_APPLICATION_CREDENTIALS path to OAuth credentials JSONDocumentation
Google Drive MCP
Overview
The Google Drive MCP server enables AI agents to access, search, and manage files and folders in Google Drive. This is essential for building AI assistants that can work with documents, spreadsheets, presentations, and other cloud-stored files.
Features
- Search Files: Find files by name, content, or metadata
- Read Files: Download and read file contents
- Upload Files: Create new files in Drive
- Organize: Create folders and move files
- Share: Manage sharing permissions
- List Contents: Browse folder structures
Installation
npx -y @modelcontextprotocol/server-google-drive
Configuration
{
"mcpServers": {
"google-drive": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-google-drive"],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/path/to/credentials.json"
}
}
}
}
OAuth Setup
- Go to Google Cloud Console
- Enable the Google Drive API
- Create OAuth 2.0 credentials
- Download credentials JSON
Available Tools
| Tool | Description |
|---|---|
list_files | List files in a folder |
search_files | Search files by query |
read_file | Read file contents |
create_file | Create a new file |
update_file | Update file contents |
delete_file | Delete a file |
create_folder | Create a new folder |
move_file | Move file to different folder |
Usage Examples
Search for Documents
Find all PDF files containing "quarterly report" in my Drive.
Read a Document
Read the contents of my "Project Notes" Google Doc.
Create a File
Create a new text file called "meeting-notes.txt" with today's date.
Pros
- ✅ Full Google Drive integration
- ✅ Search across all files
- ✅ Support for multiple file types
- ✅ Folder organization
Cons
- ❌ Requires OAuth setup
- ❌ File size limits for reading
- ❌ Binary files may have limited support
