Documentation Index
Fetch the complete documentation index at: https://mintlify.com/dvlpjrs/guMCP/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Google Drive server enables AI agents to search and access files stored in Google Drive. It provides read-only access to files and supports various file types.Prerequisites
- Python 3.11+
- A Google Cloud Project with Google Drive API enabled
- OAuth 2.0 credentials with scope:
https://www.googleapis.com/auth/drive.readonly
Authentication
Setup OAuth Credentials
- Create a new Google Cloud project
- Enable the Google Drive API
- Configure an OAuth consent screen
- Add OAuth scope:
https://www.googleapis.com/auth/drive.readonly - Create an OAuth Client ID for “Desktop App”
- Save credentials as
local_auth/oauth_configs/gdrive/oauth.json
Authenticate
Available Tools
search
search
Description: Search for files in Google DriveParameters:Returns: List of matching files with names, IDs, MIME types, and metadata
query(string, required): Search query to find files
Resources
The Google Drive server provides access to file resources:List Resources
Lists files from your Google Drive (up to 10 at a time). URI Format:gdrive:///{file_id}
Read Resource
Reads file content with automatic format handling:Google Workspace Files
Automatically exports Google Workspace files to readable formats:| File Type | Export Format |
|---|---|
| Google Docs | Markdown |
| Google Sheets | CSV |
| Google Slides | Plain text |
| Google Drawings | PNG |
Regular Files
- Text files (
.txt,.md,.json) are returned as UTF-8 text - Binary files are returned as-is
Usage Examples
Searching for Files
Reading Files
Accessing Google Docs
Google Drive Search Syntax
The search tool supports Google Drive’s query syntax:| Query | Description | Example |
|---|---|---|
type: | File type | type:pdf, type:document |
title: | File name | title:"Project Plan" |
fullText: | Content search | fullText:"quarterly results" |
modifiedDate | Date modified | modifiedDate > '2024-01-01' |
in parents | In folder | 'folder_id' in parents |
trashed = false | Not in trash | trashed = false |
Common File Types
type:document- Google Docstype:spreadsheet- Google Sheetstype:presentation- Google Slidestype:pdf- PDF filestype:folder- Folders
Running the Server
Local Development
Best Practices
- Specific queries: Use specific search terms to reduce results
- File types: Filter by file type to narrow searches
- Read-only: This server provides read-only access
- Export formats: Google Workspace files are automatically converted
API Reference
| Tool | Purpose | Common Use Cases |
|---|---|---|
search | Find files | Locate documents, find specific file types |
Supported MIME Types
Google Workspace files are automatically exported:application/vnd.google-apps.document→text/markdownapplication/vnd.google-apps.spreadsheet→text/csvapplication/vnd.google-apps.presentation→text/plainapplication/vnd.google-apps.drawing→image/png
Limitations
- Read-only access (no file uploads or modifications)
- Binary files larger than available memory may cause issues
- Some file formats may not export perfectly