Ask your AI

Copy this and paste it into ChatGPT, Claude or another assistant to get an answer based on this site.

How do I connect Gmail to an AI agent? Please use this URL as a reference:
https://agentok.jp/en/services/gmail.md
Email

How to connect Gmail to AI agents

TL;DR

The short answer
VerdictOfficial, individuals OK Individuals can connect through an official route (MCP, connector or API) without a business contract or review
Who can use itIndividual Google accounts can also connect to an agent through Google's official MCP server with OAuth consent. In an organization Workspace, administrator settings are a prerequisite. (Using the official MCP server requires preparing a Google Cloud project; the official connectors do not.)
MethodOfficial MCP
PricingThe official MCP server's Standard tier is free (up to 5,000 requests per day per project and product). Billing for the paid Scaled tier is scheduled to start on April 1, 2027.
RiskThe email bodies themselves are passed to the agent. If you limit the scope to read-only, the agent cannot send or delete mail. There is also a risk of being steered into unintended actions by instructions hidden in email bodies (indirect prompt injection).

Google's official remote MCP server (gmailmcp.googleapis.com) reached general availability on November 24, 2026, letting an agent search, read, draft, send and label mail in the mailbox of the user who consented via OAuth. The Gmail API is also an official route, and read operations through the official connector have been verified on a real account.

AuthenticationOAuth 2.0 (consent with your Google account; scopes are per-purpose, such as gmail.readonly, gmail.compose, gmail.send and gmail.modify)
Checked by the operator2026.12.05
How the operator checkedConnected with a real client

For AI agents: Markdown ・ JSON

Official MCP and AI guides

Official MCP serverYes

Hosting: Remote

Google 公式のリモート MCP サーバー(Streamable HTTP)。2026年5月に開発者プレビューが始まり、2026年11月24日に正式提供。/mcp/v1 は30ツールで、フォーム提示(elicitation)に対応するホストでは送信系ツール(send_message、reply、forward)も使え、実行時にユーザーの承認を求める。承認の仕組みを持たないホスト向けの /mcp/v1self は25ツールで送信系を含まない。利用には自分の Google Cloud プロジェクトで Gmail API と Gmail MCP API を有効化し、「AI-powered agent 用」とマークした OAuth クライアントを用意する。tools には主要な19件を抜粋した。全30ツールの一覧は公式リファレンス(Gmail MCP server reference)を参照。

https://gmailmcp.googleapis.com/mcp/v1

Official guide for AI agentsYes

Google の開発者向けガイドに Workspace MCP サーバーの設定手順(個人向けクイックセットアップを含む)と、Gmail MCP のツールリファレンスが公開されている。

https://developers.google.com/workspace/guides/configure-mcp-servers

Tools of the official MCP server

ToolTypeWhat it does
search_threadsReadGmail の検索構文でスレッドを検索
get_threadReadスレッド全体を取得
get_messageReadメッセージ1件を取得
list_draftsRead下書きの一覧
get_draftRead下書き1件を取得
list_labelsReadラベルの一覧
list_filtersReadフィルタの一覧
create_draftWrite下書きを作成
update_draftWrite下書きを更新
send_messageWrite新規メールを送信(/mcp/v1 のみ。ホスト側の承認が前提)
replyWrite返信(/mcp/v1 のみ)
forwardWrite転送(/mcp/v1 のみ)
label_messageWriteメッセージにラベルを付与
unlabel_messageWriteメッセージのラベルを除去
create_labelWriteラベルを作成
create_filterWriteフィルタを作成
trash_messageWriteメッセージをゴミ箱へ移動
untrash_messageWriteゴミ箱から戻す
mark_message_spamWrite迷惑メールとして報告

Connectors

Official connectors from AI services

  • Claude

    Anthropic 公式の Gmail コネクタが提供されている。Google 公式 MCP サーバーをカスタムコネクタとして追加することもできる(Pro / Max / Team / Enterprise)。

  • ChatGPT

    OpenAI 公式の Gmail アプリがあるほか、Google 公式 MCP サーバーをカスタムアプリとして追加できる。

  • Gemini

    Google の自社サービスとして、Gemini のアプリ連携から Gmail を参照できる。

  • Microsoft Copilot

    個人向け Microsoft Copilot のコネクタで Gmail に接続できる(Microsoft サポート公式)。組織向けの Microsoft 365 Copilot でも、フェデレーテッドコネクタとして Gmail が提供されている

