gmail-mcp-server MCP Server

An MCP server that lets AI agents search Gmail threads, understand your email writing style, and create draft emails.

Local serverstdio

What is the gmail-mcp-server MCP Server?

gmail-mcp-server is an MCP project maintained in the paulfidika/gmail-mcp-server repository. The maintainer describes its purpose as “An MCP server that lets AI agents search Gmail threads, understand your email writing style, and create draft emails”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using C:/path/to/your/auto-gmail.exe. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Configuration values

The example declares GMAIL_CLIENT_ID, GMAIL_CLIENT_SECRET, OPENAI_API_KEY. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
search_threadsSearch Gmail with queries like "from:email@example.com" or "subject:meeting" (includes draft info)
create_draftCreate email drafts or update existing drafts (AI will request style guide first)
extract_attachment_by_filenameSafely extract text from PDF, DOCX, and TXT attachments using filename
get_personal_email_style_guideGet your email writing style guide (this is a temporary tool, created because most agents do not yet support fetching resources--once agents implement MCP…
file//personal-email-style-guide - Your personal email writing style (auto-generated or manual)

How to install the gmail-mcp-server MCP Server

{
  "mcpServers": {
    "gmail": {
      "command": "C:/path/to/your/auto-gmail.exe",
      "env": {
        "GMAIL_CLIENT_ID": "your_client_id_here.apps.googleusercontent.com",
        "GMAIL_CLIENT_SECRET": "YOUR_GMAIL_CLIENT_SECRET",
        "OPENAI_API_KEY": "YOUR_OPENAI_API_KEY"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
GMAIL_CLIENT_IDDeclared in the maintainer’s client configuration.Check documentation
GMAIL_CLIENT_SECRETDeclared in the maintainer’s client configuration.Check documentation
OPENAI_API_KEYDeclared in the maintainer’s client configuration.Check documentation