AgentHubAgentHub

gmail

MCP ServerMCP Registry官方收录

com.pulsemcp/gmail · v0.4.10

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

概览

gmail 是一个MCP Server,收录自 官方 MCP Registry。支持 stdio 传输。本页提供 Cursor、Claude Code 等客户端的安装配置片段。

安装

选择你的平台查看安装方式

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

环境变量

GMAIL_OAUTH_CLIENT_ID可选secret

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

GMAIL_OAUTH_CLIENT_SECRET可选secret

OAuth2 client secret from Google Cloud Console.

GMAIL_OAUTH_REFRESH_TOKEN可选secret

Refresh token from the OAuth2 setup script.

GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL可选

Service account email address (for Google Workspace).

GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY可选secret

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

GMAIL_IMPERSONATE_EMAIL可选

Email address to impersonate (required for service account mode).

GMAIL_ENABLED_TOOLGROUPS可选

Comma-separated list of tool groups to enable (readonly, readwrite, readwrite_external).

相关资源

统一 Manifest

{
  "id": "com.pulsemcp/gmail",
  "type": "mcp-server",
  "version": "0.4.10",
  "displayName": "gmail",
  "description": "MCP server for Gmail with OAuth2 (personal) and service account (Workspace) support.",
  "repository": {
    "url": "https://github.com/pulsemcp/mcp-servers",
    "source": "github",
    "subfolder": "experimental/gmail"
  },
  "distribution": {
    "packages": [
      {
        "registryType": "npm",
        "identifier": "gmail-workspace-mcp-server",
        "version": "0.4.10",
        "runtimeHint": "npx",
        "transport": "stdio",
        "environmentVariables": [
          {
            "name": "GMAIL_OAUTH_CLIENT_ID",
            "description": "OAuth2 client ID from Google Cloud Console (for personal Gmail accounts).",
            "isSecret": true
          },
          {
            "name": "GMAIL_OAUTH_CLIENT_SECRET",
            "description": "OAuth2 client secret from Google Cloud Console.",
            "isSecret": true
          },
          {
            "name": "GMAIL_OAUTH_REFRESH_TOKEN",
            "description": "Refresh token from the OAuth2 setup script.",
            "isSecret": true
          },
          {
            "name": "GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL",
            "description": "Service account email address (for Google Workspace)."
          },
          {
            "name": "GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY",
            "description": "Service account private key in PEM format (for Google Workspace).",
            "isSecret": true
          },
          {
            "name": "GMAIL_IMPERSONATE_EMAIL",
            "description": "Email address to impersonate (required for service account mode)."
          },
          {
            "name": "GMAIL_ENABLED_TOOLGROUPS",
            "description": "Comma-separated list of tool groups to enable (readonly, readwrite, readwrite_external)."
          }
        ]
      }
    ],
    "remotes": []
  },
  "dependencies": [],
  "installTargets": [
    "claude-code",
    "claude-desktop",
    "cursor",
    "vscode"
  ],
  "keywords": [],
  "provenance": {
    "origin": "official-mcp-registry",
    "originalId": "com.pulsemcp/gmail",
    "originalUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/com.pulsemcp%2Fgmail/versions/latest",
    "isOfficial": true,
    "status": "active"
  }
}
gmail — MCP Server 安装与配置 · AgentHub