google-drive-mcp
Allows browsing and managing Google Drive, including searching files, reading Docs/Sheets content, moving/renaming files and folders, and creating folders.
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-mcpsearch for files named 'project plan'"
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 to browse and manage Google Drive: search files, read Docs/Sheets content, move/rename/copy files and folders, manage the trash, permissions, revision history and comments.
Tools (27)
Browsing and reading
Tool | What it does |
| List the contents of a folder (root by default) |
| Search files by name, content, type, folder or modified date |
| Metadata of a file (name, type, size, owner, URL) |
| Read a Google Doc's content as text |
| Read a Google Sheet as CSV |
| Download the real binary content of a file already stored in Drive (PDFs, images, ZIPs) — capped at 10 MB. Different from |
| Full folder breadcrumb path to a file |
Organizing
Tool | What it does |
| Move a file to another folder |
| Rename a file or folder |
| Duplicate a file, e.g. to start from a template without touching the original |
| Create a new folder |
Trash
Tool | What it does |
| Send a file to the trash — reversible with |
| Take a file out of the trash |
Permissions
Tool | What it does |
| List who has access to a file and with what role |
| Share a file with a person, a domain, or anyone with the link |
| Revoke someone's access to a file |
Revision history
Tool | What it does |
| List a file's saved past versions (Docs, Sheets, Slides) |
| Read the content of a specific old revision of a Doc/Sheet without restoring it — useful for recovering text from an overwritten report |
Comments
Tool | What it does |
| List a file's comments (Docs, Sheets, Slides) |
| Add a general comment to a file (not anchored to a specific point) |
| Reply to an existing comment |
| Mark a comment as resolved (adds a reply with a "resolve" action, same as the ✓ button in the UI) |
| Delete a comment and its replies |
Shared drives, storage and change tracking
Tool | What it does |
| List the shared drives visible to this account |
| Storage quota: used, limit, and how much each type takes up |
| Get the token that marks "now", to start watching for changes |
| List what has changed in Drive since a given token — watch a client folder without re-reading it from scratch each time |
Related MCP server: google-drive-mcp-server
Safety
Every tool carries MCP Tool Annotations from the spec (
readOnlyHint,destructiveHint,idempotentHint,openWorldHint).Execution errors propagate as real MCP protocol errors (
isError=true) — never as a JSON payload that looks like a success.Sensitive operations carry a
confirmed: bool = Falseparameter. Without it, the tool returns a preview of what it would do instead of executing:trash_file,share_file,remove_permission,delete_comment.share_fileis the most sensitive of the set — it exposes a document to someone new, so treat the preview as a real gate, not a formality.
Setup
Create a Google Cloud project (or reuse one) and enable the Google Drive API.
Create an OAuth 2.0 Client ID of type "Desktop app" and download it as
client_secret.json.If the app is in "Testing" mode, add your Google account(s) as test users.
Install dependencies:
python3 -m venv .venv source .venv/bin/activate pip install -r requirements.txtRun the OAuth flow once per account you want to expose:
CLIENT_SECRET_PATH=~/.config/google-drive-mcp/client_secret.json \ TOKEN_OUT=~/.config/google-drive-mcp/token.json \ python3 setup_auth.pyThis opens a browser — log in and grant access. Repeat with a different
TOKEN_OUTfor each additional account.
MCP client configuration
{
"mcpServers": {
"google-drive": {
"command": "/path/to/.venv/bin/python3",
"args": ["/path/to/google-drive-mcp/server.py"],
"env": {
"GOOGLE_DRIVE_TOKEN_PATH": "~/.config/google-drive-mcp/token.json"
}
}
}
}Env var | Default | Purpose |
|
| Path to the OAuth token for this account |
Notes
Scope used is
https://www.googleapis.com/auth/drive(read + write) — needed formove_file,rename_file,create_folderand every write tool below to work. Adrive.readonlytoken will fail on those.search_filesmatches on file name by default; passsearch_content=Trueto search inside the document body instead (Drive'sfullTextsearch) when you remember what a file says but not its name.download_fileis capped at 10 MB to avoid pulling huge binaries into the model's context — use it to confirm a file's existence/size beyond that limit, not to read its content.If you run this server under two different Google accounts (e.g. one per client workspace), a search or read against the wrong account's token does not error — it silently returns an empty result. Don't conclude a file doesn't exist without checking you're on the right account.
License
MIT — see LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables AI assistants to interact with Google Drive, supporting file operations like list, search, read, create, update, delete, share, and manage permissions.74654MIT
- FlicenseAqualityCmaintenanceEnables AI assistants to interact with Google Drive, including reading, searching, listing folders, and uploading files.71
- AlicenseAqualityDmaintenanceEnables AI assistants to securely access and manage Google Drive files and Google Sheets within a specified folder scope, with support for reading various file types including PDFs and Excel.7151MIT
- AlicenseNot gradedqualityCmaintenanceEnables listing, searching, reading, writing, creating, and uploading files on Google Drive.23MIT
Related MCP Connectors
Search, browse, and read your Dropbox files. Find documents by name or content, list folders, and…
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Shared drive for your agents and teammates.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/YerayRodri/google-drive-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server