
Google Drive MCP
io.github.piotr-agier由 GitHub 帳號 piotr-agier 發布v2.12.0更新於 Oct 24, 2026
Secure access to Google Drive, Docs, Sheets, Slides, and Calendar through MCP.
概覽
一個自架的 MCP 伺服器,透過你自己的 Google OAuth 憑證,讓助理存取 Google 雲端硬碟、文件、試算表、簡報和日曆。
- 可以做什麼
- 搜尋、整理和管理雲端硬碟檔案、共用雲端硬碟、權限和版本,並可透過選用的資源介面(gdrive:///)讀取檔案。建立和編輯 Google 文件,包括格式與留言。建立和格式化 Google 試算表,並製作 Google 簡報。建立和管理日曆活動,包括 Meet 連結和雲端硬碟附件。查看和切換目前的 Google 帳號,並可依工具選擇帳號。
- 適用情境
- 當你希望助理以自己的 Google 身分在 Google 雲端硬碟和 Workspace 編輯器中工作時使用:尋找和整理檔案、草擬文件、試算表和簡報,或準備會議。它適合個人桌面用戶端和自架團隊部署,而非涵蓋所有 Workspace API。
- 執行需求
- 透過 npx 以 stdio 在本機執行(需要 Node.js)。需要一個已啟用 Drive、Docs、Sheets、Slides 和 Calendar API 的 Google Cloud 專案、一個 Desktop app 類型的 OAuth 用戶端,並在 GOOGLE_DRIVE_OAUTH_CREDENTIALS 中提供憑證 JSON 路徑。需一次性在瀏覽器完成授權,權杖儲存在本機;也支援服務帳號和外部權杖。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Google Drive MCP,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Google Drive MCP Server
Connect an MCP client to Google Drive, Docs, Sheets, Slides, and Calendar through one self-hosted server. Search and organize files, create and edit Workspace content, manage sharing, and automate multi-step workflows while keeping control of the Google identity and credentials used for every call.
Why this server
- Drive-first workflows: 130 tools cover file management, Shared Drives, permissions, revisions, rich Docs editing, Sheets formatting, Slides authoring, and Calendar events.
- Local or hosted: use stdio for a personal desktop client, Streamable HTTP for a hosted integration, or OAuth-protected team mode for a shared service.
- Identity control: local OAuth supports multiple Google accounts and per-tool account selection; service accounts and externally managed OAuth tokens are also supported.
- Agent-friendly access: tools expose targeted operations, while the optional
gdrive:///resource interface supports direct reading and discovery. - Open and self-hosted: credentials and tokens stay in the environment you operate.
This project remains focused on deep Drive and editor workflows rather than attempting to expose every Google Workspace API.
Client compatibility
Compatibility is determined by the transport and authentication flow a client supports.
See Client configuration for configuration examples and transport requirements.
Quick start
1. Create Google OAuth credentials
In a Google Cloud project:
- Enable the Drive, Docs, Sheets, Slides, and Calendar APIs.
- Configure the OAuth consent screen and add your Google account as a test user when the app is in testing.
- Create an OAuth client with application type Desktop app.
- Download the JSON file and save it as:
The setup guide has the complete Google Cloud walkthrough and alternative credential locations.
2. Authenticate
Complete the Google consent flow in the browser. Tokens are stored by default at ~/.config/google-drive-mcp/tokens.json.
3. Add the server to your MCP client
For clients that use the common mcpServers configuration shape:
Restart the client after saving its configuration. Claude Desktop paths and HTTP examples are documented in Client configuration.
4. Make a first tool call
Ask your client:
Then try a read-only Drive request:
If the identity is wrong or search returns no files, use the troubleshooting guide.
What you can do
Organize Drive
Build a report
Edit a document
Prepare a meeting
Documentation
Every section that used to live in this README is now in one of these guides.
Security
- Never commit OAuth credentials, service-account keys, access tokens, refresh tokens, or
tokens.json. - Use the narrowest OAuth scopes that support the tools you need.
- Keep the default HTTP bind address on
127.0.0.1unless the server is protected by TLS and access control. - Use team mode for shared deployments so every request is authenticated as its caller.
- Treat
team-store.jsonas a secret because it contains members' Google refresh tokens.
See Authentication and Deployment for the complete security and identity model.
Development and support
See the development guide to build and test the project.
- Report defects and request features in GitHub Issues.
- Review released changes in the changelog.
- Contributions are welcome through pull requests.
License
Acknowledgments
- Built on the Model Context Protocol.
- Uses the Google APIs Node.js Client.
來源:README.md,提交 26f9b83
工具
0版本歷史
3- v2.12.0最新Sep 25, 2026
- v2.11.0Sep 19, 2026
- v2.10.0Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
