# Gmail [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/pipeworx-io/mcp-gmail  
**GitHub Stars:** 0  
**npm Downloads (last month):** 801  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/gmail-4

## Description
Gmail MCP Pack

## Tools
Capabilities this server exposes over MCP:

- **gmail_list_messages** — List messages in your inbox with optional filtering by label or read status. Returns message IDs, thread IDs, and preview text. Use gmail_search for complex queries like date ranges or attachments.
- **gmail_get_message** — Fetch full email details by message ID. Returns headers, subject, body text, sender, recipients, attachments, and applied labels.
- **gmail_search** — Search emails using Gmail query syntax (e.g., 'from:sender@example.com', 'subject:invoice', 'has:attachment', 'after:2024/01/01', 'is:unread'). Returns matching message IDs.
- **gmail_send** — Send an email with recipient, subject, and body text. Optionally add CC, BCC, reply-to address, and file attachments.
- **gmail_list_labels** — Get all your labels including system folders (INBOX, SENT, TRASH, DRAFTS) and custom labels. Returns label names and IDs for filtering or organizing.

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

```json
"mcpServers": {
  "gmail": {
    "command": "npx",
    "args": ["-y","@pipeworx/mcp-gmail"]
  }
}
```

## Documentation

## What Gmail MCP server does

The Gmail MCP server exposes a focused set of Gmail operations through the Model Context Protocol. Agents can inspect inbox messages, retrieve complete email records, run Gmail-style searches, send messages, and enumerate labels. Results include identifiers and message content needed for follow-up actions, such as using a message ID returned by a list or search operation to fetch its full details.

The hosted version is provided through Pipeworx. Its pack endpoint lists the Gmail tools along with shared Pipeworx meta-tools. Those shared tools can route questions to other catalog sources, so the tool list from the hosted endpoint is larger than the Gmail-specific set. The local package exposes only the Gmail pack tools.

## How it works

A Gmail MCP server can be connected in an MCP client using the Pipeworx streamable endpoint or a local command. The hosted connection uses `https://gateway.pipeworx.io/gmail/mcp`; the full Pipeworx gateway is also available when an agent should access all listed data sources directly. Both hosted URLs use the Pipeworx gateway, and the pack endpoint still provides access to broader routing through `ask_pipeworx`.

The standalone package communicates over standard input and output. Running `npx -y @pipeworx/mcp-gmail` starts the local server and responds to MCP initialization, tool-listing, and tool-call requests. The local mode does not add the gateway's shared meta-tools or require a Pipeworx account.

## Setup and configuration

For a hosted connection, sign in at Pipeworx, connect a Gmail account, and add the pack URL to the MCP client configuration. Direct HTTP callers authenticate with a Pipeworx key using a bearer token. Tool calls use the gateway's `/v1/tools/<tool-name>` pattern, and tool definitions can be inspected through the corresponding GET endpoint.

For local use, configure the client to run `npx` with `-y` and `@pipeworx/mcp-gmail` as its argument. No environment variables or additional configuration values are specified in the provided setup instructions.

## Tools and capabilities

- `gmail_list_messages` lists inbox messages and can filter by label or read status. It returns message IDs, thread IDs, and preview text.
- `gmail_get_message` retrieves full details for a message, including headers, subject, body text, sender, recipients, attachments, and labels.
- `gmail_search` accepts Gmail query syntax for conditions such as sender, subject, attachments, dates, and unread status.
- `gmail_send` sends text email and supports CC, BCC, reply-to, and file attachments.
- `gmail_list_labels` returns system and custom labels with their names and IDs.

## Limitations and notes

The hosted pack requires a connected Gmail account and Pipeworx authentication. A pack endpoint includes shared Pipeworx meta-tools in addition to the Gmail tools, and the exact hosted scope is reported by the connection's `initialize` response. The standalone mode avoids those shared tools and routes, exposing only the Gmail-specific operations.

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

