gmail-mcp-server MCP Server

An MCP (Model Context Protocol) server that provides Gmail integration capabilities to MCP clients like Claude Desktop.

Local serverstdio

What is the gmail-mcp-server MCP Server?

gmail-mcp-server is an MCP project maintained in the ajbr0wn/gmail-mcp-server repository. The maintainer describes its purpose as “An MCP (Model Context Protocol) server that provides Gmail integration capabilities to MCP clients like Claude Desktop”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using /path/to/conda/envs/mcp-gmail/bin/python. 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 PYTHONPATH, GMAIL_CREDENTIALS_FILE, GMAIL_TOKEN_FILE. 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_emailsDescription: Search Gmail emails with a query
Parameters:query (required): Gmail search query (uses Gmail's standard search syntax)
max_resultsoptional): Maximum number of results to return (default: 10)

How to install the gmail-mcp-server MCP Server

{
  "mcpServers": {
    "gmail": {
      "command": "/path/to/conda/envs/mcp-gmail/bin/python",
      "args": [
        "-m",
        "gmail_mcp_server.server"
      ],
      "env": {
        "PYTHONPATH": "/path/to/gmail-mcp-server/src",
        "GMAIL_CREDENTIALS_FILE": "YOUR_GMAIL_CREDENTIALS_FILE",
        "GMAIL_TOKEN_FILE": "YOUR_GMAIL_TOKEN_FILE"
      }
    }
  }
}

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

Configuration

VariableDescriptionRequired
PYTHONPATHDeclared in the maintainer’s client configuration.Check documentation
GMAIL_CREDENTIALS_FILEDeclared in the maintainer’s client configuration.Yes
GMAIL_TOKEN_FILEDeclared in the maintainer’s client configuration.Yes