Third-party integration services

  • Zapier

    Gmail アプリがあり、新着メールや添付ファイルをトリガーに、送信・下書き作成・ラベル操作などのアクションが使える。

  • Make

    Gmail(Google Email)モジュールがあり、監視・取得・送信・下書きなどが使える。

  • n8n

    Gmail ノードがあり、検索・取得・送信・ラベル操作などが使える。

  • Power Automate

    Gmail コネクタがあり、新着メールをトリガーに送信やフラグ操作などが使える。

  • IFTTT

    Gmail サービスがあり、新着メールをきっかけにした Applet が組める。

  • Pipedream

    Gmail アプリがあり、検索・取得・送信などのアクションが使える。

  • Composio

    Gmail ツールキットがあり、エージェント向けに検索・送信などのツールを提供する。

  • Yoom

    Gmail 連携があり、メール受信をきっかけにした自動化が組める。

Security assessment

For each available connection method: who provides it, the permissions it requires, how the terms treat it, and the data path. Items we could not confirm are marked Unverified.

Official MCPOfficial MCP serverThe service provider
Permissions requiredRead and write

OAuth のスコープで制御する。gmail.readonly は検索・閲覧のみ、gmail.compose は下書き、gmail.send は送信、gmail.modify はラベルや既読状態の変更までを許可する

Terms of serviceNo issues

Google 公式の OAuth 連携で動き、権限はスコープ単位で同意する。

Source: relevant section of the terms

Data pathGoogle のサーバー上で処理され、取得したメールの内容は MCP クライアント経由で利用中の AI サービスに渡る
Official connectorClaudeOfficial from the integration service
Permissions requiredRead and write

OAuth のスコープで制御する。gmail.readonly は検索・閲覧のみ、gmail.compose は下書き、gmail.send は送信、gmail.modify はラベルや既読状態の変更までを許可する

Terms of serviceNo issues

Google 公式の OAuth 連携で動き、権限はスコープ単位で同意する。

Source: relevant section of the terms

Data pathGoogle のサーバー上で処理され、取得したメールの内容は MCP クライアント経由で利用中の AI サービスに渡る
Official connectorChatGPTOfficial from the integration service
Permissions requiredRead and write

OAuth のスコープで制御する。gmail.readonly は検索・閲覧のみ、gmail.compose は下書き、gmail.send は送信、gmail.modify はラベルや既読状態の変更までを許可する

Terms of serviceNo issues

Google 公式の OAuth 連携で動き、権限はスコープ単位で同意する。

Source: relevant section of the terms

Data pathGoogle のサーバー上で処理され、取得したメールの内容は MCP クライアント経由で利用中の AI サービスに渡る
Official connectorGeminiThe service provider
Permissions requiredRead and write

OAuth のスコープで制御する。gmail.readonly は検索・閲覧のみ、gmail.compose は下書き、gmail.send は送信、gmail.modify はラベルや既読状態の変更までを許可する

Terms of serviceNo issues

Google 公式の OAuth 連携で動き、権限はスコープ単位で同意する。

Source: relevant section of the terms

Data pathGoogle のサーバー上で処理され、取得したメールの内容は MCP クライアント経由で利用中の AI サービスに渡る
Official connectorMicrosoft CopilotOfficial from the integration service
Permissions requiredRead only

Microsoft 公式ギャラリーの説明では Gmail の検索・閲覧。個人向け Copilot のコネクタでも Google アカウントの同意で接続する

Terms of serviceNo issues

Microsoft 公式のコネクタで、Google アカウントの同意により接続する。Microsoft は接続先サービスのデータを Copilot の学習に使わないと説明している

Source: relevant section of the terms

Data pathCopilot 経由で Microsoft のサーバーに渡る
Third-party integrationZapierOfficial from the integration service
Permissions requiredRead and write

各サービスの OAuth 接続で許可した範囲。多くは検索・閲覧に加えて送信やラベル操作までを含む

Terms of serviceNo issues

Google 公式の OAuth 連携で動き、権限はスコープ単位で同意する。

Source: relevant section of the terms

