Gmail MCP Server

Gmail MCP Server

A Model Context Protocol server for Gmail operations using IMAP/SMTP with app password authentication. Supports listing messages, searching emails, and sending messages. To create your app password, visit your Google Account settings under Security > App Passwords. Or visit the link https://myaccount.google.com/apppasswords.

3 Tools

Requires Configuration
Requires Secrets
Add to Docker Desktop

Version 4.43 or later needs to be installed to add the server automatically

About

Gmail MCP Server MCP Server

A Model Context Protocol server for Gmail operations using IMAP/SMTP with app password authentication. Supports listing messages, searching emails, and sending messages.

What is an MCP Server?

Characteristics

AttributeDetails
Docker Imageyashtekwani/gmail-mcp
AuthorSallytion
Repositoryhttps://github.com/Sallytion/Gmail-MCP
Dockerfilehttps://github.com/Sallytion/Gmail-MCP/blob/main/Dockerfile
Docker Image built bySallytion
Docker Scout Health ScoreNot available
Verify SignatureNot available
Licence

Available Tools (3)

Tools provided by this ServerShort Description
listMessagesList recent messages from Gmail inbox
findMessageSearch for messages containing specific words or phrases
sendMessageSend an email message

Tools Details

Tool: listMessages

List recent messages from Gmail inbox

ParametersTypeDescription
countnumberNumber of messages to retrieve (default: 10, max: 100)

Tool: findMessage

Search for messages containing specific words or phrases

ParametersTypeDescription
querystringSearch query (supports Gmail search syntax)

Tool: sendMessage

Send an email message

ParametersTypeDescription
tostringRecipient email address
subjectstringEmail subject
bodystringEmail message body
ccstringCC email address (optional)
bccstringBCC email address (optional)

Use this MCP Server

{
  "mcpServers": {
    "gmail-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "EMAIL_ADDRESS",
        "-e",
        "IMAP_HOST",
        "-e",
        "IMAP_PORT",
        "-e",
        "SMTP_HOST",
        "-e",
        "SMTP_PORT",
        "-e",
        "EMAIL_PASSWORD",
        "yashtekwani/gmail-mcp"
      ],
      "env": {
        "EMAIL_ADDRESS": "your-email@gmail.com",
        "IMAP_HOST": "imap.gmail.com",
        "IMAP_PORT": "993",
        "SMTP_HOST": "smtp.gmail.com",
        "SMTP_PORT": "587",
        "EMAIL_PASSWORD": "<your-gmail-app-password>"
      }
    }
  }
}

Why is it safer to run MCP Servers with Docker?

Manual installation

You can install the MCP server using:

Installation for

Related servers