L'Agora
MCPLocal

com.pulsemcp/gmail

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

Repository
github.com/pulsemcp/mcp-servers
Version
0.4.12
Author
pulsemcp.com (namespace verified by the registry)
Source
Official MCP registry (updated Aug 30, 2026)

How to install it

Variables to fill in: GMAIL_OAUTH_CLIENT_ID, GMAIL_OAUTH_CLIENT_SECRET, GMAIL_OAUTH_REFRESH_TOKEN, GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL, GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY, GMAIL_IMPERSONATE_EMAIL, GMAIL_ENABLED_TOOLGROUPS.

On your machine

Claude Code

The server runs on your machine (npm package). In a terminal:

claude mcp add gmail -e GMAIL_OAUTH_CLIENT_ID=YOUR_GMAIL_OAUTH_CLIENT_ID -e GMAIL_OAUTH_CLIENT_SECRET=YOUR_GMAIL_OAUTH_CLIENT_SECRET -e GMAIL_OAUTH_REFRESH_TOKEN=YOUR_GMAIL_OAUTH_REFRESH_TOKEN -e GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL=YOUR_GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL -e GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY=YOUR_GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY -e GMAIL_IMPERSONATE_EMAIL=YOUR_GMAIL_IMPERSONATE_EMAIL -e GMAIL_ENABLED_TOOLGROUPS=YOUR_GMAIL_ENABLED_TOOLGROUPS -- npx -y [email protected]
Claude Desktop claude_desktop_config.json

Settings, Developer, Edit config, then add:

{
  "mcpServers": {
    "gmail": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "GMAIL_OAUTH_CLIENT_ID": "YOUR_GMAIL_OAUTH_CLIENT_ID",
        "GMAIL_OAUTH_CLIENT_SECRET": "YOUR_GMAIL_OAUTH_CLIENT_SECRET",
        "GMAIL_OAUTH_REFRESH_TOKEN": "YOUR_GMAIL_OAUTH_REFRESH_TOKEN",
        "GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL": "YOUR_GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL",
        "GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY": "YOUR_GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY",
        "GMAIL_IMPERSONATE_EMAIL": "YOUR_GMAIL_IMPERSONATE_EMAIL",
        "GMAIL_ENABLED_TOOLGROUPS": "YOUR_GMAIL_ENABLED_TOOLGROUPS"
      }
    }
  }
}
Cursor ~/.cursor/mcp.json

In ~/.cursor/mcp.json:

{
  "mcpServers": {
    "gmail": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "GMAIL_OAUTH_CLIENT_ID": "YOUR_GMAIL_OAUTH_CLIENT_ID",
        "GMAIL_OAUTH_CLIENT_SECRET": "YOUR_GMAIL_OAUTH_CLIENT_SECRET",
        "GMAIL_OAUTH_REFRESH_TOKEN": "YOUR_GMAIL_OAUTH_REFRESH_TOKEN",
        "GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL": "YOUR_GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL",
        "GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY": "YOUR_GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY",
        "GMAIL_IMPERSONATE_EMAIL": "YOUR_GMAIL_IMPERSONATE_EMAIL",
        "GMAIL_ENABLED_TOOLGROUPS": "YOUR_GMAIL_ENABLED_TOOLGROUPS"
      }
    }
  }
}
VS Code .vscode/mcp.json

In .vscode/mcp.json:

{
  "servers": {
    "gmail": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "GMAIL_OAUTH_CLIENT_ID": "YOUR_GMAIL_OAUTH_CLIENT_ID",
        "GMAIL_OAUTH_CLIENT_SECRET": "YOUR_GMAIL_OAUTH_CLIENT_SECRET",
        "GMAIL_OAUTH_REFRESH_TOKEN": "YOUR_GMAIL_OAUTH_REFRESH_TOKEN",
        "GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL": "YOUR_GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL",
        "GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY": "YOUR_GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY",
        "GMAIL_IMPERSONATE_EMAIL": "YOUR_GMAIL_IMPERSONATE_EMAIL",
        "GMAIL_ENABLED_TOOLGROUPS": "YOUR_GMAIL_ENABLED_TOOLGROUPS"
      }
    }
  }
}
ChatGPT

ChatGPT only connects to remote servers (an https address). This package runs locally: use one of the apps above.

These configurations are built from the information published by the author. Check the repository before installing a local server.

Our test

This server runs on your machine: we cannot test it remotely.

Reviews

No review yet.

Sign in to leave a review. Your email is all you need.

Comments

No comment yet. A question, a tip? Start the discussion.

Sign in to comment.

Is this your project? Sign in to claim this entry.

Badge for your README

com.pulsemcp/gmail on L’Agora

Show that your project is listed (and tested, if it responds): paste this code in your README. The badge follows the latest test and links back to this entry.

Markdown (GitHub)

[![com.pulsemcp/gmail on L’Agora](https://lagora.dev/badge/com.pulsemcp/gmail.svg?lang=en)](https://lagora.dev/en/entry/com.pulsemcp/gmail)

HTML

<a href="https://lagora.dev/en/entry/com.pulsemcp/gmail"><img src="https://lagora.dev/badge/com.pulsemcp/gmail.svg?lang=en" alt="com.pulsemcp/gmail on L’Agora" height="20"></a>

Promote

For the entry’s author only: sign in to continue.

By the same author

com.pulsemcp/monarch-money Local

com.pulsemcp/good-eggs Local

com.pulsemcp/remote-filesystem Local

com.pulsemcp/google-flights Local

Report this entry