MCP server · Developer tools
gmail
by pulsemcp.com
MCP server for Gmail with OAuth2 (personal) and service account (Workspace) support.
- Claude Code
- Codex
- Cursor
- GitHub Copilot
- Gemini CLI
- Claude Desktop
- ★ 81 on GitHub
- Updated 2026-08-30
- MIT
- Runs code on your machine
Calyban is a free desktop app. It checks gmail for red flags before installing, lets you choose the agent and folder, and undoes it in one click.
Install gmail manually
Prefer the terminal? This does the same thing as Calyban's install, for your user account.
Claude Code
claude mcp add --scope user gmail -e 'GMAIL_OAUTH_CLIENT_ID=<GMAIL_OAUTH_CLIENT_ID>' -e 'GMAIL_OAUTH_CLIENT_SECRET=<GMAIL_OAUTH_CLIENT_SECRET>' -e 'GMAIL_OAUTH_REFRESH_TOKEN=<GMAIL_OAUTH_REFRESH_TOKEN>' -e 'GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL=<GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL>' -e 'GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY=<GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY>' -e 'GMAIL_IMPERSONATE_EMAIL=<GMAIL_IMPERSONATE_EMAIL>' -e 'GMAIL_ENABLED_TOOLGROUPS=<GMAIL_ENABLED_TOOLGROUPS>' -- npx -y -y gmail-workspace-mcp-server@0.4.12Codex
codex mcp add gmail --env 'GMAIL_OAUTH_CLIENT_ID=<GMAIL_OAUTH_CLIENT_ID>' --env 'GMAIL_OAUTH_CLIENT_SECRET=<GMAIL_OAUTH_CLIENT_SECRET>' --env 'GMAIL_OAUTH_REFRESH_TOKEN=<GMAIL_OAUTH_REFRESH_TOKEN>' --env 'GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL=<GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL>' --env 'GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY=<GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY>' --env 'GMAIL_IMPERSONATE_EMAIL=<GMAIL_IMPERSONATE_EMAIL>' --env 'GMAIL_ENABLED_TOOLGROUPS=<GMAIL_ENABLED_TOOLGROUPS>' -- npx -y -y gmail-workspace-mcp-server@0.4.12Replace the values in <ANGLE_BRACKETS> with your own keys. Never share them.
Start a new Claude Code, Codex & more session afterwards so it picks up the change.
Similar mcp servers
REAmorlutoReverse engineer anything from your terminal or agent with one CLI and MCP server.GitModel Context Protocol ✓Read, search and manipulate Git repositories.TimeModel Context Protocol ✓Current time and timezone conversions.tldrawtldrawDraw and visually collaborate with your agents on tldraw's canvas.CCXTccxtOfficial CCXT MCP server - Market data and trading across 100+ exchanges and prediction marketsOh My Posh Validatorohmyposh.devValidate oh-my-posh configurations and segment snippets against the official schema.
Guides
Listed in the public Calyban catalog. gmail is made by pulsemcp.com, not Calyban. Inclusion isn't an endorsement and safety checks aren't a guarantee.