gmail for VS Code
com.pulsemcp/gmail
MCP server for Gmail with OAuth2 (personal) and service account (Workspace) support.
client:VS Code
transport:stdio
runtime:npm
Install gmail in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "gmail-oauth-client-id",
"description": "GMAIL_OAUTH_CLIENT_ID",
"password": true
},
{
"type": "promptString",
"id": "gmail-oauth-client-secret",
"description": "GMAIL_OAUTH_CLIENT_SECRET",
"password": true
},
{
"type": "promptString",
"id": "gmail-oauth-refresh-token",
"description": "GMAIL_OAUTH_REFRESH_TOKEN",
"password": true
},
{
"type": "promptString",
"id": "gmail-service-account-client-email",
"description": "GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL",
"password": true
},
{
"type": "promptString",
"id": "gmail-service-account-private-key",
"description": "GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY",
"password": true
},
{
"type": "promptString",
"id": "gmail-impersonate-email",
"description": "GMAIL_IMPERSONATE_EMAIL",
"password": true
},
{
"type": "promptString",
"id": "gmail-enabled-toolgroups",
"description": "GMAIL_ENABLED_TOOLGROUPS",
"password": true
}
],
"servers": {
"gmail": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"gmail-workspace-mcp-server"
],
"env": {
"GMAIL_OAUTH_CLIENT_ID": "${input:gmail-oauth-client-id}",
"GMAIL_OAUTH_CLIENT_SECRET": "${input:gmail-oauth-client-secret}",
"GMAIL_OAUTH_REFRESH_TOKEN": "${input:gmail-oauth-refresh-token}",
"GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL": "${input:gmail-service-account-client-email}",
"GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY": "${input:gmail-service-account-private-key}",
"GMAIL_IMPERSONATE_EMAIL": "${input:gmail-impersonate-email}",
"GMAIL_ENABLED_TOOLGROUPS": "${input:gmail-enabled-toolgroups}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs