LogoSTMCP
Download
mcp-headless-gmail

MCP Headless Gmail Server (NPM & Docker)

MCP Headless Gmail Server is a Model Context Protocol server that provides headless Gmail access without local credential setup, enabling remote email retrieval and sending through Docker or NPM deployment.

Tools

1. gmail_refresh_token

Refreshes Google access tokens using client credentials or refresh tokens.

2. get_recent_emails

Retrieves recent emails with the first 1k characters of each email body.

3. get_email_body

Retrieves full email body content in 1k chunks using an offset parameter.

4. send_email

Sends emails through Gmail with specified recipients, subject, and body content.

Open Graph image for MCP Headless Gmail Server (NPM & Docker)

JSON Config

{
  "mcpServers": {
    "gmail": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "buryhuang/mcp-headless-gmail:latest"
      ]
    }
  }
}

Useful Links

Information