MCP & Connectors

How do you connect Claude to Google Drive via MCP?

QUICK ANSWER

To connect Claude to Google Drive, enable the Google Drive API in the Google Cloud Console, create OAuth 2.0 credentials, and pass these credentials to the Google Drive MCP server inside your Claude Desktop configuration.

Step-by-step Connection

  1. Create a project in the Google Cloud Console, enable the Google Drive API, and create OAuth 2.0 Client credentials. Download the JSON credentials file.
  2. Install the Google Drive MCP server: npm install -g @modelcontextprotocol/server-google-drive.
  3. Add the configuration block pointing to your credentials file to your claude_desktop_config.json file:
    {
      "mcpServers": {
        "google-drive": {
          "command": "npx",
          "args": [
            "-y",
            "@modelcontextprotocol/server-google-drive",
            "--credentials",
            "/absolute/path/to/your/oauth-credentials.json"
          ]
        }
      }
    }
  4. Restart Claude Desktop, and complete the OAuth authentication request inside your browser to link Google Drive.
Verified against: Google Drive MCP Connector v1.1.2