G

Google Drive

by us-all · io.github.us-all/google-drive

Google Drive + Workspace MCP — 98 tools for Docs, Sheets, Slides, Shared Drives, Labels, Approvals. Supports OAuth2 and Service Account + Domain-Wide Delegation.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-us-all-google-drive": {
      "command": "npx",
      "args": [
        "-y",
        "@us-all/google-drive-mcp"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "<YOUR_VALUE>",
        "GOOGLE_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_REFRESH_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_APPLICATION_CREDENTIALS": "<VALUE>",
        "GOOGLE_SERVICE_ACCOUNT_KEY_PATH": "<VALUE>",
        "GOOGLE_IMPERSONATE_USER": "<VALUE>",
        "GOOGLE_DRIVE_SCOPES": "drive.readonly (or drive if write enabled)",
        "GOOGLE_DRIVE_ALLOW_WRITE": "false",
        "GD_TOOLS": "<VALUE>",
        "GD_DISABLE": "<VALUE>",
        "MCP_HTTP_HOST": "127.0.0.1",
        "MCP_HTTP_PORT": "3000",
        "MCP_TRANSPORT": "stdio",
        "MCP_HTTP_TOKEN": "<VALUE>",
        "MCP_HTTP_SKIP_AUTH": "false"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-us-all-google-drive": {
      "command": "npx",
      "args": [
        "-y",
        "@us-all/google-drive-mcp"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "<YOUR_VALUE>",
        "GOOGLE_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_REFRESH_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_APPLICATION_CREDENTIALS": "<VALUE>",
        "GOOGLE_SERVICE_ACCOUNT_KEY_PATH": "<VALUE>",
        "GOOGLE_IMPERSONATE_USER": "<VALUE>",
        "GOOGLE_DRIVE_SCOPES": "drive.readonly (or drive if write enabled)",
        "GOOGLE_DRIVE_ALLOW_WRITE": "false",
        "GD_TOOLS": "<VALUE>",
        "GD_DISABLE": "<VALUE>",
        "MCP_HTTP_HOST": "127.0.0.1",
        "MCP_HTTP_PORT": "3000",
        "MCP_TRANSPORT": "stdio",
        "MCP_HTTP_TOKEN": "<VALUE>",
        "MCP_HTTP_SKIP_AUTH": "false"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-us-all-google-drive": {
      "command": "npx",
      "args": [
        "-y",
        "@us-all/google-drive-mcp"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "<YOUR_VALUE>",
        "GOOGLE_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_REFRESH_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_APPLICATION_CREDENTIALS": "<VALUE>",
        "GOOGLE_SERVICE_ACCOUNT_KEY_PATH": "<VALUE>",
        "GOOGLE_IMPERSONATE_USER": "<VALUE>",
        "GOOGLE_DRIVE_SCOPES": "drive.readonly (or drive if write enabled)",
        "GOOGLE_DRIVE_ALLOW_WRITE": "false",
        "GD_TOOLS": "<VALUE>",
        "GD_DISABLE": "<VALUE>",
        "MCP_HTTP_HOST": "127.0.0.1",
        "MCP_HTTP_PORT": "3000",
        "MCP_TRANSPORT": "stdio",
        "MCP_HTTP_TOKEN": "<VALUE>",
        "MCP_HTTP_SKIP_AUTH": "false"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-us-all-google-drive": {
      "command": "npx",
      "args": [
        "-y",
        "@us-all/google-drive-mcp"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "<YOUR_VALUE>",
        "GOOGLE_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_REFRESH_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_APPLICATION_CREDENTIALS": "<VALUE>",
        "GOOGLE_SERVICE_ACCOUNT_KEY_PATH": "<VALUE>",
        "GOOGLE_IMPERSONATE_USER": "<VALUE>",
        "GOOGLE_DRIVE_SCOPES": "drive.readonly (or drive if write enabled)",
        "GOOGLE_DRIVE_ALLOW_WRITE": "false",
        "GD_TOOLS": "<VALUE>",
        "GD_DISABLE": "<VALUE>",
        "MCP_HTTP_HOST": "127.0.0.1",
        "MCP_HTTP_PORT": "3000",
        "MCP_TRANSPORT": "stdio",
        "MCP_HTTP_TOKEN": "<VALUE>",
        "MCP_HTTP_SKIP_AUTH": "false"
      }
    }
  }
}

