
domdomegg/google-drive-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
🗂️ MCP server for Google Drive - list, read, upload, and organize files
概要
MCP server for Google Drive - list, search, upload, download, and manage files and folders. : "What was our revenue target in the Q2 board deck?" → searches Drive, reads the relevant doc, and answers your question. : Starting a new vendor onboarding → creates a folder structure with subfolders for contracts, compliance, deliverables, and meeting notes, plus template docs and sheets. : "Summarize the feedback from my manager across my last 10 presentation decks" → reads comments from multiple files and identifies themes and development areas. : "We're onboarding contractors in Japan - translate the onboarding folder from English to Japanese and flag anything that needs local adaptation (HR policies, holidays, etc.)" → reads multiple docs, translates, and highlights areas needing review. (These are just examples - any workflow that needs file search, reading, or organization can use this.
README
以下は原文 README の抜粋です。原文を見る。
google-drive-mcp
MCP server for Google Drive - list, search, upload, download, and manage files and folders.
Use Cases
Answer from files: “What was our revenue target in the Q2 board deck?” → searches Drive, reads the relevant doc, and answers your question.
Project scaffolding: Starting a new vendor onboarding → creates a folder structure with subfolders for contracts, compliance, deliverables, and meeting notes, plus template docs and sheets.
Feedback synthesis: “Summarize the feedback from my manager across my last 10 presentation decks” → reads comments from multiple files and identifies themes and development areas.
Localization workflow: “We’re onboarding contractors in Japan - translate the onboarding folder from English to Japanese and flag anything that needs local adaptation (HR policies, holidays, etc.)” → reads multiple docs, translates, and highlights areas needing review.
(These are just examples - any workflow that needs file search, reading, or organization can use this. Use in combination with google-docs-mcp for reading/editing Google Docs, or google-sheets-mcp for Google Sheets.)
Setup
1. Create Google OAuth credentials
- Go to Google Cloud Console
- Create a new project (or use existing)
- Enable the Google Drive API
- Go to APIs & Services → OAuth consent screen, set up consent screen
- Go to APIs & Services → Credentials → Create Credentials → OAuth client ID
- Choose Web application
- Add
http://localhost:3000/callbackto Authorized redirect URIs - Note your Client ID and Client Secret
2. Run the server
GOOGLE_CLIENT_ID='your-client-id' \
GOOGLE_CLIENT_SECRET='your-client-secret' \
MCP_TRANSPORT=http \
npm start
The server runs on http://localhost:3000 by default. Change with PORT=3001.
3. Add to your MCP client
With the server running, follow the instructions on install-mcp, which generates the right config for your MCP client (Claude Code, Claude Desktop, Cursor, Cline, VS Code, and more).
Architecture
This server acts as an OAuth proxy to Google:
graph LR
A[MCP client] B[google-drive-mcp] C[Google OAuth/API]
- Server advertises itself as an OAuth authorization server via
/.well-known/oauth-authorization-server /registerreturns the Google OAuth client credentials/authorizeredirects to Google, encoding the client’s callback URL in state/callbackreceives the code from Google and forwards to the client’s callback/tokenproxies token requests to Google, injecting client credentials/mcphandles MCP requests, using the bearer token to call Drive API
The server holds no tokens or state - it just proxies OAuth to Google.
Tools
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →