Skip to content
VS Code

Google Workspace for VS Code

io.github.mindstone/mcp-server-google-workspace

Google Workspace MCP server for Gmail, Calendar, Drive, Docs, Sheets, Slides, Contacts, and more

client:VS Code transport:stdio runtime:npm

Install Google Workspace in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "google-client-id",
      "description": "GOOGLE_CLIENT_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "google-client-secret",
      "description": "GOOGLE_CLIENT_SECRET",
      "password": true
    },
    {
      "type": "promptString",
      "id": "accounts-path",
      "description": "ACCOUNTS_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "credentials-path",
      "description": "CREDENTIALS_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "google-workspace-request-timeout-ms",
      "description": "GOOGLE_WORKSPACE_REQUEST_TIMEOUT_MS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "google-workspace-disable-refresh",
      "description": "GOOGLE_WORKSPACE_DISABLE_REFRESH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-workspace-path",
      "description": "MCP_WORKSPACE_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "workspace-base-path",
      "description": "WORKSPACE_BASE_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "gauth-file",
      "description": "GAUTH_FILE",
      "password": true
    }
  ],
  "servers": {
    "mcp-server-google-workspace": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-google-workspace"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "${input:google-client-id}",
        "GOOGLE_CLIENT_SECRET": "${input:google-client-secret}",
        "ACCOUNTS_PATH": "${input:accounts-path}",
        "CREDENTIALS_PATH": "${input:credentials-path}",
        "GOOGLE_WORKSPACE_REQUEST_TIMEOUT_MS": "${input:google-workspace-request-timeout-ms}",
        "GOOGLE_WORKSPACE_DISABLE_REFRESH": "${input:google-workspace-disable-refresh}",
        "MCP_WORKSPACE_PATH": "${input:mcp-workspace-path}",
        "WORKSPACE_BASE_PATH": "${input:workspace-base-path}",
        "GAUTH_FILE": "${input:gauth-file}"
      }
    }
  }
}

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

Google Workspace in other clients