Sponsor Suno AI Music arrow_forward
Plugin

Gmail

Gmail integration with multi-account support - read, search, send, and manage emails

Type
Plugin
GitHub stars
827
License
MIT
Repo last updated
Apr 20, 2026
Version
1.0.0

What Gmail is

Gmail is a plugin published in the team-attention/plugins-for-claude-natives repository on GitHub, which has about 827 stars. The repository describes itself as: “Claude Code plugins for power users”

A plugin is a package that bundles skills, slash commands, subagents, hooks, and MCP connectors so they install together. Plugins are plain files with a manifest at .claude-plugin/plugin.json, and they work in both Claude Code and Claude Cowork.

Installing Gmail adds everything it ships in one step. Connectors inside a plugin still need to be connected separately, and hooks and subagents only run in Cowork and Claude Code, not in regular chat.

How to install Gmail

Claude Code

  1. Add the repository as a plugin marketplace: claude plugin marketplace add team-attention/plugins-for-claude-natives
  2. Install the plugin: claude plugin install gmail@<marketplace-name>, using the marketplace name from the repository's .claude-plugin/marketplace.json.
  3. Restart the session if the new skills or commands don't appear straight away.

Claude Cowork

  1. Open Customize → Plugins and choose Add marketplace.
  2. Enter team-attention/plugins-for-claude-natives (the owner/repo shorthand works for GitHub).
  3. Find Gmail in the list, click Install, then connect any connectors it needs from its Connectors tab.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/gmail/.claude-plugin/plugin.json, shared under the repository's MIT license. Read the full file on GitHub.

A comprehensive Gmail integration plugin for Claude Code that enables multi-account email management through the Gmail API. Read, search, send, and organize emails directly from your Claude Code sessions.

Overview

The Gmail plugin provides a complete email management solution for Claude Code, supporting multiple Google accounts with features including:

  • Multi-Account Support: Manage personal, work, and project-specific Gmail accounts
  • Full Email Operations: List, read, send, reply, and organize emails
  • Smart Caching: Local caching for optimized API usage
  • Rate Limiting: Built-in quota management to prevent API throttling
  • Batch Operations: Efficient bulk operations for label management and cleanup
  • 5-Step Sending Workflow: Structured email composition with test sends and user confirmation

Features

Core Email Operations

  • List and search emails with Gmail's powerful query syntax
  • Read individual messages and entire threads
  • Send new emails with plain text or HTML content
  • Reply to existing conversations
  • Attach files to outgoing emails
  • Save emails as drafts

Organization & Management

  • Create, update, and delete labels
  • Mark messages as read/unread
  • Star/unstar messages
  • Archive and trash messages
  • Batch modify labels across multiple messages

Advanced Features

  • Local Caching: Reduces API calls by caching message lists and content
  • Quota Management: Tracks usage against Gmail API limits (250 units/second)
  • Exponential Backoff: Automatic retry with intelligent delays for rate limiting
  • Batch Processing: Efficient bulk operations for high-volume tasks

Prerequisites

Before using this plugin, you need:

  1. Python 3.10+ with uv package manager
  2. Google Cloud Project with Gmail API enabled
  3. OAuth 2.0 credentials (Desktop application type)

Required Google OAuth Scopes

  • gmail.modify - Read, modify, and delete emails
  • gmail.send - Send emails on behalf of the user
  • gmail.labels - Manage email labels

Setup Guide

Step 1: Create Google Cloud Project

  1. Go to Google Cloud Console
  2. Click the project selector at the top and select "New Project"
  3. Enter a project name (e.g., gmail-skill) and click "Create"

Step 2: Enable Gmail API

  1. Navigate to "APIs & Services" > "Library" in the left menu
  2. Search for "Gmail API"
  3. Click the "Enable" button

Step 3: Configure OAuth Consent Screen

  1. Go to "APIs & Services" > "OAuth consent screen"
  2. Select "External" for User Type and click "Create"
  3. Fill in the required fields:
  • App name: Gmail Skill
  • User support email: Your email address
  • Developer contact: Your email address
  1. Click "Save and Continue"
  2. Add the following scopes:
  • https://www.googleapis.com/auth/gmail.modify
  • https://www.googleapis.com/auth/gmail.send
  • https://www.googleapis.com/auth/gmail.labels
  1. Add your Gmail address as a test user
  2. Click "Save and Continue"

Step 4: Create OAuth Client ID

  1. Go to "APIs & Services" > "Credentials"
  2. Click "Create Credentials" > "OAuth client ID"
  3. Select "Desktop app" as the application type
  4. Enter a name (e.g., Gmail Skill Client)
  5. Click "Create"
  6. Download the JSON file

Step 5: Configure the Plugin

# Navigate to the skill directory
cd .claude/skills/gmail

# Move the downloaded credentials file
mv ~/Downloads/client_secret_*.json references/credentials.json

# Copy the default accounts configuration
cp assets/accounts.default.yaml accounts.yaml

# Edit accounts.yaml with your account information

Step 6: Authenticate Accounts

# Authenticate each account
uv run python scripts/setup_auth.py --account personal
uv run python scripts/setup_auth.py --account work

# Verify registered accounts
uv run python scripts/setup_auth.py --list

When the browser opens:

  1. Log in to your Google account
  2. If you see "This app isn't verified", click "Advanced" > "Continue"
  3. Approve all permission requests

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Gmail?

Gmail is a plugin for Claude Code and Claude Cowork from the team-attention/plugins-for-claude-natives repository on GitHub. Gmail integration with multi-account support - read, search, send, and manage emails

How do I install Gmail in Claude Code?

Add the repository as a plugin marketplace: claude plugin marketplace add team-attention/plugins-for-claude-natives Install the plugin: claude plugin install gmail@<marketplace-name>, using the marketplace name from the repository's .claude-plugin/marketplace.json. Restart the session if the new skills or commands don't appear straight away.

Can I use Gmail in Claude Cowork?

Open Customize → Plugins and choose Add marketplace. Enter team-attention/plugins-for-claude-natives (the owner/repo shorthand works for GitHub). Find Gmail in the list, click Install, then connect any connectors it needs from its Connectors tab.

Is Gmail safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.