Data pathメールの内容は各自動化サービスのサーバーを経由して処理される
Third-party integrationMakeOfficial from the integration service
Permissions requiredRead and write

各サービスの OAuth 接続で許可した範囲。多くは検索・閲覧に加えて送信やラベル操作までを含む

Terms of serviceNo issues

Google 公式の OAuth 連携で動き、権限はスコープ単位で同意する。

Source: relevant section of the terms

Data pathメールの内容は各自動化サービスのサーバーを経由して処理される
Third-party integrationn8nOfficial from the integration service
Permissions requiredRead and write

各サービスの OAuth 接続で許可した範囲。多くは検索・閲覧に加えて送信やラベル操作までを含む

Terms of serviceNo issues

Google 公式の OAuth 連携で動き、権限はスコープ単位で同意する。

Source: relevant section of the terms

Data pathメールの内容は各自動化サービスのサーバーを経由して処理される
Third-party integrationPower AutomateOfficial from the integration service
Permissions requiredRead and write

各サービスの OAuth 接続で許可した範囲。多くは検索・閲覧に加えて送信やラベル操作までを含む

Terms of serviceNo issues

Google 公式の OAuth 連携で動き、権限はスコープ単位で同意する。

Source: relevant section of the terms

Data pathメールの内容は各自動化サービスのサーバーを経由して処理される
Third-party integrationIFTTTOfficial from the integration service
Permissions requiredRead and write

各サービスの OAuth 接続で許可した範囲。多くは検索・閲覧に加えて送信やラベル操作までを含む

Terms of serviceNo issues

Google 公式の OAuth 連携で動き、権限はスコープ単位で同意する。

Source: relevant section of the terms

Data pathメールの内容は各自動化サービスのサーバーを経由して処理される
Third-party integrationPipedreamOfficial from the integration service
Permissions requiredRead and write

各サービスの OAuth 接続で許可した範囲。多くは検索・閲覧に加えて送信やラベル操作までを含む

Terms of serviceNo issues

Google 公式の OAuth 連携で動き、権限はスコープ単位で同意する。

Source: relevant section of the terms

Data pathメールの内容は各自動化サービスのサーバーを経由して処理される
Third-party integrationComposioOfficial from the integration service
Permissions requiredRead and write

各サービスの OAuth 接続で許可した範囲。多くは検索・閲覧に加えて送信やラベル操作までを含む

Terms of serviceNo issues

Google 公式の OAuth 連携で動き、権限はスコープ単位で同意する。

Source: relevant section of the terms

Data pathメールの内容は各自動化サービスのサーバーを経由して処理される
Third-party integrationYoomOfficial from the integration service
Permissions requiredRead and write

各サービスの OAuth 接続で許可した範囲。多くは検索・閲覧に加えて送信やラベル操作までを含む

Terms of serviceNo issues

Google 公式の OAuth 連携で動き、権限はスコープ単位で同意する。

Source: relevant section of the terms

Data pathメールの内容は各自動化サービスのサーバーを経由して処理される

Data you can fetch within the terms of service

対象は OAuth で同意した本人のメールボックス。Workspace 組織では管理者ポリシーや DLP ルールが MCP 経由のアクセスにも適用される

ScrapingNot stated in terms

Gmail API と公式 MCP サーバーは Google の公式インターフェイスで、スクレイピングは前提にない。gmail.readonly などは制限付きスコープで、不特定多数に公開するアプリは Google の審査(場合によりセキュリティ評価)の対象になる。個人が自分のアカウントにつなぐ用途はクイックセットアップで審査なしに始められるAPI の利用には Google APIs Terms of Service が適用され、同規約は API から取得したコンテンツのスクレイピングや恒久的なコピーの作成を禁じている。Workspace のデータにエージェントが触れる場合は Workspace AI Tools Addendum の制約も受ける。

Source: relevant section of the terms of service

Fetching with the agent's own browser

There is an official API or MCP server, so we do not recommend having an agent sign in and operate the site in a browser on your behalf.

Usage

How to connect

  1. Open the Google Cloud console quick setup (Personal mode onboarding), pick a project, and create an OAuth client for AI agents (this enables the Gmail API and the Gmail MCP API).
  2. Make sure "Use this client for an AI-powered agent" is selected on the OAuth client and that the redirect URI of the AI app you use is registered.
  3. Add the remote MCP server https://gmailmcp.googleapis.com/mcp/v1 to your AI app (such as Claude).
  4. Sign in with your Google account and approve the scopes on the consent screen (start with gmail.readonly only).
  5. First try a read-only request such as "search my unread emails" to check it works.

