Skip to content
VS Code

Google Drive MCP for VS Code

io.github.a1-x-tech/mcp-google-drive

MCP server for the Google Drive API: search, upload, download, organize and share files.

client:VS Code transport:stdio runtime:npm

Install Google Drive MCP in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "google-drive-client-id",
      "description": "GOOGLE_DRIVE_CLIENT_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "google-drive-client-secret",
      "description": "GOOGLE_DRIVE_CLIENT_SECRET",
      "password": true
    },
    {
      "type": "promptString",
      "id": "google-drive-refresh-token",
      "description": "GOOGLE_DRIVE_REFRESH_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "google-drive-access-token",
      "description": "GOOGLE_DRIVE_ACCESS_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "google-drive-oauth-port",
      "description": "GOOGLE_DRIVE_OAUTH_PORT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "google-drive-api-base",
      "description": "GOOGLE_DRIVE_API_BASE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "google-drive-timeout-ms",
      "description": "GOOGLE_DRIVE_TIMEOUT_MS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "google-drive-max-retries",
      "description": "GOOGLE_DRIVE_MAX_RETRIES",
      "password": true
    }
  ],
  "servers": {
    "mcp-google-drive": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@a1-x-tech/mcp-google-drive"
      ],
      "env": {
        "GOOGLE_DRIVE_CLIENT_ID": "${input:google-drive-client-id}",
        "GOOGLE_DRIVE_CLIENT_SECRET": "${input:google-drive-client-secret}",
        "GOOGLE_DRIVE_REFRESH_TOKEN": "${input:google-drive-refresh-token}",
        "GOOGLE_DRIVE_ACCESS_TOKEN": "${input:google-drive-access-token}",
        "GOOGLE_DRIVE_OAUTH_PORT": "${input:google-drive-oauth-port}",
        "GOOGLE_DRIVE_API_BASE": "${input:google-drive-api-base}",
        "GOOGLE_DRIVE_TIMEOUT_MS": "${input:google-drive-timeout-ms}",
        "GOOGLE_DRIVE_MAX_RETRIES": "${input:google-drive-max-retries}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Google Drive MCP in other clients