Skip to content
VS Code

gmail for VS Code

io.github.markswendsen-code/gmail

Gmail MCP server — send, read, and search email. By Strider Labs.

client:VS Code transport:stdio runtime:npm

Install gmail 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": "google-refresh-token",
      "description": "GOOGLE_REFRESH_TOKEN",
      "password": true
    }
  ],
  "servers": {
    "gmail": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@striderlabs/mcp-gmail"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "${input:google-client-id}",
        "GOOGLE_CLIENT_SECRET": "${input:google-client-secret}",
        "GOOGLE_REFRESH_TOKEN": "${input:google-refresh-token}"
      }
    }
  }
}

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

gmail in other clients