Skip to main content
MCP server CX Codex

Google Drive MCP — Claude Code MCP server: setup and review

Connects your coding agent to Google Drive, Docs, Sheets, Slides, and Calendar. Useful for managing Workspace files and editing documents directly from prompts.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add google-drive-mcp -e GOOGLE_DRIVE_OAUTH_CREDENTIALS=<GOOGLE_DRIVE_OAUTH_CREDENTIALS> -- npx -y @piotr-agier/google-drive-mcp
Open on GitHub

What Google Drive MCP does

The server packages 130 tools tailored for Google Workspace. An agent can organize folders on Drive, write text into Docs, format rows in Sheets, generate slide decks, and schedule Calendar events with Meet links. It also provides a gdrive:/// URI scheme for browsing and direct file reads.

Local setups run over stdio, while hosted integrations use Streamable HTTP. Local mode supports switching between several Google profiles per tool call. For shared infrastructure, team mode associates each incoming call with distinct OAuth 2.1 tokens.

The server cannot run without valid Google Cloud credentials configured first. You need to enable the corresponding Workspace APIs, save a Desktop application OAuth credential file, and complete browser login before client tools start responding.

What it helps with

  • organize and move files across Google Drive folders
  • update body text and comments inside Google Docs
  • populate tables and format cells in Google Sheets
  • schedule Google Calendar meetings with attached documents

Example prompts for the agent

  • Run authGetStatus to check which Google account is currently active.
  • Search Google Drive for PDF reports from last week and move them to an Archive folder.
  • Build a monthly revenue table in Google Sheets and draft an outline in a new Google Doc.

How to install Google Drive MCP

Platform CLI

claude mcp add google-drive-mcp -e GOOGLE_DRIVE_OAUTH_CREDENTIALS=<GOOGLE_DRIVE_OAUTH_CREDENTIALS> -- npx -y @piotr-agier/google-drive-mcp

Replace <…> with your own values

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Google Drive MCP

How do I install Google Drive MCP in Claude Code?

Run claude mcp add google-drive-mcp -e GOOGLE_DRIVE_OAUTH_CREDENTIALS=<GOOGLE_DRIVE_OAUTH_CREDENTIALS> -- npx -y @piotr-agier/google-drive-mcp in your terminal. Ensure your Google OAuth credentials are ready before testing tools.

What Google Workspace services are covered?

The server provides 130 tools across Google Drive, Docs, Sheets, Slides, and Calendar, handling both file organisation and content manipulation.

How does authentication work?

Place your Google Cloud Desktop OAuth JSON file at ~/.config/google-drive-mcp/gcp-oauth.keys.json and run npx -y @piotr-agier/google-drive-mcp auth. The resulting tokens will be stored in ~/.config/google-drive-mcp/tokens.json.

Similar MCP servers

Everything for Office documents →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor