Google Drive MCP
MCP server by A1-x-Tech Community
Connects an AI assistant to Google Drive so it can search, organize, upload, download, export and share files. It suits people who want Drive tasks done in plain language, with delete mapped to the reversible trash.
Install Google Drive MCP
Built from the published package, never by AI.
claude mcp add google-drive-mcp -- npx -y @a1-x-tech/mcp-google-driveRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"google-drive-mcp": {
"args": [
"-y",
"@a1-x-tech/mcp-google-drive"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"google-drive-mcp": {
"args": [
"-y",
"@a1-x-tech/mcp-google-drive"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"google-drive-mcp": {
"args": [
"-y",
"@a1-x-tech/mcp-google-drive"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add google-drive-mcp -- npx -y @a1-x-tech/mcp-google-drive{
"mcpServers": {
"google-drive-mcp": {
"args": [
"-y",
"@a1-x-tech/mcp-google-drive"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add google-drive-mcp npx -y @a1-x-tech/mcp-google-driveGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the google-drive-mcp block.
About
Google Drive MCP lets an AI app work with your Google Drive through the Google Drive API and your Google account. It can find files, organize folders, upload and download content, export Docs, Sheets and Slides, and manage sharing and comments. It sees My Drive and shared drives alike.
The server treats delete as a move to the trash, which Google purges after about 30 days. Permanent deletion is a separate tool. Docs, Sheets and Slides are moved, copied, exported and shared as whole files, and the server never edits their text. You can connect from the chat through OAuth and choose a read-only, app-files-only or full access scope. It is aimed at people who manage Drive files through an AI assistant.
Written from the project's README and checked against it.
Tools it gives your assistant
setup_instructionsPrints the checklist for creating the Google Cloud project and OAuth client.set_clientStores the path to the downloaded OAuth client JSON, owner-only.start_loginReturns a Google consent link and listens on 127.0.0.1 for the code.finish_loginExchanges the code for tokens and checks them with a Google Drive API call.auth_statusShows what Google Drive connection is currently set up.logoutRevokes the saved tokens and deletes the stored credentials.raw_requestCalls Drive API methods that have no dedicated tool, such as resumable uploads.
What you need
- Node.js 20 or later
- A Google account
- A Google Cloud project with Google Drive API enabled
- An OAuth client of type Desktop app
| Setting | Needed | What it is |
|---|---|---|
GOOGLE_Environment variable | Optional | Google OAuth2 client id (refresh-token flow). |
GOOGLE_Environment variable, secret | Optional | Google OAuth2 client secret (refresh-token flow). Treat it as a secret. |
GOOGLE_Environment variable, secret | Optional | Google OAuth2 refresh token, exchanged for access tokens automatically. Treat it as a secret. |
GOOGLE_Environment variable, secret | Optional | Static OAuth2 access token (~1h lifetime) — alternative to the refresh-token trio, mostly for testing. |
GOOGLE_Environment variable | Optional | Fixed port for the loopback listener of the in-chat login (127.0.0.1 + PKCE). Set it when the client runs over SSH port forwarding; otherwise a free port is picked per login. |
GOOGLE_Environment variable | Optional | API root override. Default: https://www.googleapis.com |
GOOGLE_Environment variable | Optional | Per-request timeout in milliseconds. Default: 60000 |
GOOGLE_Environment variable | Optional | Retries on transient errors (429 always; 5xx/network for reads). Default: 3 |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Find the project roadmap doc in my Drive, export it to Markdown and summarize it.
- Show what is in my Contracts 2025 folder, newest first.
- Create an Archive subfolder and move files older than a year into it, after asking me.
Good to know
- Built-in uploads are capped at 5 MB; larger files need a resumable session via raw_request.
- Exports are capped at 10 MB per the Drive API.
- Comments created through the API cannot be anchored to a passage inside a Doc.
- Refresh tokens in Google testing-mode OAuth apps can expire after seven days.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Google Drive MCP
All alternatives →Agentmesh MCP Proxy is a security proxy for MCP servers, described by its publisher as a firewall for the Model Context Protocol. It is aimed at teams that run AI agents which call tools and other agents.
Hardens client-side artifacts such as binaries, Electron apps, JS bundles, Python and WebAssembly against AI reverse-engineering agents. Built for developers who ship proprietary logic to user-controlled devices.
Bla Agents is an MCP server and CLI that adds seeded, format-specific decoys to shipped binaries, JavaScript, WebAssembly and other artifacts. It is for developers who ship proprietary logic to user-controlled devices and want to make AI reverse-engineering slower.
A shared OAuth server for the MCP route of an app, built on better-auth, with passkey sign-in for the owner
Agent Governance Toolkit adds policy enforcement, identity, sandboxing and audit logging to autonomous AI agents. It is aimed at teams shipping agents to production. The source does not confirm the Claude Desktop MCP server named in the listing.
Convex MCP Gateway is a Convex component that exposes selected Convex functions as MCP tools. It checks each call with your own authorize callback and writes an audit log. It is for developers who run Convex apps and want AI assistants to call parts of them.
Compare with Agentmesh MCP Proxy, Bla or Bla Agents
Google Drive MCP: common questions
Does Google Drive MCP delete files permanently?
Delete moves files to the trash, which Google purges after about 30 days. Permanent deletion is a separate tool that bypasses the trash.
Can it edit the text inside a Google Doc?
No. The source says the server has no tool that edits text inside a Doc or cells inside a Sheet. Docs, Sheets and Slides are handled as whole files.
Which Google Drive permission scope should I choose?
drive.readonly covers all read tools, drive.file limits access to app-created files, and drive covers the full tool surface including sharing and deletion.
How do I install Google Drive MCP?
In Claude Code run claude mcp add google-drive-mcp -- npx -y @a1-x-tech/mcp-google-drive. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Google Drive MCP the official server?
Google Drive MCP is a community project by A1-x-Tech, not verified by a company domain.
Is Google Drive MCP free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Google Drive MCP safe to use?
It scores 74 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Google Drive MCP?
Similar MCP servers: Agentmesh MCP Proxy, Bla, Bla Agents, MCP Auth.
Does Google Drive MCP work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
