AgentHubAgentHub

google-drive

MCP ServerMCP Registry官方收录

io.github.us-all/google-drive · v1.15.5

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

概览

google-drive 是一个MCP Server,收录自 官方 MCP Registry。支持 stdio 传输。本页提供 Cursor、Claude Code 等客户端的安装配置片段。

安装

选择你的平台查看安装方式

{
  "mcpServers": {
    "google-drive": {
      "command": "npx",
      "args": [
        "-y",
        "@us-all/google-drive-mcp"
      ]
    }
  }
}

环境变量

GOOGLE_CLIENT_ID可选secret

OAuth client ID. Required for OAuth refresh-token auth method.

GOOGLE_CLIENT_SECRET可选secret

OAuth client secret. Required for OAuth refresh-token auth method.

GOOGLE_REFRESH_TOKEN可选secret

OAuth refresh token. Required for OAuth refresh-token auth method.

GOOGLE_APPLICATION_CREDENTIALS可选

Path to service account JSON key. Required for SA + DWD auth method (alternative to OAuth).

GOOGLE_SERVICE_ACCOUNT_KEY_PATH可选

Alias for GOOGLE_APPLICATION_CREDENTIALS.

GOOGLE_IMPERSONATE_USER可选

Workspace user email to impersonate (DWD). Required when using service account auth.

GOOGLE_DRIVE_SCOPES可选

Comma-separated OAuth scopes. Defaults are read-only; write mode broadens Drive/Docs scopes as needed.

GOOGLE_DRIVE_ALLOW_WRITE可选

Set to 'true' to enable write tools. Default read-only.

GD_TOOLS可选

Comma-separated category allowlist. Default: all categories enabled.

GD_DISABLE可选

Comma-separated category disablelist.

相关资源

统一 Manifest

{
  "id": "io.github.us-all/google-drive",
  "type": "mcp-server",
  "version": "1.15.5",
  "displayName": "google-drive",
  "description": "Google Drive + Workspace MCP — Docs, Sheets, Slides, Shared Drives, Labels, Approvals, DWD",
  "repository": {
    "url": "https://github.com/us-all/google-drive-mcp-server",
    "source": "github"
  },
  "distribution": {
    "packages": [
      {
        "registryType": "npm",
        "identifier": "@us-all/google-drive-mcp",
        "version": "1.15.5",
        "transport": "stdio",
        "environmentVariables": [
          {
            "name": "GOOGLE_CLIENT_ID",
            "description": "OAuth client ID. Required for OAuth refresh-token auth method.",
            "isSecret": true
          },
          {
            "name": "GOOGLE_CLIENT_SECRET",
            "description": "OAuth client secret. Required for OAuth refresh-token auth method.",
            "isSecret": true
          },
          {
            "name": "GOOGLE_REFRESH_TOKEN",
            "description": "OAuth refresh token. Required for OAuth refresh-token auth method.",
            "isSecret": true
          },
          {
            "name": "GOOGLE_APPLICATION_CREDENTIALS",
            "description": "Path to service account JSON key. Required for SA + DWD auth method (alternative to OAuth)."
          },
          {
            "name": "GOOGLE_SERVICE_ACCOUNT_KEY_PATH",
            "description": "Alias for GOOGLE_APPLICATION_CREDENTIALS."
          },
          {
            "name": "GOOGLE_IMPERSONATE_USER",
            "description": "Workspace user email to impersonate (DWD). Required when using service account auth."
          },
          {
            "name": "GOOGLE_DRIVE_SCOPES",
            "description": "Comma-separated OAuth scopes. Defaults are read-only; write mode broadens Drive/Docs scopes as needed."
          },
          {
            "name": "GOOGLE_DRIVE_ALLOW_WRITE",
            "description": "Set to 'true' to enable write tools. Default read-only."
          },
          {
            "name": "GD_TOOLS",
            "description": "Comma-separated category allowlist. Default: all categories enabled."
          },
          {
            "name": "GD_DISABLE",
            "description": "Comma-separated category disablelist."
          }
        ]
      }
    ],
    "remotes": []
  },
  "dependencies": [],
  "installTargets": [
    "claude-code",
    "claude-desktop",
    "cursor",
    "vscode"
  ],
  "keywords": [],
  "provenance": {
    "origin": "official-mcp-registry",
    "originalId": "io.github.us-all/google-drive",
    "originalUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.us-all%2Fgoogle-drive/versions/latest",
    "isOfficial": true,
    "status": "active"
  }
}
google-drive — MCP Server 安装与配置 · AgentHub