# Gmail

> Gmail is an open-source MCP server for communication. Allow AI systems to read, send, archive, and manage emails via Gmail. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/domdomegg/gmail-mcp
- **MCP Registry name:** io.github.domdomegg/gmail-mcp
- **Categories:** communication
- **Listing updated:** 2026-11-13

## About

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

## Install

### Claude Code (Terminal)

```sh
claude mcp add gmail-mcp --env GOOGLE_ACCESS_TOKEN='<GOOGLE_ACCESS_TOKEN>' -- npx -y gmail-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "gmail-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "gmail-mcp"
      ],
      "env": {
        "GOOGLE_ACCESS_TOKEN": "<GOOGLE_ACCESS_TOKEN>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "gmail-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "gmail-mcp"
      ],
      "env": {
        "GOOGLE_ACCESS_TOKEN": "<GOOGLE_ACCESS_TOKEN>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "gmail-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "gmail-mcp"
      ],
      "env": {
        "GOOGLE_ACCESS_TOKEN": "<GOOGLE_ACCESS_TOKEN>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "gmail-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "gmail-mcp"
      ],
      "env": {
        "GOOGLE_ACCESS_TOKEN": "<GOOGLE_ACCESS_TOKEN>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "gmail-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "gmail-mcp"
      ],
      "env": {
        "GOOGLE_ACCESS_TOKEN": "<GOOGLE_ACCESS_TOKEN>"
      }
    }
  }
}
```

## FAQ

### Is Gmail free?

Yes. Gmail is open source, so you can use and self-host it for free.

### How do I add Gmail to Claude Code?

Run this command in your terminal: claude mcp add gmail-mcp --env GOOGLE_ACCESS_TOKEN='<GOOGLE_ACCESS_TOKEN>' -- npx -y gmail-mcp

### What are the best alternatives to Gmail?

The closest alternatives to Gmail are BoardAgent, Callout, nicemails, SOMMON Office and PostBaton.

## Alternatives

- [BoardAgent](https://ai-powered.com/mcp/boardagent): BoardAgent is a free MCP server for community directories.
- [Callout](https://ai-powered.com/mcp/callout): Callout is a freemium MCP server for communication.
- [nicemails](https://ai-powered.com/mcp/nicemails): nicemails is a freemium MCP server for communication.
- [SOMMON Office](https://ai-powered.com/mcp/sommon-office): SOMMON Office is a paid MCP server for communication.
- [PostBaton](https://ai-powered.com/mcp/postbaton): PostBaton is a freemium MCP server for marketing and seo.
- [MeetBetr](https://ai-powered.com/mcp/meetbetr): MeetBetr is a free MCP server for productivity.
- [Host Tools](https://ai-powered.com/mcp/host-tools): Host Tools is an MCP server for home services.
- [iMessage MCP](https://ai-powered.com/mcp/imessage-mcp): iMessage MCP is an open-source MCP server for communication.

---
Source: https://ai-powered.com/mcp/gmail-2
