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 (this will make it available to all projects):

claude mcp add gmail --scope user \
  -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 to only the current project directory:

claude mcp add gmail \
  -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
  • attachments - list of local file paths to attach (files that can't be read are skipped with a warning)

Example with an attachment:

Send an email to alice@example.com with subject "Report" and attach ~/Documents/report.pdf

Publishing to PyPI

python -m build && twine upload dist/*

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.2.tar.gz (47.5 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.2-py3-none-any.whl (54.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: claude_gmail_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 47.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for claude_gmail_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 92fe517d0a11338ea21e28f5f45b6918c733e967385a0841fa31b7784c566417
MD5 9bdfb92588c3b08cb9dac0f0c5e8b102
BLAKE2b-256 1b09724c509dc230b753ab63a1cdece6291941d5a13e1d6168b4d029dd1d488f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for claude_gmail_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8b73fbc4f91210e91bea48857d981f551c135f776f882b5767d8764bdb145c44
MD5 9458fd19daa2b5d7b4a862cc45967d10
BLAKE2b-256 6fddd9d02ba5e06707274a11700c3880e686cbebe6c0996449ad48b1b97aa351

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