MCP.so
Sign In

Gmail MCP Server

@PaulFidika

Basic information

Category

Communication

License

MIT

Transports

stdio

Author

PaulFidika

About Gmail MCP Server

A single-file MCP-server for interacting with Gmail. Works with Claude Desktop and Cursor.

Gmail MCP Server config

No standard config provided

This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.

Repository

Gmail MCP Server tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Gmail MCP Server?

An MCP server that lets AI agents search Gmail threads, understand your email writing style, and create draft emails. It integrates with Gmail via OAuth2 and requires a Google Cloud Project with Gmail API enabled.

How to use Gmail MCP Server?

Build the server with go build ., then add it to your MCP client configuration (e.g., Cursor or Claude Desktop) by providing GMAIL_CLIENT_ID, GMAIL_CLIENT_SECRET, and OPENAI_API_KEY as environment variables. For a persistent HTTP mode that avoids repeated OAuth popups, run ./gmail-mcp-server --http and manually start the server once.

Key features of Gmail MCP Server

  • Search Gmail threads using standard Gmail search queries
  • Create and update email drafts with thread awareness
  • Extract text from PDF, DOCX, and TXT attachments safely
  • Generate an email style guide from your last 25 sent emails
  • Persistent HTTP mode to avoid OAuth popup spam

Use cases of Gmail MCP Server

  • AI agent drafts replies in your personal writing style
  • Agent searches inbox for specific threads or attachments
  • Automate draft creation based on incoming email patterns
  • Generate and maintain a consistent email tone for your communications

Frequently asked questions

1

What permissions does Gmail MCP Server request?

It requests `gmail.readonly` (search/read/attach) and `gmail.compose` (create/update/delete drafts). It does not send or delete emails, nor modify labels.

2

What are the runtime requirements?

Go installed to build the server, a Google Cloud Project with Gmail API enabled, OAuth2 credentials, and an OpenAI API key. File storage uses standard app data directories.

3

How does persistent HTTP mode work?

Start the server manually with `--http` flag. OAuth popup appears once, then the server stays authenticated on `localhost:8080`. Multiple client tabs connect without re-authentication.

4

Where are authentication and style files stored?

On Windows: `C:\Users\[Username]\AppData\Roaming\auto-gmail\`. On Mac/Linux: `~/.auto-gmail/`. Key files include `token.json` and `personal-email-style-guide.md`.

5

What transport protocols are supported?

Default stdio (for Cursor/Claude Desktop). HTTP mode is available as persistent daemon but full HTTP MCP transport is not yet implemented (waiting on upstream library).

Comments

More Communication MCP servers