Gmail SMTP MCP server for Claude CLI
Project description
claude-gmail-mcp
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
- uv installed
- A Gmail account with a generated App Password
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92fe517d0a11338ea21e28f5f45b6918c733e967385a0841fa31b7784c566417
|
|
| MD5 |
9bdfb92588c3b08cb9dac0f0c5e8b102
|
|
| BLAKE2b-256 |
1b09724c509dc230b753ab63a1cdece6291941d5a13e1d6168b4d029dd1d488f
|
File details
Details for the file claude_gmail_mcp-0.1.2-py3-none-any.whl.
File metadata
- Download URL: claude_gmail_mcp-0.1.2-py3-none-any.whl
- Upload date:
- Size: 54.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b73fbc4f91210e91bea48857d981f551c135f776f882b5767d8764bdb145c44
|
|
| MD5 |
9458fd19daa2b5d7b4a862cc45967d10
|
|
| BLAKE2b-256 |
6fddd9d02ba5e06707274a11700c3880e686cbebe6c0996449ad48b1b97aa351
|