# gmail [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/markswendsen-code/mcp-gmail  
**GitHub Stars:** 0  
**npm Downloads (last month):** 159  
**Views:** 7  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/gmail-2

## Description
Gmail MCP server — send, read, and search email. By Strider Labs.

## Tools
Capabilities this server exposes over MCP:

- **to**
- **subject**
- **body**
- **cc**
- **bcc**
- **query**
- **maxResults**
- **messageId**
- **label**

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "gmail": {
    "command": "npx",
    "args": ["-y","@striderlabs/mcp-gmail"],
    "env": {
      "GOOGLE_CLIENT_ID": "",
      "GOOGLE_CLIENT_SECRET": "",
      "GOOGLE_REFRESH_TOKEN": ""
    }
  }
}
```

**Requires environment variables:** `GOOGLE_CLIENT_ID`, `GOOGLE_CLIENT_SECRET`, `GOOGLE_REFRESH_TOKEN` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What the gmail MCP server does

The gmail MCP server connects an MCP-compatible AI client to a user's Gmail account. It exposes operations for sending messages, searching Gmail with Gmail query syntax, reading a specific message, and listing recent inbox messages. Responses are returned as structured JSON, including fields such as success, messageId, and message where applicable.

The available operations are:

- `gmail_send` sends an email with required recipients, subject, and body fields. CC and BCC recipients are optional.
- `gmail_search` searches messages using Gmail search syntax and accepts an optional result limit.
- `gmail_read` retrieves the full content of a message by Gmail message ID.
- `gmail_list` lists recent messages and can filter by a label such as `INBOX` or `UNREAD`.

These operations support workflows such as finding replies about a project, reviewing recent or unread mail, reading selected messages, and sending a response on the user's behalf.

## How it works

The server is launched with `npx @striderlabs/mcp-gmail` and communicates with the MCP client over its configured process connection. An MCP client invokes the Gmail tools with their declared parameters. Search requests use Gmail's own search syntax, while message reads require the ID returned or otherwise obtained from Gmail.

Result limits default to 10 for both search and inbox listing when a limit is not supplied. Sending requires the recipient, subject, and body; CC and BCC are optional. Reading requires a `messageId`.

## Setup and configuration

Install or run the package through npx, then add it to the MCP client's server configuration. The documented example uses Claude Desktop with `npx`, the `-y` argument, and the package name `@striderlabs/mcp-gmail`.

The gmail MCP server requires three environment variables:

- `GOOGLE_CLIENT_ID`
- `GOOGLE_CLIENT_SECRET`
- `GOOGLE_REFRESH_TOKEN`

Google Cloud setup must include a project, the Gmail API enabled for that project, OAuth 2.0 credentials, and a refresh token. The README identifies the Google OAuth Playground or an application as ways to obtain a refresh token.

## Tools and capabilities

Use `gmail_send` for outbound email, including optional CC and BCC recipients. Use `gmail_search` with queries such as sender or subject filters, then pass a message ID to `gmail_read` when the full content is needed. Use `gmail_list` for recent inbox messages or label-filtered views.

The tools return structured JSON rather than only plain text. The documented response example includes a Boolean success value, a message ID, and a status message.

## Limitations and notes

The documented capabilities cover sending, searching, reading, and listing Gmail messages.

Authentication depends on valid Google OAuth credentials and a refresh token. The package documentation provides a Claude Desktop configuration example but does not describe additional client-specific setup. Sending email is an external action; deployments should decide how their MCP client handles approval before invoking it.

_Full upstream README: https://allmcps.com/mcp/gmail-2/readme_

