Upload files, create folders, search content, and manage permissions via Google Drive API
160+ deploysYour AI agent gets 5 capabilities in one connection. Deploy once, use from any client.
GET endpoints
search_files
Search files using Drive query syntax. Examples: "name contains 'report'", "mimeType='application/pdf'", "'folder_id' in parents", "modifiedTime > '2024-01-01'". Returns ID, name, mimeType, modifiedTime, and size. Paginate with 'pageToken' and 'pageSize' (max 1000).
https://www.googleapis.com/drive/v3/files?q={query}&fields=files(id,name,mimeType,modifiedTime,size)
get_file
Get file metadata by ID. Returns name, mimeType, size (bytes), parents array, webViewLink (shareable URL), modifiedTime, and owners. Add 'fields=*' to get all available metadata including permissions, thumbnailLink, and exportLinks.
https://www.googleapis.com/drive/v3/files/{file_id}?fields=id,name,mimeType,modifiedTime,size,parents,webViewLink
export_file
Export a Google Workspace file to a different format. Supported: Docs → text/plain, text/html, application/pdf; Sheets → text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; Slides → application/pdf. Change mimeType query param to select format.
https://www.googleapis.com/drive/v3/files/{file_id}/export?mimeType=text/plain
POST endpoints
create_folder
Create a folder. Required: 'name' and mimeType='application/vnd.google-apps.folder'. Optional: 'parents' array to nest under an existing folder (use root ID for top-level). Returns new folder ID and webViewLink for sharing.
https://www.googleapis.com/drive/v3/files
Connect Google Drive to Claude Code with one command:
claude mcp add google_drive https://datafaucet.dev/api/mcp/t/google-drive{notion_token}) with your real credentialsNeed API keys? Try our free sandbox templates first to see MCP in action with zero setup.
Replace these placeholders with your real values before deploying:
{email}Email address{file_id}Resource identifier{file_name}Your value{google_access_token}API settings page{parent_id}Resource identifier{query}Your valuePreview:
GET https://www.googleapis.com/drive/v3/files?q={query}&fields=files(id,name,mimeType,modifiedTime,size) Authorization: Bearer {google_access_token}
claude mcp add google_drive --url https://datafaucet.dev/api/mcp/t/google-drive
Paste into your client's MCP configuration file · most users connect in under 60s
claude mcp add google_drive --url https://datafaucet.dev/api/mcp/t/google-driveWhat your AI agent sees
I have access to 5 tools from Google Drive: search_files, get_file, export_file, and 2 more.
“Search files using Drive query syntax. Examples: "name contains 'report'", "mimeType='application/pdf'", "'folder_id' in parents", "modifiedTime > '2024-01-01'". Returns ID, name, mimeType, modifiedTime, and size. Paginate with 'pageToken' and 'pageSize' (max 1000).”
Calling search_files... Done. Here are the results.
Try these prompts
“Search files using Drive query syntax. Examples: "name contains 'report'", "mimeType='application/pdf'", "'folder_id' in parents", "modifiedTime > '2024-01-01'". Returns ID, name, mimeType, modifiedTime, and size. Paginate with 'pageToken' and 'pageSize' (max 1000)”
Copy“Get file metadata by ID. Returns name, mimeType, size (bytes), parents array, webViewLink (shareable URL), modifiedTime, and owners. Add 'fields=*' to get all available metadata including permissions, thumbnailLink, and exportLinks”
Copy“Export a Google Workspace file to a different format. Supported: Docs → text/plain, text/html, application/pdf; Sheets → text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; Slides → application/pdf. Change mimeType query param to select format”
CopyClick any prompt to copy, then paste into your AI client.