Reload the VS Code window to activate.

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

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-us-all-google-drive": {
      "command": "npx",
      "args": [
        "-y",
        "@us-all/google-drive-mcp"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "<YOUR_VALUE>",
        "GOOGLE_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_REFRESH_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_APPLICATION_CREDENTIALS": "<VALUE>",
        "GOOGLE_SERVICE_ACCOUNT_KEY_PATH": "<VALUE>",
        "GOOGLE_IMPERSONATE_USER": "<VALUE>",
        "GOOGLE_DRIVE_SCOPES": "drive.readonly (or drive if write enabled)",
        "GOOGLE_DRIVE_ALLOW_WRITE": "false",
        "GD_TOOLS": "<VALUE>",
        "GD_DISABLE": "<VALUE>",
        "MCP_HTTP_HOST": "127.0.0.1",
        "MCP_HTTP_PORT": "3000",
        "MCP_TRANSPORT": "stdio",
        "MCP_HTTP_TOKEN": "<VALUE>",
        "MCP_HTTP_SKIP_AUTH": "false"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-us-all-google-drive": {
      "command": "npx",
      "args": [
        "-y",
        "@us-all/google-drive-mcp"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "<YOUR_VALUE>",
        "GOOGLE_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_REFRESH_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_APPLICATION_CREDENTIALS": "<VALUE>",
        "GOOGLE_SERVICE_ACCOUNT_KEY_PATH": "<VALUE>",
        "GOOGLE_IMPERSONATE_USER": "<VALUE>",
        "GOOGLE_DRIVE_SCOPES": "drive.readonly (or drive if write enabled)",
        "GOOGLE_DRIVE_ALLOW_WRITE": "false",
        "GD_TOOLS": "<VALUE>",
        "GD_DISABLE": "<VALUE>",
        "MCP_HTTP_HOST": "127.0.0.1",
        "MCP_HTTP_PORT": "3000",
        "MCP_TRANSPORT": "stdio",
        "MCP_HTTP_TOKEN": "<VALUE>",
        "MCP_HTTP_SKIP_AUTH": "false"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
GOOGLE_CLIENT_ID secret No OAuth2 Client ID (required for OAuth2 auth mode)
GOOGLE_CLIENT_SECRET secret No OAuth2 Client Secret (required for OAuth2 auth mode)
GOOGLE_REFRESH_TOKEN secret No OAuth2 Refresh Token (required for OAuth2 auth mode)
GOOGLE_APPLICATION_CREDENTIALS No Path to service account JSON key. Required for SA + DWD auth method (alternative to OAuth).
GOOGLE_SERVICE_ACCOUNT_KEY_PATH No Path to service-account JSON key (required for Service Account auth mode)
GOOGLE_IMPERSONATE_USER No GWS user email to impersonate (Service Account only)
GOOGLE_DRIVE_SCOPES No Comma-separated OAuth scopes override Default: drive.readonly (or drive if write enabled)
GOOGLE_DRIVE_ALLOW_WRITE No Set 'true' to enable mutations Default: false
GD_TOOLS No Comma-separated allowlist of categories (e.g., drive,docs,sheets)
GD_DISABLE No Comma-separated denylist of categories (ignored when GD_TOOLS is set)
MCP_HTTP_HOST No HTTP bind host Default: 127.0.0.1
MCP_HTTP_PORT No HTTP listen port Default: 3000
MCP_TRANSPORT No 'http' to enable Streamable HTTP transport Default: stdio
MCP_HTTP_TOKEN No Bearer token (required when MCP_TRANSPORT=http)
MCP_HTTP_SKIP_AUTH No Skip Bearer auth (e.g., behind a reverse proxy) Default: false

Similar servers