Google Drive MCP

Intermédiaire

Ceci est unFile Managementworkflow d'automatisation du domainecontenant 10 nœuds.Utilise principalement des nœuds comme GoogleDriveTool, McpTrigger. AI驱动deGoogle云端硬盘文件gestionautomatisation,utilisationMCP

Prérequis
  • Informations d'identification Google Drive API
Aperçu du workflow
Visualisation des connexions entre les nœuds, avec support du zoom et du déplacement
Exporter le workflow
Copiez la configuration JSON suivante dans n8n pour importer et utiliser ce workflow
{
  "id": "jmF1lTCcJ7Sz44XB",
  "meta": {
    "instanceId": "2000c64071c20843606b95c63795bb0797c41036047055a6586498e855b96efc",
    "templateCredsSetupCompleted": true
  },
  "name": "Google Drive MCP",
  "tags": [],
  "nodes": [
    {
      "id": "0e364a8b-0c13-44d6-9b97-3b979450f30d",
      "name": "Déclencheur Serveur MCP",
      "type": "@n8n/n8n-nodes-langchain.mcpTrigger",
      "notes": "Entry point for the workflow - triggers when MCP server receives a request",
      "position": [
        1400,
        420
      ],
      "webhookId": "ab3b0e89-c55b-4d86-a9a7-73b7ebdb99da",
      "parameters": {
        "path": "ab3b0e89-c55b-4d86-a9a7-73b7ebdb99da"
      },
      "typeVersion": 1.1
    },
    {
      "id": "f3bd2712-a9e9-4058-be2e-b958cecca7f4",
      "name": "Créer une sauvegarde",
      "type": "n8n-nodes-base.googleDriveTool",
      "notes": "Creates timestamped backup copy in dedicated Backups folder before any modifications",
      "position": [
        1060,
        420
      ],
      "parameters": {
        "name": "={{ $json.name }}_backup_{{ $now.format('YYYY-MM-DD_HH-mm-ss') }}",
        "fileId": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "options": {},
        "operation": "copy"
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "6hzrQTMU9Jx22uMs",
          "name": "Google Drive account 3"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "0ad52d69-2582-489e-b7a7-1691227eb23d",
      "name": "Déplacer vers Traité",
      "type": "n8n-nodes-base.googleDriveTool",
      "notes": "Moves processed files to organized folder structure",
      "position": [
        1060,
        1140
      ],
      "parameters": {
        "fileId": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "folderId": {
          "__rl": true,
          "mode": "list",
          "value": "processed_folder_id",
          "cachedResultName": "Processed"
        },
        "operation": "move"
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "6hzrQTMU9Jx22uMs",
          "name": "Google Drive account 3"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "505f47e5-9351-4737-98bf-4b9b2c4461d1",
      "name": "Archiver les anciens fichiers",
      "type": "n8n-nodes-base.googleDriveTool",
      "notes": "Archives files older than specified threshold to maintain clean workspace",
      "position": [
        1060,
        900
      ],
      "parameters": {
        "fileId": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "folderId": {
          "__rl": true,
          "mode": "list",
          "value": "archive_folder_id",
          "cachedResultName": "Archive"
        },
        "operation": "move"
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "6hzrQTMU9Jx22uMs",
          "name": "Google Drive account 3"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "79730ea8-cbe3-4edb-a0cf-b1519d625e8a",
      "name": "Aperçu du flux de travail",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        600,
        180
      ],
      "parameters": {
        "color": 4,
        "width": 350,
        "height": 520,
        "content": "## Google Drive File Management Workflow\n\nThis workflow provides comprehensive file management capabilities for Google Drive:\n\n### Key Features:\n- **Smart Processing**: Downloads with format conversion\n- **Safety First**: Creates backups before modifications\n- **Organization**: Moves files to appropriate folders\n- **Audit Trail**: Logs all activities\n\n### Workflow Path:\n1. MCP Trigger receives request\n2. List files or download specific file\n3. Create backup if modifying\n4. Process based on file type/size\n5. Move to organized folders\n6. Log all activities"
      },
      "typeVersion": 1
    },
    {
      "id": "aae3f651-0334-4856-83fa-fb9d038ec504",
      "name": "Paramètres d'entrée",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        760
      ],
      "parameters": {
        "color": 3,
        "width": 300,
        "height": 480,
        "content": "=### Input Parameters\n\n**MCP Trigger accepts:**\n- `action`:  download, move, archive\n- `fileId`: specific file identifier\n- `folderPath`: target folder path\n- `filters`: file type, size, date filters\n\n**Example payload:**\n```json\n{\n  \"action\": \"download\",\n  \"fileId\": \"1a2b3c4d5e6f\",\n  \"convertFormat\": \"pdf\"\n}\n```"
      },
      "typeVersion": 1
    },
    {
      "id": "36deeaac-5bfb-4040-b46d-1ceb8251f6c5",
      "name": "Sécurité et bonnes pratiques",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1800,
        180
      ],
      "parameters": {
        "color": 6,
        "width": 380,
        "height": 380,
        "content": "## Error Handling & Safety\n\n**Built-in Safeguards:**\n- Backup creation before modifications\n- File size and type validation\n- Detailed error logging\n- Rollback capabilities\n\n**Best Practices:**\n- Test with non-critical files first\n- Monitor processing logs regularly\n- Set up folder permissions properly\n- Use version control for important docs"
      },
      "typeVersion": 1
    },
    {
      "id": "25c70e4f-0f4b-4c34-9a62-9ff6840d3289",
      "name": "Conseils de performance",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1820,
        620
      ],
      "parameters": {
        "color": 5,
        "width": 300,
        "height": 280,
        "content": "## Performance Optimization\n\n**Recommendations:**\n- Use batch operations for multiple files\n- Implement rate limiting for API calls\n- Cache frequently accessed file metadata\n- Set up webhooks for real-time updates\n\n**Monitoring:**\n- Track API quota usage\n- Monitor workflow execution time\n- Set up alerts for failures\n- Regular cleanup of old logs"
      },
      "typeVersion": 1
    },
    {
      "id": "43feec90-091a-4614-b741-0544b5d12342",
      "name": "Google Drive",
      "type": "n8n-nodes-base.googleDriveTool",
      "position": [
        1280,
        1120
      ],
      "parameters": {
        "fileId": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "options": {},
        "operation": "download"
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "6hzrQTMU9Jx22uMs",
          "name": "Google Drive account 3"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "25967a87-b6d6-4abf-be03-7a360d79cb10",
      "name": "Téléversement Drive",
      "type": "n8n-nodes-base.googleDriveTool",
      "position": [
        1060,
        660
      ],
      "parameters": {
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "options": {},
        "folderId": {
          "__rl": true,
          "mode": "list",
          "value": "root",
          "cachedResultName": "/ (Root folder)"
        }
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "6hzrQTMU9Jx22uMs",
          "name": "Google Drive account 3"
        }
      },
      "typeVersion": 3
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "9eb46725-afe3-4411-8b28-7c9b39ad8b77",
  "connections": {
    "25967a87-b6d6-4abf-be03-7a360d79cb10": {
      "ai_tool": [
        [
          {
            "node": "0e364a8b-0c13-44d6-9b97-3b979450f30d",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "43feec90-091a-4614-b741-0544b5d12342": {
      "ai_tool": [
        [
          {
            "node": "0e364a8b-0c13-44d6-9b97-3b979450f30d",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "f3bd2712-a9e9-4058-be2e-b958cecca7f4": {
      "ai_tool": [
        [
          {
            "node": "0e364a8b-0c13-44d6-9b97-3b979450f30d",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "505f47e5-9351-4737-98bf-4b9b2c4461d1": {
      "ai_tool": [
        [
          {
            "node": "0e364a8b-0c13-44d6-9b97-3b979450f30d",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "0ad52d69-2582-489e-b7a7-1691227eb23d": {
      "ai_tool": [
        [
          {
            "node": "0e364a8b-0c13-44d6-9b97-3b979450f30d",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}
Foire aux questions

Comment utiliser ce workflow ?

Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.

Dans quelles scénarios ce workflow est-il adapté ?

Intermédiaire - Gestion de fichiers

Est-ce payant ?

Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.

Informations sur le workflow
Niveau de difficulté
Intermédiaire
Nombre de nœuds10
Catégorie1
Types de nœuds3
Description de la difficulté

Adapté aux utilisateurs expérimentés, avec des workflows de complexité moyenne contenant 6-15 nœuds

Auteur
David Olusola

David Olusola

@dae221

AI automation consultant working with ambitious businesses on their most complex operational challenges. For project inquiries, reach me at david@daexai.com

Liens externes
Voir sur n8n.io

Partager ce workflow

Catégories

Catégories: 34