MCP directory
G

Gmail

by pulsemcp.com · v0.4.12 · updated Aug 30, 2026

MCP server for Gmail with OAuth2 (personal) and service account (Workspace) support.

npm

Run it locally

Install the package and point your AI client at it.

Environment variables

  • GMAIL_OAUTH_CLIENT_IDsecret

    OAuth2 client ID from Google Cloud Console (for personal Gmail accounts).

  • GMAIL_OAUTH_CLIENT_SECRETsecret

    OAuth2 client secret from Google Cloud Console.

  • GMAIL_OAUTH_REFRESH_TOKENsecret

    Refresh token from the OAuth2 setup script.

  • GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL

    Service account email address (for Google Workspace).

  • GMAIL_SERVICE_ACCOUNT_PRIVATE_KEYsecret

    Service account private key in PEM format (for Google Workspace).

  • GMAIL_IMPERSONATE_EMAIL

    Email address to impersonate (required for service account mode).

  • GMAIL_ENABLED_TOOLGROUPS

    Comma-separated list of tool groups to enable (readonly, readwrite, readwrite_external).

More from pulsemcp.com

More MCP servers