gmail logo

gmail MCP server

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

Good fit for

  • One-command install
  • Runs fully local
  • MIT license

Used for

Facts

Pricing
Unknown
Authentication
API key
Transport
stdio
Hosting
Local
Maker
Unknown
Access
Unknown
Language
TypeScript
Install method
npx
Operating system
Unknown
Client
Claude Desktop

Install

More clients (15)

Paste into claude_desktop_config.json

{
  "mcpServers": {
    "gmail": {
      "command": "npx",
      "args": [
        "-y",
        "-y",
        "gmail-workspace-mcp-server"
      ]
    }
  }
}

Env vars and secrets

  • GMAIL_OAUTH_CLIENT_IDEnv varSecret

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

  • GMAIL_OAUTH_CLIENT_SECRETEnv varSecret

    OAuth2 client secret from Google Cloud Console.

  • GMAIL_OAUTH_REFRESH_TOKENEnv varSecret

    Refresh token from the OAuth2 setup script.

  • GMAIL_SERVICE_ACCOUNT_PRIVATE_KEYEnv varSecret

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

Ratings

Not enough ratings yet

Ratings show once 3 people have rated.

Sign in to rate and comment. Sign in

Comments (0)

Sign in to rate and comment. Sign in

No comments yet.

Alternatives

From the same category

NamePricingAuthenticationHostingStars
Inbox ZeroUnknownOAuthRemote13k
obseiOfficialFreeAPI keyLocal1.4k
emailmdOfficialUnknownNoneLocal, Remote1.4k
Microsoft 365 MCP ServerUnknownUnknownLocal1.1k
TryPostUnknownUnknownRemote765
OpenPostUnknownUnknownRemote822

Score: 73

Popularity
50
Maintenance
96
Trust
80
Completeness
90
Community
50

Formula version 1

Listed in:

Official MCP Registry.

Data from the Official MCP Registry.