McpMux
Back to Registry

Gmail (npx) MCP Server

Community

Contributed by shinzo-labs

Complete Gmail API access via MCP: send, read, search, and manage messages, threads, drafts, labels, filters, delegates, and settings (vacation responder, IMAP/POP, forwarding). Uses file-based Google OAuth2 with your own Google Cloud OAuth client.

About the Gmail (npx) MCP Server

The Gmail (npx) MCP server is a local (stdio) Model Context Protocol server available in the McpMux registry. Complete Gmail API access via MCP: send, read, search, and manage messages, threads, drafts, labels, filters, delegates, and settings (vacation responder, IMAP/POP, forwarding). Uses file-based Google OAuth2 with your own Google Cloud OAuth client. This is a community-contributed MCP server by shinzo-labs.

Install the Gmail (npx) MCP server with one click using McpMux. It works with Cursor, Claude Desktop, Claude Code, VS Code, ChatGPT, Windsurf, JetBrains, and any MCP-compatible AI client. This server requires OAuth authentication — McpMux securely stores your credentials with AES-256-GCM encryption.

Transport Configuration

Transport Configuration
{
  "type": "stdio",
  "command": "npx",
  "args": [
    "-y",
    "@shinzolabs/gmail-mcp"
  ],
  "env": {
    "GMAIL_OAUTH_PATH": "${input:GMAIL_OAUTH_PATH}",
    "GMAIL_CREDENTIALS_PATH": "${input:GMAIL_CREDENTIALS_PATH}"
  },
  "metadata": {
    "inputs": [
      {
        "id": "GMAIL_OAUTH_PATH",
        "label": "OAuth Keys File Path",
        "description": "Path to your Google Cloud OAuth client keys file (gcp-oauth.keys.json). Create an OAuth 2.0 Client ID of type 'Desktop app' in Google Cloud Console with the Gmail API enabled, download the JSON, and point here. Leave blank to use the default ~/.gmail-mcp/gcp-oauth.keys.json.",
        "type": "file_path",
        "required": false,
        "secret": false,
        "placeholder": "~/.gmail-mcp/gcp-oauth.keys.json",
        "obtain": {
          "url": "https://console.cloud.google.com/apis/credentials",
          "instructions": "1. Open Google Cloud Console > APIs & Services > Credentials\n2. Enable the Gmail API for your project\n3. Configure the OAuth consent screen (add yourself as a test user)\n4. Click 'Create Credentials' > 'OAuth client ID'\n5. Choose application type 'Desktop app'\n6. Download the JSON and save it (e.g. ~/.gmail-mcp/gcp-oauth.keys.json)\n7. Run 'npx @shinzolabs/gmail-mcp auth' once to authorize in the browser and generate the credentials/token file",
          "button_label": "Open Google Cloud Console"
        }
      },
      {
        "id": "GMAIL_CREDENTIALS_PATH",
        "label": "Credentials / Token File Path",
        "description": "Path where the OAuth token (refresh token) is stored after authorizing. Generated by running 'npx @shinzolabs/gmail-mcp auth'. Leave blank to use the default ~/.gmail-mcp/credentials.json.",
        "type": "file_path",
        "required": false,
        "secret": false,
        "placeholder": "~/.gmail-mcp/credentials.json"
      }
    ]
  }
}
Details
TransportLocal (stdio)
Hostinglocal
Authoauth
Capabilities
Tools

Categories

Tags

gmailemailgoogleoauthmessagingproductivity

Supported AI Clients

The Gmail (npx) MCP server works with all MCP-compatible AI clients through McpMux:

CursorClaude DesktopClaude CodeVS CodeChatGPTWindsurfJetBrainsZedClineGemini CLIAmazon Q

Related MCP Servers

Install Gmail (npx) with McpMux

One-click install from the McpMux desktop app. Auto-configures for Cursor, Claude, VS Code, ChatGPT, Windsurf, JetBrains, and any MCP-compatible client.