google-drive-mcp
Provides tools for managing files and folders on Google Drive, including listing, searching, uploading, downloading, copying, moving, trashing, and deleting files; creating folders; managing comments and replies; and managing permissions.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@google-drive-mcpWhat was our revenue target in the Q2 board deck?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.)
Related MCP server: Google Drive MCP Server
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 URIsNote 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 startThe server runs on http://localhost:3000 by default. Change with PORT=3001.
3. Add to your MCP client
claude mcp add --transport http google-drive-mcp http://localhost:3000/mcpArchitecture
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
Tool | Description |
Files | |
| List/search files using Drive query syntax |
| Get file metadata |
| Download file content (supports export for Google Docs/Sheets) |
| Upload a new file |
| Update file content or metadata |
| Copy a file |
| Move a file to a different folder |
| Move to trash |
| Restore from trash |
| Permanently delete |
Folders | |
| Create a new folder |
Comments | |
| List comments on a file |
| Get a comment and its replies |
| Add a comment to a file |
| Reply to a comment |
| Resolve or unresolve a comment |
Replies | |
| List replies to a comment |
| Get a specific reply |
| Update a reply |
| Delete a reply |
Permissions | |
| List who has access to a file |
| Get a specific permission |
| Share a file with a user, group, domain, or anyone |
| Change a user's access level |
| Revoke access to a file |
Drive Query Syntax
The files_list tool supports Drive's query syntax for filtering:
# By name
name contains 'report'
name = 'Budget 2024'
# By type
mimeType = 'application/pdf'
mimeType = 'application/vnd.google-apps.folder'
mimeType = 'application/vnd.google-apps.document'
# By folder
'folder-id' in parents
# By ownership
'user@example.com' in owners
# Combined
name contains 'report' and mimeType = 'application/pdf'Google Drive API Scopes
drive- Full access to Drive files
Contributing
Pull requests are welcomed on GitHub! To get started:
Install Git and Node.js
Clone the repository
Install dependencies with
npm installRun
npm run testto run testsBuild with
npm run build
Releases
Versions follow the semantic versioning spec.
To release:
Use
npm version <major | minor | patch>to bump the versionRun
git push --follow-tagsto push with tagsWait for GitHub Actions to publish to the NPM registry.
This server cannot be installed
Maintenance
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/domdomegg/google-drive-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server