Google Drive

io.github.mcp-z由 GitHub 帳號 mcp-z 發布v2.4.4更新於 Oct 25, 2026

Google Drive integration with file operations, folder navigation, search, and sharing

已驗證STDIO僅桌面效率與工作流檔案與儲存

概覽

AI 產生的概覽

一個本機 MCP 伺服器,讓助理連接 Google Drive,在多個已連結帳戶間搜尋、瀏覽、上傳、移動檔案與資料夾,並移至垃圾桶。

可以做什麼
搜尋檔案和資料夾,可選擇回傳欄位並可選擇解析路徑;列出指定資料夾內容,或從資料夾到根目錄的完整路徑。建立資料夾,並從本機檔案路徑或網址上傳檔案,回傳後續操作可用的 ID。在位置之間移動檔案與資料夾,或移至垃圾桶(30 天內可復原)。列出、檢視、切換和移除已連結帳戶,移除時會刪除已儲存的權杖。
適用情境
當需要讓助理處理已存放在 Google Drive 中的文件時使用:尋找檔案、整理資料夾結構、上傳新資料,或在同一個工作階段中管理多個 Drive 帳戶。
執行需求
透過 npx 在本機執行(需 Node.js)。需要 Google OAuth 憑證:GOOGLE_CLIENT_ID 為必填,機密用戶端還需 GOOGLE_CLIENT_SECRET;也可改用 GOOGLE_SERVICE_ACCOUNT_KEY_FILE 指定服務帳戶金鑰檔案。另有若干選用變數用於設定驗證模式、HTTP 傳輸、重新導向 URI、連接埠和記錄。僅限桌面端,OAuth 流程通常需要瀏覽器,除非啟用無頭模式。
安裝前請注意
伺服器會在本機儲存 Google 帳戶權杖,移除帳戶會將其永久刪除。它可以移動檔案並移至垃圾桶,會改變你的 Drive 內容。上傳會讀取你提供的本機檔案路徑或網址,請只指向可信來源。OAuth 用戶端密鑰和服務帳戶金鑰檔案屬於敏感憑證,不要放入共用設定。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Google Drive,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

工具

12

account-list

List all linked mcp-drive accounts with their aliases and active status.

無需輸入參數。

account-me

Show current mcp-drive user identity. Returns email, alias (if set), and session expiry information.

無需輸入參數。

account-remove

Remove mcp-drive account and delete stored tokens permanently. If removing the active account, the first remaining account becomes active. Requires email or alias parameter.

輸入參數accountId必填

account-switch

Use mcp-drive account (smart mode). If email/alias provided and already linked, switches to it without triggering OAuth. If not linked or no email provided, triggers OAuth browser flow to add account. Returns account email, whether it was newly added, and total account count.

輸入參數aliasemail

file-move

Move Files

Move files/folders to destination folder. Returns oldParents for undo. Use "root" for My Drive root.

輸入參數fileIds必填returnOldParentsdestinationFolderId必填

file-move-to-trash

Move Files to Trash

Move files to trash (recoverable for 30 days).

輸入參數ids必填

file-upload

Upload File

Upload a file to Google Drive from a file:// or http(s):// URI. Content is streamed from the source (no temp files) in a single multipart request. Returns file ID for use in other operations.

輸入參數namemimeTypeparentIdsourceUri必填description

folder-contents

List Folder Contents

List files and folders in a specific folder with field selection.

輸入參數shapefieldsfolderId必填pageSizepageToken

folder-create

Create Folder

Create a new folder in Google Drive. Returns folder ID for use in other operations.

輸入參數name必填parentId

folder-path

Get Folder Path

Get full path from folder to root. Returns human-readable path and items with IDs.

輸入參數folderId必填

版本歷史

4
  1. v2.4.4最新Oct 25, 2026
  2. v2.4.3Oct 12, 2026
  3. v2.4.2Oct 10, 2026
  4. v2.1.1Sep 16, 2026

評分

已滿足適用檢查項的 65%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分

    請宣告包含 README 的 GitHub 儲存庫,或在 OAuth 受保護資源後設資料中提供 resource_documentation。

  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。