Skip to content
MCP server

Google Drive

Google Drive + Workspace MCP — Docs, Sheets, Slides, Shared Drives, Labels, Approvals, DWD

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
1.15.8
Listing updated
4 days ago

About Google Drive

Google Drive is an open-source MCP server for files and documents. It runs locally on your machine and is started by your AI client.

Install

Run in a terminal

claude mcp add google-drive --env GOOGLE_CLIENT_ID='<GOOGLE_CLIENT_ID>' --env GOOGLE_CLIENT_SECRET='<GOOGLE_CLIENT_SECRET>' --env GOOGLE_REFRESH_TOKEN='<GOOGLE_REFRESH_TOKEN>' -- npx -y @us-all/google-drive-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "google-drive": {
      "command": "npx",
      "args": [
        "-y",
        "@us-all/google-drive-mcp"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "<GOOGLE_CLIENT_ID>",
        "GOOGLE_CLIENT_SECRET": "<GOOGLE_CLIENT_SECRET>",
        "GOOGLE_REFRESH_TOKEN": "<GOOGLE_REFRESH_TOKEN>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "google-drive": {
      "command": "npx",
      "args": [
        "-y",
        "@us-all/google-drive-mcp"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "<GOOGLE_CLIENT_ID>",
        "GOOGLE_CLIENT_SECRET": "<GOOGLE_CLIENT_SECRET>",
        "GOOGLE_REFRESH_TOKEN": "<GOOGLE_REFRESH_TOKEN>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "google-drive": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@us-all/google-drive-mcp"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "<GOOGLE_CLIENT_ID>",
        "GOOGLE_CLIENT_SECRET": "<GOOGLE_CLIENT_SECRET>",
        "GOOGLE_REFRESH_TOKEN": "<GOOGLE_REFRESH_TOKEN>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "google-drive": {
      "command": "npx",
      "args": [
        "-y",
        "@us-all/google-drive-mcp"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "<GOOGLE_CLIENT_ID>",
        "GOOGLE_CLIENT_SECRET": "<GOOGLE_CLIENT_SECRET>",
        "GOOGLE_REFRESH_TOKEN": "<GOOGLE_REFRESH_TOKEN>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "google-drive": {
      "command": "npx",
      "args": [
        "-y",
        "@us-all/google-drive-mcp"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "<GOOGLE_CLIENT_ID>",
        "GOOGLE_CLIENT_SECRET": "<GOOGLE_CLIENT_SECRET>",
        "GOOGLE_REFRESH_TOKEN": "<GOOGLE_REFRESH_TOKEN>"
      }
    }
  }
}

Configuration

  • GOOGLE_CLIENT_IDOAuth client ID. Required for OAuth refresh-token auth method.
  • GOOGLE_CLIENT_SECRETOAuth client secret. Required for OAuth refresh-token auth method.
  • GOOGLE_REFRESH_TOKENOAuth refresh token. Required for OAuth refresh-token auth method.
  • GOOGLE_APPLICATION_CREDENTIALSPath to service account JSON key. Required for SA + DWD auth method (alternative to OAuth).
  • GOOGLE_SERVICE_ACCOUNT_KEY_PATHAlias for GOOGLE_APPLICATION_CREDENTIALS.
  • GOOGLE_IMPERSONATE_USERWorkspace user email to impersonate (DWD). Required when using service account auth.
  • GOOGLE_DRIVE_SCOPESComma-separated OAuth scopes. Defaults are read-only; write mode broadens Drive/Docs scopes as needed.
  • GOOGLE_DRIVE_ALLOW_WRITESet to 'true' to enable write tools. Default read-only.
  • GD_TOOLSComma-separated category allowlist. Default: all categories enabled.
  • GD_DISABLEComma-separated category disablelist.

Pricing

Open source

Google Drive FAQ

Is Google Drive free?

Yes. Google Drive is open source, so you can use and self-host it for free.

How do I add Google Drive to Claude Code?

Run this command in your terminal: claude mcp add google-drive --env GOOGLE_CLIENT_ID='<GOOGLE_CLIENT_ID>' --env GOOGLE_CLIENT_SECRET='<GOOGLE_CLIENT_SECRET>' --env GOOGLE_REFRESH_TOKEN='<GOOGLE_REFRESH_TOKEN>' -- npx -y @us-all/google-drive-mcp

What are the best alternatives to Google Drive?

The closest alternatives to Google Drive are ASTra, CARTESIAN ECU, Invoices, SigPen and ConvertAudioToText.

Alternatives to Google Drive

  1. ASTra

    MCP server

    Let agents read, edit, validate and undo Word .docx files with exact operations

    Runs locally
    • 5 tools
    • Freemium
    • Files and documents
  2. CARTESIAN ECU

    MCP server

    Check and repair ECU and TCU flash-file checksums from Claude (Ultimate plan)

    Not checked yet
    • 5 tools
    • Remote
    • Paid
    • Files and documents
  3. Invoices

    MCP server

    MCP server that reads supplier invoices and returns data plus DATEV, CSV or Excel files

    • 4 tools
    • Remote
    • Paid
    • Files and documents
  4. SigPen

    MCP server

    MCP server that drafts e-signature documents while you approve every send

    Not checked yet
    • 13 tools
    • Remote
    • Freemium
    • Files and documents
  5. Transcribe audio and video links from Claude or ChatGPT and read the results

    Not checked yet
    • 5 tools
    • Remote
    • Freemium
    • Design and media
  6. WhoScribe

    MCP server

    Search and read your WhoScribe audio and video transcripts from ChatGPT, read-only

    Not checked yet
    • Remote
    • Freemium
    • Design and media