Setup examples

Paste these as they are. Replace the API key, domain and similar values with your own.

Claude Code(リモート MCP を追加)
claude mcp add --transport http gmail https://gmailmcp.googleapis.com/mcp/v1

前提として Google Cloud のクイックセットアップ(Personal mode onboarding)で、Gmail API と Gmail MCP API の有効化と、AI エージェント用 OAuth クライアント(Web application)の作成を済ませておく。追加後に Google アカウントでサインインして同意する初回接続時は Claude Code の /mcp コマンドから Google アカウントでサインインして同意する

Official page checked: https://developers.google.com/workspace/guides/configure-mcp-servers

Claude(カスタムコネクタ)
サーバー名: Gmail
リモート MCP サーバー URL: https://gmailmcp.googleapis.com/mcp/v1
OAuth クライアント ID: <クイックセットアップで作成したクライアント ID>
OAuth クライアント シークレット: <同じクライアントのシークレット>

OAuth クライアント側のリダイレクト URI には https://claude.ai/api/mcp/auth_callback を登録する。「Use this client for an AI-powered agent」が選択されていないクライアントは MCP サーバー側で拒否される

Official page checked: https://developers.google.com/workspace/guides/configure-mcp-servers

Limiting the features

読み取り専用に絞るスコープ設定(Google Cloud の同意画面)
https://www.googleapis.com/auth/gmail.readonly

同意画面のスコープを gmail.readonly だけにすると、エージェントは検索と閲覧だけができ、送信・下書き作成・削除はできない。下書き作成まで許可する場合のみ https://www.googleapis.com/auth/gmail.compose を追加する

Official page checked: https://developers.google.com/workspace/guides/configure-mcp-servers

Find invoice emails and summarize the key points

Instruction to the agent

Find the invoice emails from last month and list their amounts and payment due dates

The agent narrows down the matching emails with search_threads, reads them with get_message, and returns the amounts and due dates. This works with a read-only scope and involves no sending or deleting.

Pitfalls and tips

Pitfalls

  • If the OAuth client is not configured as "for an AI-powered agent", the MCP server rejects the connection (since November 2026, clients without the setting are locked out).
  • Access tokens expire after one hour. Unless you request offline access (refresh tokens), you will have to sign in again frequently.
  • To keep the agent from being steered by instructions embedded in email bodies (indirect prompt injection), do not add write scopes until you actually need them.
  • The official MCP tool set has kept changing since launch. Check the current list with tools/list before depending on specific tool names.

Tips

  • To try it quickly without Google Cloud setup, use an official connector in Claude, ChatGPT or Gemini — you can start with OAuth consent alone.
  • To strictly limit the scope to gmail.readonly, or to connect from your own client such as Claude Code, use the official MCP server, where you control the scopes on the Google Cloud side.
  • For routine automation triggered by incoming mail, the external integrations (Zapier, Make, n8n, Power Automate, Yoom) fit better because they can run on triggers.

Test environment and change history

How it was checkedConnected with a real client
Clients triedMuse(Gmail コネクタ) 未確認

本記事の執筆環境に接続済みの Gmail 公式コネクタ(Gmail API・OAuth 連携)で、プロフィール取得(メール総数・スレッド総数が返ること)と、検索クエリによる受信トレイの一覧取得ができることを実機で確認した。メール本文やアドレスなどの個人情報は記事に含めていない。Google 公式 MCP サーバー自体の接続は未実施で、そちらは公式ドキュメントで確認した。

Upcoming changes

Dated changes that affect this article. After each date we review the article and record it in the change history.

Change history

  • First edition.

Sources

Official and primary sources

Pages published by the service provider, the integration provider or the MCP author about their own product.

References (third-party write-ups)

Third-party blogs and roundups. We use them only to supplement facts confirmed in official sources.

Related articles

How to connect Google カレンダー to AI agents

Official, individuals OK

How to connect Spotify to AI agents

Official, individuals OK

How to connect Strava to AI agents

Business or paid only

How to connect YouTube to AI agents

Official, individuals OK