Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 74
  • 0 stars
  • 102 a week
  • MIT
  • Updated

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-drive

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Google Drive MCP in Claude Code

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
SettingNeededWhat it is
GOOGLE_DRIVE_CLIENT_IDEnvironment variableOptionalGoogle OAuth2 client id (refresh-token flow).
GOOGLE_DRIVE_CLIENT_SECRETEnvironment variable, secretOptionalGoogle OAuth2 client secret (refresh-token flow). Treat it as a secret.
GOOGLE_DRIVE_REFRESH_TOKENEnvironment variable, secretOptionalGoogle OAuth2 refresh token, exchanged for access tokens automatically. Treat it as a secret.
GOOGLE_DRIVE_ACCESS_TOKENEnvironment variable, secretOptionalStatic OAuth2 access token (~1h lifetime) — alternative to the refresh-token trio, mostly for testing.
GOOGLE_DRIVE_OAUTH_PORTEnvironment variableOptionalFixed 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_DRIVE_API_BASEEnvironment variableOptionalAPI root override. Default: https://www.googleapis.com
GOOGLE_DRIVE_TIMEOUT_MSEnvironment variableOptionalPer-request timeout in milliseconds. Default: 60000
GOOGLE_DRIVE_MAX_RETRIESEnvironment variableOptionalRetries 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

A

No 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 microsoft
94

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.

AAA Local 6.6k
Bla qybaihe
94

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.

AAA Local 7.3k
Bla Agents qybaihe
94

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.

AAA Local 11k/wk
MCP Auth zgeoff
94

A shared OAuth server for the MCP route of an app, built on better-auth, with passkey sign-in for the owner

AAC Local 44k/wk
Agentos MCP Server microsoft
94

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.

AAA Local 6.6k
Convex MCP Gateway tfohlmeister
93

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.

AAC Local 37k/wk

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.

Google Drive MCP Install

Add to stack

Loading.