PluginBench
MCP Server
Active

Gmail MCP Server

io.github.domdomegg/gmail-mcp

What is the Gmail MCP server?

Allow AI systems to read, send, archive, and manage emails via Gmail.

How to install Gmail

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • GOOGLE_ACCESS_TOKEN
    required
    secret

    Google OAuth access token with Gmail scopes.

  • MCP_TRANSPORT
    required

    Transport type.

  • GOOGLE_CLIENT_ID
    required

    Google OAuth client ID.

  • GOOGLE_CLIENT_SECRET
    required
    secret

    Google OAuth client secret.

Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "gmail-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "gmail-mcp"
      ],
      "env": {
        "GOOGLE_ACCESS_TOKEN": "<YOUR_GOOGLE_ACCESS_TOKEN>",
        "MCP_TRANSPORT": "<YOUR_MCP_TRANSPORT>",
        "GOOGLE_CLIENT_ID": "<YOUR_GOOGLE_CLIENT_ID>",
        "GOOGLE_CLIENT_SECRET": "<YOUR_GOOGLE_CLIENT_SECRET>"
      }
    }
  }
}
Cursor
~/.cursor/mcp.json
{
  "mcpServers": {
    "gmail-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "gmail-mcp"
      ],
      "env": {
        "GOOGLE_ACCESS_TOKEN": "<YOUR_GOOGLE_ACCESS_TOKEN>",
        "MCP_TRANSPORT": "<YOUR_MCP_TRANSPORT>",
        "GOOGLE_CLIENT_ID": "<YOUR_GOOGLE_CLIENT_ID>",
        "GOOGLE_CLIENT_SECRET": "<YOUR_GOOGLE_CLIENT_SECRET>"
      }
    }
  }
}
Windsurf
~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "gmail-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "gmail-mcp"
      ],
      "env": {
        "GOOGLE_ACCESS_TOKEN": "<YOUR_GOOGLE_ACCESS_TOKEN>",
        "MCP_TRANSPORT": "<YOUR_MCP_TRANSPORT>",
        "GOOGLE_CLIENT_ID": "<YOUR_GOOGLE_CLIENT_ID>",
        "GOOGLE_CLIENT_SECRET": "<YOUR_GOOGLE_CLIENT_SECRET>"
      }
    }
  }
}
VS Code
.vscode/mcp.json
{
  "servers": {
    "gmail-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "gmail-mcp"
      ],
      "env": {
        "GOOGLE_ACCESS_TOKEN": "<YOUR_GOOGLE_ACCESS_TOKEN>",
        "MCP_TRANSPORT": "<YOUR_MCP_TRANSPORT>",
        "GOOGLE_CLIENT_ID": "<YOUR_GOOGLE_CLIENT_ID>",
        "GOOGLE_CLIENT_SECRET": "<YOUR_GOOGLE_CLIENT_SECRET>"
      }
    }
  }
}
Claude Code
claude mcp add gmail-mcp --env GOOGLE_ACCESS_TOKEN=<YOUR_GOOGLE_ACCESS_TOKEN> --env MCP_TRANSPORT=<YOUR_MCP_TRANSPORT> --env GOOGLE_CLIENT_ID=<YOUR_GOOGLE_CLIENT_ID> --env GOOGLE_CLIENT_SECRET=<YOUR_GOOGLE_CLIENT_SECRET> -- npx -y gmail-mcp

Related MCP servers

Airtable

Active

Give AI assistants read/write access to Airtable bases, tables, records, and comments.

449
TypeScript
MIT
View repository →

Lets Claude control your computer via screenshots, mouse, and keyboard automation.

318
TypeScript
MIT
View repository →

Fetch content from the web, cleaned up nicely for LLMs (using Defuddle).

6
TypeScript
MIT
View repository →

Execute bash commands with background job support.

6
TypeScript
View repository →

Allow AI systems to list, search, upload, download, and manage files and folders in Google Drive.

4
TypeScript
View repository →

Get the current UTC time in RFC 3339 format.

4
Python
MIT
View repository →
Gmail MCP Server | PluginBench