# bartosz-kuc/honest-gmail-mcp [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/bartosz-kuc/honest-gmail-mcp  
**GitHub Stars:** 0  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/bartosz-kuc-honest-gmail-mcp

## Description
Gmail server that runs on your machine and calls the Gmail API directly with your own OAuth client, with no third-party middleman. Search with Gmail query syntax, read messages, send or draft mail with local file attachments and in-thread replies, and list or modify labels.

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

```json
"mcpServers": {
  "honest-gmail-mcp": {
    "command": "uvx",
    "args": ["honest-gmail-mcp"]
  }
}
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/bartosz-kuc-honest-gmail-mcp/readme_

