Gmail logo

Gmail

Send, search, read, and list Gmail messages through MCP using Google OAuth credentials.

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-2": {
      "command": "npx",
      "args": [
        "-y",
        "@striderlabs/mcp-gmail"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "YOUR_VALUE_HERE",
        "GOOGLE_CLIENT_SECRET": "YOUR_VALUE_HERE",
        "GOOGLE_REFRESH_TOKEN": "YOUR_VALUE_HERE"
      }
    }
  }
}

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

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

The install command started, but didn't respond the way we expected when we tried to talk to it.

npx -y @striderlabs/mcp-gmail

initialize succeeded but no response to tools/list.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The gmail MCP server lets AI agents send, read, search, and list messages in a Gmail account. It runs through npx as an MCP process and authenticates with Google OAuth client credentials plus a refresh token. Reach for it when an agent needs mailbox triage, email lookup, or user-approved outbound communication.

Use cases

  • Triage unread Gmail messages
  • Search email for project updates
  • Read full messages by ID
  • Send replies from a Gmail account

Key features

  • Send email with CC and BCC
  • Search using Gmail query syntax
  • Read messages by Gmail ID
  • List recent inbox messages
  • Filter listings by label
  • Return structured JSON responses

Tools9

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

Self-reported~12 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 78d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

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

Adoption & maintenance

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

npm downloads159Package downloads in the last 30 days.
Last commit5mo agoMost recent push to the default branch.
Install checkInconclusiveStarted but did not complete the MCP handshake in our test.
Tools exposed9Callable tools this server registers over MCP.
Directory activity7 viewsConfig copies, upvotes, and views on AllMCPs.

How Gmail works

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.

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 an AI agent to a user's Gmail account through Google OAuth and provides gmail_send, gmail_search, gmail_read, and gmail_list tools for sending, searching, reading, and listing email messages.

Run `npx @striderlabs/mcp-gmail` and add that command to your MCP client's server configuration. The documented configuration uses `npx`, the `-y` flag, and the `@striderlabs/mcp-gmail` package.

Set `GOOGLE_CLIENT_ID`, `GOOGLE_CLIENT_SECRET`, and `GOOGLE_REFRESH_TOKEN` in the MCP server environment. Create or select a Google Cloud project, enable the Gmail API, create OAuth 2.0 credentials, and obtain a refresh token.

Use `gmail_search` with a required Gmail search query and an optional `maxResults` value. The query accepts Gmail search syntax, such as `from:example@gmail.com`; the default maximum is 10 results.

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-2?style=directory)](https://allmcps.com/mcp/gmail-2)
HTML Embed
<a href="https://allmcps.com/mcp/gmail-2"><img src="https://allmcps.com/api/badge/gmail-2?style=directory" alt="Gmail on AllMCPs" /></a>