All MCP Servers
Dev Tools & GitMCP Registrynpm8 toolsA · 87

Gmail-MCP-Server

io.github.ArtyMcLabin · Updated

Lean Gmail MCP server with auto authentication support

At a glance

Gmail-MCP-Server is an MCP server in the Dev Tools & Git category. It runs locally over stdio via `npx -y @artymclabin/gmail-mcp`, and declares no required credentials. It exposes 8 tools, including read_email, list_email_labels and send_email. It scores A (87/100) on the MCP Skills Hub health score as of Oct 28, 2026.

Source 251GitHub stars

One-click install

Opens your editor and pre-fills the config. Your editor will ask before adding it.

How to install Gmail-MCP-Server in your AI client

Setup for Claude Code, Claude Desktop, Cursor, Codex, Windsurf, Cline and VS Code — copy-paste ready.

How to install Gmail-MCP-Server in Claude CodeAnthropic's agentic CLI

  1. Add the server

    bash
    claude mcp add Gmail-MCP-Server -- npx -y @artymclabin/gmail-mcp
  2. Verify it's connected

    bash
    claude mcp list
  3. Sharing it with your team?

    Add `--scope project` to write it to .mcp.json in the repository root, which you can commit (with the secrets left as environment variables).

  4. Use it in a session

    Ask Claude to use the tools this server exposes (e.g. read_email, list_email_labels, send_email). It discovers them automatically.

What does Gmail-MCP-Server need from you?

Configuration only — Declares config values but no credentials.

  • GMAIL_OAUTH_PATHoptionalEnvironment variable

    Optional override for the OAuth client keys file path (defaults to ~/.gmail-mcp/gcp-oauth.keys.json)

  • GMAIL_CREDENTIALS_PATHoptionalEnvironment variable

    Optional override for the stored credentials file path (defaults to ~/.gmail-mcp/credentials.json)

Pass secrets through your shell environment rather than committing them into a config file.

What tools does Gmail-MCP-Server expose? (8)

Taken from the project's README — the server itself was not queried, so check its docs for the exact schemas.

What the code can do

Read from the published package source — never executed. Parsed 10 of 10 source files.

This server can read and write files, make network requests and read your environment variables.

How it was published

  • No provenance attestation — there is nothing linking this published artifact to a specific source commit.
  • 1 npm maintainer — a single point of compromise · last published by artymclabin.

Maintainer of this package and think something here is wrong? Tell us and we'll correct it.

Before you install

Signals gathered from the source repo and package registry — not a safety verdict.

What it can reach

  • Runs code on your machine — Executes as a local process with your user's permissions, including filesystem access.
  • Downloads at launch — The package is fetched from its registry each run unless you pin a version.
  • Last commit 21 days ago — Actively maintained.
  • Fork of another repository — Check whether the upstream project is the one you actually want.
  • 251 GitHub stars — Community adoption signal.

Client compatibility

Claude Code: NativeClaude Desktop: NativeCursor: NativeCodex CLI: NativeWindsurf: NativeCline: NativeVS Code: Native

Health score

A · 87

Maintenance, adoption, transparency and packaging — not a safety audit. How this is calculated

  • Maintenance30%100%

    Last commit 21 days ago.

  • Adoption20%73%

    251 stars.

  • Transparency20%100%

    4/4: ✓ public source repo, ✓ declared license, ✓ documentation, ✓ discoverable tool list.

  • Provenance15%50%

    Repository is a fork.

  • Packaging15%100%

    Publishes a pinned version (1.2.3).

Documentation

Full README

Gmail MCP Server (Actively Maintained Fork)

