πŸ“ AI-powered file management automation for Google Drive with MCP

⚑ 4,974 views Β· πŸ“ File Management

Description

This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

πŸ“ Google Drive MCP Workflow – AI-Powered File Management Automation πŸš€

🧠 Overview

A secure and intelligent n8n workflow that connects with Google Drive via MCP (Model Control Protocol). Ideal for AI agent tasks, compliance-driven storage, and document automation.

🌟 Key Features

πŸ”’ Built-In Safety

Backs up files before edits (timestamped) Supports rollback using file history Validates file size, type, and permissions πŸ“ Smart Organization

Automatically converts file types (PDF, DOCX, etc.) Moves files to structured folders Auto-archives old files based on age or rules

πŸ”„ MCP Integration

Accepts standardized JSON via webhook Real-time execution for AI agents Fully customizable input (action, fileId, format, etc.)

βœ… AI Callable MCP Actions

These are the commands AI agents can perform via MCP:

Download a file (with optional format conversion) Upload a new file to Google Drive Copy a file for backup Move a file to a specific folder Archive old or inactive files Organize documents into folders Convert files to a new format (PDF, DOCX, etc.) Retrieve and review file history for rollback πŸ“ Example Input { β€œaction”: β€œdownload”, β€œfileId”: β€œabc123”, β€œfolderPath”: β€œ/projects/clientA”, β€œconvertFormat”: β€œpdf” }

πŸ” Security & Performance

OAuth2 secured access to Google Drive API No sensitive data stored in transit Real-time audit logs and alerts Batch-friendly with built-in rate limiting πŸ“Œ Ideal For Businesses automating file management AI Agents retrieving, sorting, converting, or archiving files Compliance teams needing file versioning and backups βš™οΈ Requirements n8n + Google Drive API v3 MCP server + Webhook integration Google OAuth2 Credentials

πŸ”— Nodes Used

MCP Server Trigger

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup