Gmail MCP server for AI assistants

Gmail MCP server for AI assistants

gmail-mcp-ykuchiki•byykuchiki

An MCP server implementation that lets AI assistants interact with Gmail to send, read, search, and manage emails, drafts, labels, and filters.

License: MIT License•Runtime: Awaiting documentation review•Category: communication social

WHAT IT DOES

  • •Sends emails and creates drafts through Gmail.
  • •Reads, searches, and deletes emails.
  • •Manages Gmail labels and filters, including creating, updating, and deleting them.
  • •Authenticates with the Gmail API using OAuth2.0.

BEST FOR

  • •AI assistants that need to send and draft emails on a user's behalf.
  • •Workflows that search through an inbox and manage labels or filters.

ABOUT GMAIL-MCP-YKUCHIKI

Gmail MCP server for AI assistants is cataloged as an MCP server attributed to ykuchiki. An MCP server implementation that lets AI assistants interact with Gmail to send, read, search, and manage emails, drafts, labels, and filters. It is categorized under communication social. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Gmail MCP server for AI assistants are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does it support attachments when sending emails?

Yes, the Japanese documentation lists sending attachments with emails and drafts, specifying local file paths with a size limit around 24MB.

上游原版 README

在 GitHub 查看同一版本原文

README.md · a16a99387cbf · 采集于 2026-11-13 12:02:33 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Gmail MCP

Gmail MCP Logo

License Python Version MCP Compatible

Gmail API for AI assistants using Model Context Protocol
English | Español | 日本語


📋 English Documentation

Pull requests to this repository are welcome.

📖 Table of Contents

🔍 Overview

Gmail MCP is a server implementation that enables AI assistants to interact with Gmail through the MCP (Model Context Protocol). It provides tools for sending emails, managing drafts, reading emails, searching through your inbox, managing Gmail labels and manageing filters.

✨ Features

  • ✉️ Send emails and create drafts
  • 📬 Read and search emails
  • 🗑️ Delete emails
  • 🏷️ Manage Gmail labels (create, update, delete)
  • 🗂️ Manage Gmail filters (create, update, delete)
  • 🔐 OAuth2.0 authentication with Gmail API

📋 Prerequisites

  • Python 3.11 or higher
  • Gmail account
  • Google Cloud Platform project with Gmail API enabled
  • uv - Python package installer

🚀 Setup

  1. Clone this repository
git clone https://github.com/ykuchiki/gmail-mcp.git
cd gmail-mcp
  1. Create and activate a virtual environment
uv init
  1. Install dependencies
uv pip install -r requirements.txt
  1. Set up OAuth credentials

    • Create a directory named credentials in the root of the project
    • Create a project in Google Cloud Console
    • Enable the Gmail API
    • Create OAuth credentials
    • Add the following URI to the Authorized redirect URIs:
      http://localhost:8080/
      
    • Download the credentials JSON file and save it as credentials/client_secret_gmail_oauth.json
  2. Add MCP server Please refer to your MCP client's official documentation for specific instructions. Make sure to adjust the path according to your environment.

{
    "mcpServers": {
        "gmail-mcp": {
            "command": "uv",
            "args": [
                "--directory",
                "/path/to/your/gmail-mcp/src",
                "run",
                "main.py"
            ]
        }
    }
}
  1. Run the server
uv run main.py

💡 Usage

The server can be used with any MCP-compatible client. On first run, it will prompt you to authenticate with your Gmail account.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


📋 日本語ドキュメント

本リポジトリはpullリクエスト大歓迎です。

📖 目次

🔍 概要

Gmail MCPは、AIアシスタントがMCP(Model Context Protocol)を通じてGmailを使用できるようにするサーバー実装です。メールの送信、下書きの管理、メールの読み取り、受信トレイの検索、Gmailラベルの管理、フィルタの管理などのツールを提供します。

✨ 機能

  • ✉️ メールの送信と下書き作成
  • 📬 メールの読み取りと検索
  • 🗑️ メールの削除
  • 🏷️ Gmailラベルの管理(作成、更新、削除)
  • 🗂️ フィルタの管理(作成、更新、削除)
  • 🔐 Gmail APIとのOAuth2.0認証 - 📎 添付ファイル送信・下書き(複数可, ローカルファイルパス)

📋 前提条件

  • Python 3.11以上
  • Gmailアカウント
  • Gmail APIが有効化されたGoogle Cloud Platformプロジェクト
  • uv - Pythonパッケージインストーラー

🚀 セットアップ

  1. リポジトリをクローン
git clone https://github.com/ykuchiki/gmail-mcp.git
cd gmail-mcp
  1. 仮想環境の作成と有効化
uv init
  1. 依存関係のインストール
uv pip install -r requirements.txt
  1. OAuth認証情報の設定

    • 最初にプロジェクトのルートディレクトリ直下にcredentialsディレクトリを作成
    • Google Cloud Consoleでプロジェクトを作成
    • Gmail APIを有効化
    • OAuth認証情報を作成
    • 認証済みのリダイレクトURIに以下を追加:
      http://localhost:8080/
      
    • 認証情報JSONファイルをダウンロードし、credentials/client_secret_gmail_oauth.jsonとして保存
  2. MCPサーバーを追加 追加方法はご使用のMCPクライアントの公式ドキュメントをご確認ください。 また、パスは環境に合わせて修正してください。

{
    "mcpServers": {
        "gmail-mcp": {
            "command": "uv",
            "args": [
                "--directory",
                "/path/to/your/gmail-mcp/src",
                "run",
                "main.py"
            ]
        }
    }
}
  1. サーバーの実行
uv run main.py

💡 使用方法

このサーバーは、MCP互換のクライアントと共に使用できます。初回実行時には、Gmailアカウントで認証するよう促されます。

添付ファイルを付けて送信 / 下書き作成

attachments 引数でローカルファイルのパスを指定します(複数可・絶対パス推奨)。

例: 送信

{
  "to": ["someone@example.com"],
  "subject": "レポート送付の件",
  "body": "ご確認ください。",
  "attachments": [
    "/Users/you/Documents/report.pdf",
    "/Users/you/Pictures/logo.png"
  ]
}

例: 下書き作成

{
  "to": ["someone@example.com"],
  "subject": "資料",
  "body": "添付しています。",
  "attachments": ["/absolute/path/to/file.txt"]
}

注意事項:

  • 合計サイズは約24MBを上限とし、それを超える場合はエラーになります(Gmailの25MB制限に対する安全余裕)。
  • MIMEタイプは自動推定します。判別できない場合はapplication/octet-streamとして送信します。
  • ファイルが存在しない/読み取り不可の場合はエラーになります。

📄 ライセンス

このプロジェクトはMITライセンスの下で提供されています - 詳細はLICENSEファイルをご覧ください。


📋 Documentación en Español

Las pull requests a este repositorio son bienvenidas.

📖 Tabla de Contenidos

🔍 Descripción General

Gmail MCP es una implementación de servidor que permite a los asistentes de IA interactuar con Gmail a través del MCP (Model Context Protocol). Proporciona herramientas para enviar correos electrónicos, gestionar borradores, leer correos, buscar en tu bandeja de entrada y administrar etiquetas de Gmail.

✨ Características

  • ✉️ Enviar correos y crear borradores
  • 📬 Leer y buscar correos
  • 🗑️ Eliminar correos
  • 🏷️ Gestionar etiquetas de Gmail (crear, actualizar, eliminar)
  • 🔐 Autenticación OAuth2.0 con la API de Gmail

📋 Requisitos Previos

  • Python 3.11 o superior
  • Cuenta de Gmail
  • Proyecto en Google Cloud Platform con la API de Gmail habilitada
  • uv - Instalador de paquetes Python

🚀 Configuración

  1. Clonar este repositorio
git clone https://github.com/ykuchiki/gmail-mcp.git
cd gmail-mcp
  1. Crear y activar un entorno virtual
uv init
  1. Instalar dependencias
uv pip install -r requirements.txt
  1. Configurar credenciales OAuth

    • Crear un directorio llamado credentials en la raíz del proyecto
    • Crear un proyecto en Google Cloud Console
    • Habilitar la API de Gmail
    • Crear credenciales OAuth
    • Agregar la siguiente URI a las URIs de redirección autorizadas:
      http://localhost:8080/
      
    • Descargar el archivo JSON de credenciales y guardarlo como credentials/client_secret_gmail_oauth.json
  2. Agregar servidor MCP Por favor, consulta la documentación oficial de tu cliente MCP para instrucciones específicas. Asegúrate de ajustar la ruta según tu entorno.

{
    "mcpServers": {
        "gmail-mcp": {
            "command": "uv",
            "args": [
                "--directory",
                "/path/to/your/gmail-mcp/src",
                "run",
                "main.py"
            ]
        }
    }
}
  1. Ejecutar el servidor
uv run main.py

💡 Uso

El servidor puede ser utilizado con cualquier cliente compatible con MCP. En la primera ejecución, te pedirá que te autentiques con tu cuenta de Gmail.

📄 Licencia

Este proyecto está licenciado bajo la Licencia MIT - consulta el archivo LICENSE para más detalles.


TODO

  • 基本機能実装
  • search_emailsで送信メールIDは除外or違う方法で実装

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Gmail MCP server for AI assistants from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/gmail-mcp-ykuchiki)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related communication social MCP Servers

Alternative and complementary servers in the same category

View all in communication social →

An AI receptionist platform with an MCP server for accessing business calls, contacts and appointments from AI assistants.

52
Communication

Pidgeon provides an MCP server and an email inbox API that gives AI agents their own addresses for sending, awaiting, and replying to email.

Repository stats unavailable
Communication