Installation: npx @artymclabin/gmail-mcp auth - or just tell your Claude to install the MCP from this repo (https://github.com/ArtyMcLabin/Gmail-MCP-Server) and let it set up. Prefer manual steps? See Installation & Authentication.

Also on the official MCP Registry (io.github.ArtyMcLabin/Gmail-MCP-Server) and Smithery.

This is an actively maintained fork of [GongRzhe/Gmail-MCP-Server](https://github.com/GongRzhe/Gmail-MCP-Server). The original repository has been unmaintained since August 2025 - 7+ months with zero maintainer activity and 72+ unmerged pull requests. I use this MCP server daily as part of my Claude Code workflow and depend on it working correctly, so I picked it up. Pull requests are welcome. If you've been sitting on fixes or features with nowhere to submit them, this is the place.

Philosophy

This fork is lean and pragmatic. It's a local stdio MCP server - you run it on your own machine, and your LLM client already has shell + filesystem access. So the threat model is "don't leak credentials to third parties, don't break the Gmail surface" - not "defend a hosted multi-tenant service". I keep dependencies minimal. I use this daily in my own Claude Code workflow - if I wouldn't run it or maintain it myself, it doesn't go in.

There's a downstream fork that took this in the maximalist direction. I'm not affiliated with its maintainer and I don't track its security or features - use it at your own risk: [klodr/gmail-mcp](https://github.com/klodr/gmail-mcp). If that's the philosophy you want, go check it out. PRs welcome here as always.

What this fork adds

  • Fixed reply threading - auto-resolves In-Reply-To and References headers so email replies land in the correct thread instead of creating orphaned messages (upstream PR #91, still pending)
  • Send-as alias support - optional from parameter for multi-identity email management (send from any configured Gmail alias)
  • Reply-all tool - reply_all automatically fetches the original email, builds To/CC recipient lists (excluding yourself), and sets proper threading headers (PR #3 by @MaxGhenis)
  • Fixed `list_filters` - was returning empty array due to wrong response property name (PR #4 by @nicholas-anthony-ai)
  • Custom OAuth2 scoping - --scopes flag to request only the permissions you need, with automatic tool filtering (PR #6 by @tansanDOTeth)
  • CI/CD hardening - fixed shell injection vector in GitHub Actions workflow, added least-privilege permissions scope (PR #9 by @JF10R)
  • Security hardening - fixed path traversal in attachment download, restricted OAuth credential file permissions (PR #10 by @JF10R)
  • Dependency security - upgraded MCP SDK to v1.27.1 (3 CVE fixes), upgraded nodemailer (DoS + routing fix), moved dev-only packages out of production deps (PR #11 by @JF10R)
  • Thread-level tools - get_thread, list_inbox_threads, get_inbox_with_threads, modify_thread for efficient thread-based email operations in a single call
  • CC/BCC visibility - read_email now shows CC and BCC headers when present (PR #21 by @panghy)
  • Phishing report tools - report_phishing and batch_report_phishing for marking messages as spam via the Gmail API (PR #24 by @ShivamB25)
  • Draft lifecycle tools - send_draft, delete_draft, update_draft close the orphan-draft gap: send_draft atomically sends an existing draft and removes it from Drafts (no ghost copy); update_draft mutates a draft in place preserving its ID (no draft pile-up across iteration loops); delete_draft discards an abandoned draft (PR #30 by @thisisambros)
  • Tool annotations - MCP spec annotations (readOnlyHint, destructiveHint, idempotentHint) on all tools for safer LLM tool execution (PR #14 by @bryankthompson)
  • Download email tool - download_email saves emails to disk in json/eml/txt/html formats without consuming LLM context (PR #13 by @icanhasjonas)
  • Durable OAuth sessions - refresh_token is persisted across restarts, ending the hourly re-auth loop (PR #35 by @BrentBaccala)
  • Custom OAuth callback port - the auth listener derives port and path from your callback URL instead of hardcoding 3000 (PR #41 by @soapergem)
  • Safe permanent-delete gating - delete_email/batch_delete_emails require the opt-in gmail.full scope (which also satisfies all other mail scopes), so default auth stays least-privilege (PR #39 by [@caioribeiroclw-pixel](https://github.com/caioribeiro

…

Excerpt — the full document is on GitHub.

Maintain Gmail-MCP-Server? Add a badge to your README

Shows its health grade, and links readers to install steps for every client.

markdown
[![Gmail-MCP-Server on MCP Skills Hub](https://mcp-skills-hub.vercel.app/badge/io-github-artymclabin-gmail-mcp-server)](https://mcp-skills-hub.vercel.app/mcps/io-github-artymclabin-gmail-mcp-server)

Catalog data refreshed . Something wrong? Report it.