以下提供更細膩、具體的操作手法,從實際的『Claude MCP』導入,轉換成自動化工作任務,並實際使用 Google Workspace 中的四種工具:
-
Google行事曆(Google Calendar)
-
Google簡報(Google Slides)
-
Google試算表(Google Sheets)
-
Google文件(Google Docs)
🚩 更細膩操作步驟與手法說明
✅ 一、自動化Google 行事曆操作手法(Google Calendar)
(1)具體建立步驟:
-
使用MCP Server 調用Google Calendar API:
-
呼叫 Calendar API 並取得使用者授權權杖 (OAuth 2.0)。
-
指定日期與時間(ISO8601格式,如
2024-05-15T10:00:00+08:00)。 -
設定活動標題、內容與提醒設定。
-
(2)MCP 實務指令範例:
{
"service": "google-calendar",
"action": "create_event",
"parameters": {
"calendarId": "primary",
"event": {
"summary": "Claude MCP 介紹與實務操作",
"description": "詳細介紹Claude MCP並進行實際操作。",
"start": {"dateTime": "2024-05-15T10:00:00+08:00"},
"end": {"dateTime": "2024-05-15T15:00:00+08:00"},
"reminders": {
"useDefault": false,
"overrides": [
{"method": "popup", "minutes": 1440},
{"method": "email", "minutes": 30}
]
}
}
}
}
✅ 二、自動化Google簡報操作手法(Google Slides)
(1)具體建立步驟:
-
MCP Server 呼叫 Slides API 建立簡報:
-
建立空白簡報文件。
-
新增10張投影片並逐一填入標題與內文。
-
自動調整版面(標題字型大小36pt、內文24pt)。
-
插入說明圖(可透過Google Drive連結)。
-
(2)MCP 實務指令範例:
{
"service": "google-slides",
"action": "create_presentation",
"parameters": {
"title": "Claude MCP 讓AI動手做事",
"slides": [
{"title": "Claude MCP介紹", "content": "Anthropic於2024年推出..."},
{"title": "MCP概念說明", "content": "透過MCP,AI能與外部工具連結…"},
{"title": "USB-C比喻", "content": "MCP如同AI界的USB-C..."},
{"title": "運作角色與模式", "content": "MCP Host, Client, Server各自的角色與功能…"},
{"title": "實際使用案例", "content": "整理檔案、Gmail通知..."},
{"title": "常見MCP Server", "content": "GitHub、Slack、Filesystem…"},
{"title": "MCP運作流程", "content": "下指令→Host判斷→Client→Server執行..."},
{"title": "挑戰與限制", "content": "資安、長期維護…"},
{"title": "未來發展趨勢", "content": "OpenAI、Anthropic競爭與合作關係…"},
{"title": "結語與建議", "content": "如何更有效利用MCP..."}
]
}
}
✅ 三、自動化Google 試算表操作手法(Google Sheets)
(1)具體建立步驟:
-
MCP Server 透過 Sheets API 建立新試算表:
-
建立新的 Google Sheets 文件。
-
指定範圍(如:A1:E1)輸入標題。
-
逐行插入各種MCP相關工具資訊。
-
自動設定儲存格格式(粗體、背景色)提升閱讀性。
-
(2)MCP 實務指令範例:
{
"service": "google-sheets",
"action": "create_sheet",
"parameters": {
"title": "Claude MCP工具分析比較",
"header": ["工具名稱", "類型", "使用頻率", "功能範圍", "資安注意事項"],
"rows": [
["GitHub", "Remote", "高", "版本管理、自動提交", "Yes"],
["Filesystem", "Local", "高", "檔案整理與存取", "Yes"],
["Slack", "Remote", "中", "通知與自動訊息", "Yes"],
["Google Maps", "Remote", "中", "地理搜尋、導航", "No"]
]
}
}
✅ 四、自動化Google文件操作手法(Google Docs)
(1)具體建立步驟:
-
MCP Server 透過 Docs API 建立文件:
-
建立新文件,設定標題『Claude MCP 完整應用指南』。
-
插入各章節標題並設置樣式為標題1、標題2。
-
插入連結(如Slides、Sheets的鏈接)。
-
設定目錄(Table of Contents)自動生成。
-
自動加入頁尾或頁眉(文件名稱與頁碼)。
-
(2)MCP 實務指令範例:
{
"service": "google-docs",
"action": "create_document",
"parameters": {
"title": "Claude MCP 完整應用指南",
"content": [
{"type": "heading", "level": 1, "text": "前言"},
{"type": "paragraph", "text": "Claude MCP背景與簡介..."},
{"type": "heading", "level": 1, "text": "第一章 MCP概念與重要性"},
{"type": "paragraph", "text": "MCP如何突破AI語言模型限制..."},
{"type": "heading", "level": 1, "text": "第二章 MCP運作方式"},
{"type": "paragraph", "text": "介紹Host、Client、Server角色與流程..."},
{"type": "heading", "level": 1, "text": "第三章 實際案例與情境"},
{"type": "paragraph", "text": "檔案管理、自動化郵件通知等…"},
{"type": "heading", "level": 1, "text": "第四章 串接外部服務"},
{"type": "paragraph", "text": "以Github、Google Maps為例…"},
{"type": "heading", "level": 1, "text": "第五章 MCP的優缺點分析"},
{"type": "paragraph", "text": "資安考量、維護成本分析..."},
{"type": "heading", "level": 1, "text": "結論與未來建議"},
{"type": "paragraph", "text": "提供MCP應用建議與未來趨勢..."}
]
}
}
🚀 MCP 自動化鏈結整合流程(完整鏈路):
使用者→ MCP Host 接收需求→ MCP Client(分派任務)→ MCP Server(呼叫Google APIs)
→ 建立文件與活動→ 回傳結果→ MCP Host 顯示成功訊息
🔖 總結
以上更細膩的操作手法,將具體的API呼叫流程與參數細節都一併提供,使你在實際使用Claude MCP時,可以直接依照這些清楚的步驟,輕鬆實現自動化任務執行,讓AI真正做到『動手做事』。