Google Drive MCP
中级
这是一个File Management领域的自动化工作流,包含 10 个节点。主要使用 GoogleDriveTool, McpTrigger 等节点。 AI驱动的Google云端硬盘文件管理自动化,使用MCP
前置要求
- •Google Drive API 凭证
使用的节点 (10)
分类
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "jmF1lTCcJ7Sz44XB",
"meta": {
"instanceId": "2000c64071c20843606b95c63795bb0797c41036047055a6586498e855b96efc",
"templateCredsSetupCompleted": true
},
"name": "Google Drive MCP",
"tags": [],
"nodes": [
{
"id": "0e364a8b-0c13-44d6-9b97-3b979450f30d",
"name": "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": "创建备份",
"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": "移动到已处理",
"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": "归档旧文件",
"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": "工作流概览",
"type": "n8n-nodes-base.stickyNote",
"position": [
600,
180
],
"parameters": {
"color": 4,
"width": 350,
"height": 520,
"content": "## Google Drive 文件管理工作流程"
},
"typeVersion": 1
},
{
"id": "aae3f651-0334-4856-83fa-fb9d038ec504",
"name": "输入参数",
"type": "n8n-nodes-base.stickyNote",
"position": [
640,
760
],
"parameters": {
"color": 3,
"width": 300,
"height": 480,
"content": "=### 输入参数"
},
"typeVersion": 1
},
{
"id": "36deeaac-5bfb-4040-b46d-1ceb8251f6c5",
"name": "安全与最佳实践",
"type": "n8n-nodes-base.stickyNote",
"position": [
1800,
180
],
"parameters": {
"color": 6,
"width": 380,
"height": 380,
"content": "## 错误处理与安全"
},
"typeVersion": 1
},
{
"id": "25c70e4f-0f4b-4c34-9a62-9ff6840d3289",
"name": "性能提示",
"type": "n8n-nodes-base.stickyNote",
"position": [
1820,
620
],
"parameters": {
"color": 5,
"width": 300,
"height": 280,
"content": "## 性能优化"
},
"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": "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": {
"Drive upload": {
"ai_tool": [
[
{
"node": "MCP Server Trigger",
"type": "ai_tool",
"index": 0
}
]
]
},
"Google Drive": {
"ai_tool": [
[
{
"node": "MCP Server Trigger",
"type": "ai_tool",
"index": 0
}
]
]
},
"Create Backup": {
"ai_tool": [
[
{
"node": "MCP Server Trigger",
"type": "ai_tool",
"index": 0
}
]
]
},
"Archive Old Files": {
"ai_tool": [
[
{
"node": "MCP Server Trigger",
"type": "ai_tool",
"index": 0
}
]
]
},
"Move to Processed": {
"ai_tool": [
[
{
"node": "MCP Server Trigger",
"type": "ai_tool",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 文件管理
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
自动保存Zoom录制到Google云端硬盘并在Airtable记录会议
自动保存Zoom录制到Google云端硬盘并在Airtable记录会议
Code
Webhook
Airtable
+3
7 节点David Olusola
文件管理
旧WordPress文章自动归档至草稿状态
旧WordPress文章自动归档至草稿状态
If
Email Send
Wordpress
+3
7 节点David Olusola
文件管理
自动保存 Gmail 附件到 Google Drive
自动保存 Gmail 附件到 Google Drive
If
Google Drive
Gmail Trigger
+1
6 节点David Olusola
文件管理
定时 Google Sheets 数据备份到 Google Drive
定时 Google Sheets 数据备份到 Google Drive
Cron
Google Drive
Google Sheets
+1
6 节点David Olusola
文件管理
Airtable MCP
Airtable中的AI驱动联系人管理,支持自然语言命令
Airtable Tool
Mcp Trigger
10 节点David Olusola
客户关系管理
Gmail MCP工作流 - AI驱动的邮件管理
Gmail MCP工作流 - AI驱动的邮件管理
Gmail Tool
Mcp Trigger
15 节点David Olusola
工单管理
工作流信息
难度等级
中级
节点数量10
分类1
节点类型3
作者
David Olusola
@dae221AI automation consultant working with ambitious businesses on their most complex operational challenges. For project inquiries, reach me at david@daexai.com
外部链接
在 n8n.io 查看 →
分享此工作流