Skip to main content

Gmail SMTP MCP server for Claude CLI

Project description

claude-gmail-mcp

PyPI

A super tiny Gmail MCP server for Claude Code. Lets Claude send emails on your behalf via Gmail SMTP. I needed something for my projects - there were a bunch around which seemed super complicated. So why not have claude CLI build one for me :-p

Prerequisites

Install

Add the MCP server to Claude Code:

claude mcp add gmail \
  -e GMAIL_ADDRESS=you@gmail.com \
  -e GMAIL_APP_PASSWORD=your-app-password \
  -- uvx claude-gmail-mcp

Replace you@gmail.com and your-app-password with your actual credentials.

To make it available across all projects, add --scope user:

claude mcp add gmail --scope user \
  -e GMAIL_ADDRESS=you@gmail.com \
  -e GMAIL_APP_PASSWORD=your-app-password \
  -- uvx claude-gmail-mcp

Verify

claude mcp list

You should see gmail listed as a configured server.

Usage

Once installed, ask Claude to send an email:

Send an email to alice@example.com with subject "Hello" and body "Hi from Claude!"

Claude will use the send_email tool, which supports:

  • to - recipient address(es)
  • subject - email subject
  • body - plain text or HTML body
  • cc/bcc - optional CC/BCC recipients
  • html - set to true to send HTML email

For Development

git clone https://github.com/pliablepixels/claude-gmail-mcp.git
cd claude-gmail-mcp
uv sync

Run the server locally:

uv run claude-gmail-mcp

To test with Claude Code using your local copy instead of the published package:

claude mcp add gmail \
  -e GMAIL_ADDRESS=you@gmail.com \
  -e GMAIL_APP_PASSWORD=your-app-password \
  -- uv run --directory /path/to/claude-gmail-mcp claude-gmail-mcp

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

claude_gmail_mcp-0.1.1.tar.gz (41.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

claude_gmail_mcp-0.1.1-py3-none-any.whl (45.3 kB view details)

Uploaded Python 3

File details

Details for the file claude_gmail_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: claude_gmail_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 41.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.3

File hashes

Hashes for claude_gmail_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6b4f155e20bfd7b7e159ff100095e6846eaa805c655cc3c03f7e615b6509e339
MD5 2c610e42f74488a5f3a220b2ea5cc865
BLAKE2b-256 432168422cf1ce9497e3f4259ccb65dafb2ecf2184abffe080ad5bd53585057e

See more details on using hashes here.

File details

Details for the file claude_gmail_mcp-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for claude_gmail_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 75b03c340d90b1761877a3cdcdf58a0681313077630ee2a97078f9be2d88b26c
MD5 52711a7d29634ee6ccd05b021428fe9c
BLAKE2b-256 bc4b677b2ac1da7b5702bc1acc871ff601587024db0495a35e2f9dba30a71152

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page