Google Drive MCP Server
12 MCP tools for Google Drive file management. Search, upload, read, and organise files with intelligent format conversion.
Overview
A Model Context Protocol server enabling AI agents to search, read, upload, and manage files in Google Drive. Intelligent handling of Google Workspace files with automatic format conversion.
The Problem
AI assistants need file access for many tasks:
- Searching across documents and folders
- Reading file contents for context
- Uploading generated content
- Managing file organisation
Direct Drive API integration requires handling multiple export formats.
Solution
Complete Drive access with intelligent file handling:
Search, list, recent
CRUD + folders
Info, shared, quota
Tools
Search & Discovery (3)
| Tool | Description |
|---|---|
drive_search | Full-text search with MIME type, folder, and date filters |
drive_list_files | Browse folder contents with pagination |
drive_list_recent | Quick access to recently modified files |
File Operations (6)
| Tool | Description |
|---|---|
drive_read_file | Read with smart conversion (Docs→Markdown, Sheets→CSV) |
drive_upload_file | Upload text or binary with folder placement |
drive_create_folder | Create folders with parent support |
drive_list_folders | List only folders in a directory |
drive_delete | Move files/folders to trash |
drive_rename | Rename files and folders |
Metadata & Storage (3)
| Tool | Description |
|---|---|
drive_get_metadata | Ownership, timestamps, size, permissions |
drive_list_shared | Files shared with you by others |
drive_get_quota | Storage usage and limits |
Intelligent File Handling
Automatic format conversion for Google Workspace files:
| Source | Export Format |
|---|---|
| Google Docs | Markdown |
| Google Sheets | CSV |
| Google Slides | |
| Regular files | Direct download |
| Binary files | Base64 with size warnings |
Features
- 12 Tools - Complete Drive API coverage
- Smart Conversion - Google Workspace → portable formats
- URL Parsing - Auto-extract file IDs from Drive URLs
- Size Warnings - Alerts for files >5MB before reading
- OAuth Security - Google authentication
- Edge Deployment - Global low-latency via Workers
Use Cases
Document Retrieval - Search and read documents for AI context
Content Upload - Save AI-generated content directly to Drive
File Organisation - Create folders and move files conversationally
Storage Management - Monitor quota and manage shared files
Interested in a similar solution?
Let's talk about your project