Gmail logo

Gmail

Connects AI agents to Gmail for reading, searching, sending email, and listing labels through MCP.

Install Gmail

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "gmail-4": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-gmail"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 5 tools correctly ().

Overview

The Gmail MCP server connects AI agents to a connected Gmail account for email retrieval, search, sending, and label inspection. It is available as a hosted Pipeworx gateway endpoint or as a local stdio package installed with npx. The hosted option requires a Pipeworx account and connected Gmail account, while the standalone package avoids the gateway. Reach for it when an agent needs to find messages, inspect email content, send replies or new messages, or work with Gmail labels.

Use cases

  • List unread inbox messages for triage
  • Search emails by sender, date, subject, or attachment
  • Fetch complete message contents and metadata
  • Send email with optional recipients and attachments
  • List Gmail system and custom labels

Key features

  • Inbox listing with label and read-status filters
  • Gmail query syntax search
  • Full message and attachment metadata retrieval
  • Email sending with CC, BCC, reply-to, and attachments
  • System and custom label listing
  • Hosted gateway and local stdio modes

Tools5

What Gmail lets your agent do. Expand a tool for its parameters.

Verified live~712 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 77d

What it can do

From the 5 tools this server returned when we ran it; 5 declare their own safety hints.

Makes network requests · 5Read-only tools · 5
Network at startup4 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age208 days
Maintainers1

Observed 2026-11-10 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 2d ago via OSV.dev · @pipeworx/mcp-gmail (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads801Package downloads in the last 30 days.
Last commit20d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed5Callable tools this server registers over MCP.

How Gmail works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Gmail

Gmail is an MCP server that connects AI agents to a connected Gmail account through Pipeworx or a local stdio package. Its main tools list inbox messages, fetch full messages, search Gmail queries, send email with optional recipients and attachments, and list labels.

Install the local server by configuring your MCP client to run `npx -y @pipeworx/mcp-gmail`. You can also run that command directly to verify startup. This local mode uses stdin/stdout and does not require a Pipeworx account.

Yes, Gmail works with Cursor through the hosted MCP endpoint or the local stdio configuration. Add `https://gateway.pipeworx.io/gmail/mcp` for the hosted connection, or configure Cursor to run the package with npx.

Connect over HTTP by signing in to Pipeworx, connecting a Gmail account, and sending authenticated requests to the gateway. Use a Pipeworx key as a bearer token and call endpoints such as `/v1/tools/gmail_list_messages`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGmail AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/gmail-4?style=directory)](https://allmcps.com/mcp/gmail-4)
HTML Embed
<a href="https://allmcps.com/mcp/gmail-4"><img src="https://allmcps.com/api/badge/gmail-4?style=directory" alt="Gmail on AllMCPs" /></a>