Honest Gmail MCP logo

Honest Gmail MCP

by bartosz-kuc

Runs locally over stdio to connect an AI client directly to Gmail for search, reading, sending, drafts, and label changes.

Install Honest Gmail MCP

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

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "bartosz-kuc-honest-gmail-mcp": {
      "command": "uvx",
      "args": [
        "honest-gmail-mcp"
      ]
    }
  }
}

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

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.

uvx honest-gmail-mcp

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 bartosz-kuc/honest-gmail-mcp MCP server connects a local MCP client to Google Gmail through the Gmail API and your own OAuth client. It runs as a Python process on your machine and communicates with the AI client over stdio, without a hosted intermediary. Six tools cover Gmail searches, message retrieval, sending, drafts, labels, and in-thread replies, including local file attachments. Reach for it when you need local control of Gmail credentials and message traffic, and can complete a Google Cloud OAuth setup.

Use cases

  • Search Gmail with native query syntax
  • Read message headers and plain-text bodies
  • Send replies with local file attachments
  • Create drafts without sending them
  • Apply or remove Gmail labels

Key features

  • Local stdio MCP transport
  • Direct Gmail API access with user-owned OAuth
  • Gmail query syntax support
  • In-thread replies and local attachments
  • Draft creation and label management

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.

10/10 checks healthy over the last 39d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · honest-gmail-mcp (PyPI)

Adoption & maintenance

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

Last commit5d agoMost recent push to the default branch.
Install checkInconclusiveStarted but did not complete the MCP handshake in our test.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Honest Gmail MCP works

What bartosz-kuc/honest-gmail-mcp MCP server does

The bartosz-kuc/honest-gmail-mcp MCP server exposes selected Gmail operations to an AI client running on the same machine. It uses the Gmail API for one authorized Google account per server instance. The available operations cover finding messages, reading message content, composing or sending mail, managing drafts, inspecting labels, and changing labels on messages.

The server is designed for users who want the process, OAuth client, refresh token, and MCP connection under their control. Email data travels between the local server and Google, then between the server and the local MCP client over stdio. The repository states that it has no hosted service, proxy, telemetry, or analytics layer.

How it works

A Python process starts under the MCP client and waits for requests on a local stdio connection. For Gmail operations, it calls Google over HTTPS using OAuth credentials created in the user’s Google Cloud project. The first authorization can be performed with the included script, or the server can start the browser consent flow when a token is missing.

The search_messages tool accepts Gmail query syntax such as sender, unread status, and date filters. get_message returns headers and decoded plain-text content. Sending and drafting accept the same message fields; sending can include files from the local filesystem and can reply within an existing Gmail thread. When replying, the server can derive the recipient and subject from the original message and sets the relevant reply headers and Gmail thread ID.

Setup and configuration

Use Python 3.10 or newer. Clone the repository, create a virtual environment, and install its requirements. In Google Cloud Console, enable the Gmail API, configure an OAuth consent screen, add the account as a test user when applicable, create a Desktop OAuth client, and save the downloaded JSON as credentials.json in the repository directory.

Run authorize.py once to open Google’s consent page and save a refresh token as token.json. Then register server.py with Claude Code, Claude Desktop, or another MCP-compatible client, using absolute paths to the Python executable and server file.

The bartosz-kuc/honest-gmail-mcp MCP server supports these optional environment variables: GMAIL_CREDENTIALS_PATH selects the OAuth client file, GMAIL_TOKEN_PATH selects the refresh-token file, and GMAIL_SERVER_NAME changes the reported server name. Absolute paths are recommended because paths are not expanded for ~. One server instance serves one account; additional accounts require separate instances and token files.

The package can also be run through pip or uvx. In that case, set both credential paths explicitly because the installed module or package cache is not a suitable location for secrets.

Tools and capabilities

The six MCP tools are:

  • search_messages: searches with Gmail query syntax.
  • get_message: retrieves full headers and decoded text/plain content.
  • send_message: sends mail, optionally with local file attachments or as an in-thread reply.
  • create_draft: creates unsent mail using the same message fields as sending.
  • list_labels: lists Gmail labels and their IDs.
  • modify_labels: adds or removes labels on a message.

Limitations and notes

The OAuth scope is gmail.modify. It supports reading, labels, sending, and drafts, but not Gmail settings, filters, delegates, or account administration. The server only supports one account per process, so multi-account use requires multiple registrations and token files.

Keep credential and token files outside source control; the repository’s setup uses .gitignore rules for them. The project is intended to be auditable, but access is still determined by the OAuth grant and the MCP client that can invoke the tools. Google access can be revoked from the account’s permissions page.

The bartosz-kuc/honest-gmail-mcp MCP server does not provide a hosted endpoint. A client must launch the local process, and the server itself is not intended to be started manually as an interactive application because it waits on stdio.

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 Honest Gmail MCP

bartosz-kuc/honest-gmail-mcp is an MCP server that connects a local AI client directly to the Gmail API using your OAuth credentials. Its six tools search and read messages, send mail, create drafts, list labels, and add or remove labels, with support for in-thread replies and local file attachments.

Install it by cloning the repository, creating a Python 3.10+ virtual environment, and installing the requirements. Create a Gmail API OAuth Desktop client, save its JSON as credentials.json, run authorize.py, then register server.py with your MCP client.

Yes, bartosz-kuc/honest-gmail-mcp works with Claude Desktop over stdio. Add the Python executable and server.py as an MCP server entry in claude_desktop_config.json, then restart Claude Desktop so the six tools become available.

Run one server instance per Gmail account and give each instance its own token file. Use GMAIL_TOKEN_PATH for the account-specific token and optionally GMAIL_SERVER_NAME for a distinct client name; the OAuth client JSON can be shared.

It requests the gmail.modify scope. That scope covers reading messages, changing labels, sending mail, and creating drafts, but does not cover Gmail settings, filters, delegates, or account management.

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 PreviewHonest Gmail MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/bartosz-kuc-honest-gmail-mcp?style=directory)](https://allmcps.com/mcp/bartosz-kuc-honest-gmail-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/bartosz-kuc-honest-gmail-mcp"><img src="https://allmcps.com/api/badge/bartosz-kuc-honest-gmail-mcp?style=directory" alt="Honest Gmail MCP on AllMCPs" /></a>