How to connect Gmail to AI agents
checked by the operator
TL;DR
| Verdict | Official, individuals OK Individuals can connect through an official route (MCP, connector or API) without a business contract or review |
|---|---|
| Who can use it | Individual 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.) |
| Method | Official MCP |
| Pricing | The 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. |
| Risk | The 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.
| Authentication | OAuth 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 operator | 2026.12.05 |
| How the operator checked | Connected with a real client |
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)を参照。
- 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
| Tool | Type | What it does |
|---|---|---|
search_threads | Read | Gmail の検索構文でスレッドを検索 |
get_thread | Read | スレッド全体を取得 |
get_message | Read | メッセージ1件を取得 |
list_drafts | Read | 下書きの一覧 |
get_draft | Read | 下書き1件を取得 |
list_labels | Read | ラベルの一覧 |
list_filters | Read | フィルタの一覧 |
create_draft | Write | 下書きを作成 |
update_draft | Write | 下書きを更新 |
send_message | Write | 新規メールを送信(/mcp/v1 のみ。ホスト側の承認が前提) |
reply | Write | 返信(/mcp/v1 のみ) |
forward | Write | 転送(/mcp/v1 のみ) |
label_message | Write | メッセージにラベルを付与 |
unlabel_message | Write | メッセージのラベルを除去 |
create_label | Write | ラベルを作成 |
create_filter | Write | フィルタを作成 |
trash_message | Write | メッセージをゴミ箱へ移動 |
untrash_message | Write | ゴミ箱から戻す |
mark_message_spam | Write | 迷惑メールとして報告 |
Connectors
Official connectors from AI services
Anthropic 公式の Gmail コネクタが提供されている。Google 公式 MCP サーバーをカスタムコネクタとして追加することもできる(Pro / Max / Team / Enterprise)。
OpenAI 公式の Gmail アプリがあるほか、Google 公式 MCP サーバーをカスタムアプリとして追加できる。
Google の自社サービスとして、Gemini のアプリ連携から Gmail を参照できる。
個人向け Microsoft Copilot のコネクタで Gmail に接続できる(Microsoft サポート公式)。組織向けの Microsoft 365 Copilot でも、フェデレーテッドコネクタとして Gmail が提供されている
Third-party integration services
Gmail アプリがあり、新着メールや添付ファイルをトリガーに、送信・下書き作成・ラベル操作などのアクションが使える。
Gmail(Google Email)モジュールがあり、監視・取得・送信・下書きなどが使える。
Gmail ノードがあり、検索・取得・送信・ラベル操作などが使える。
Gmail コネクタがあり、新着メールをトリガーに送信やフラグ操作などが使える。
Gmail サービスがあり、新着メールをきっかけにした Applet が組める。
Gmail アプリがあり、検索・取得・送信などのアクションが使える。
Gmail ツールキットがあり、エージェント向けに検索・送信などのツールを提供する。
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 required Read and write OAuth のスコープで制御する。gmail.readonly は検索・閲覧のみ、gmail.compose は下書き、gmail.send は送信、gmail.modify はラベルや既読状態の変更までを許可する
Terms of service No issues Google 公式の OAuth 連携で動き、権限はスコープ単位で同意する。
Source: relevant section of the terms
Data path Google のサーバー上で処理され、取得したメールの内容は MCP クライアント経由で利用中の AI サービスに渡る - Official connectorClaudeOfficial from the integration service
Permissions required Read and write OAuth のスコープで制御する。gmail.readonly は検索・閲覧のみ、gmail.compose は下書き、gmail.send は送信、gmail.modify はラベルや既読状態の変更までを許可する
Terms of service No issues Google 公式の OAuth 連携で動き、権限はスコープ単位で同意する。
Source: relevant section of the terms
Data path Google のサーバー上で処理され、取得したメールの内容は MCP クライアント経由で利用中の AI サービスに渡る - Official connectorChatGPTOfficial from the integration service
Permissions required Read and write OAuth のスコープで制御する。gmail.readonly は検索・閲覧のみ、gmail.compose は下書き、gmail.send は送信、gmail.modify はラベルや既読状態の変更までを許可する
Terms of service No issues Google 公式の OAuth 連携で動き、権限はスコープ単位で同意する。
Source: relevant section of the terms
Data path Google のサーバー上で処理され、取得したメールの内容は MCP クライアント経由で利用中の AI サービスに渡る - Official connectorGeminiThe service provider
Permissions required Read and write OAuth のスコープで制御する。gmail.readonly は検索・閲覧のみ、gmail.compose は下書き、gmail.send は送信、gmail.modify はラベルや既読状態の変更までを許可する
Terms of service No issues Google 公式の OAuth 連携で動き、権限はスコープ単位で同意する。
Source: relevant section of the terms
Data path Google のサーバー上で処理され、取得したメールの内容は MCP クライアント経由で利用中の AI サービスに渡る - Official connectorMicrosoft CopilotOfficial from the integration service
Permissions required Read only Microsoft 公式ギャラリーの説明では Gmail の検索・閲覧。個人向け Copilot のコネクタでも Google アカウントの同意で接続する
Terms of service No issues Microsoft 公式のコネクタで、Google アカウントの同意により接続する。Microsoft は接続先サービスのデータを Copilot の学習に使わないと説明している
Source: relevant section of the terms
Data path Copilot 経由で Microsoft のサーバーに渡る - Third-party integrationZapierOfficial from the integration service
Permissions required Read and write 各サービスの OAuth 接続で許可した範囲。多くは検索・閲覧に加えて送信やラベル操作までを含む
Terms of service No issues Google 公式の OAuth 連携で動き、権限はスコープ単位で同意する。
Source: relevant section of the terms
Data path メールの内容は各自動化サービスのサーバーを経由して処理される - Third-party integrationMakeOfficial from the integration service
Permissions required Read and write 各サービスの OAuth 接続で許可した範囲。多くは検索・閲覧に加えて送信やラベル操作までを含む
Terms of service No issues Google 公式の OAuth 連携で動き、権限はスコープ単位で同意する。
Source: relevant section of the terms
Data path メールの内容は各自動化サービスのサーバーを経由して処理される - Third-party integrationn8nOfficial from the integration service
Permissions required Read and write 各サービスの OAuth 接続で許可した範囲。多くは検索・閲覧に加えて送信やラベル操作までを含む
Terms of service No issues Google 公式の OAuth 連携で動き、権限はスコープ単位で同意する。
Source: relevant section of the terms
Data path メールの内容は各自動化サービスのサーバーを経由して処理される - Third-party integrationPower AutomateOfficial from the integration service
Permissions required Read and write 各サービスの OAuth 接続で許可した範囲。多くは検索・閲覧に加えて送信やラベル操作までを含む
Terms of service No issues Google 公式の OAuth 連携で動き、権限はスコープ単位で同意する。
Source: relevant section of the terms
Data path メールの内容は各自動化サービスのサーバーを経由して処理される - Third-party integrationIFTTTOfficial from the integration service
Permissions required Read and write 各サービスの OAuth 接続で許可した範囲。多くは検索・閲覧に加えて送信やラベル操作までを含む
Terms of service No issues Google 公式の OAuth 連携で動き、権限はスコープ単位で同意する。
Source: relevant section of the terms
Data path メールの内容は各自動化サービスのサーバーを経由して処理される - Third-party integrationPipedreamOfficial from the integration service
Permissions required Read and write 各サービスの OAuth 接続で許可した範囲。多くは検索・閲覧に加えて送信やラベル操作までを含む
Terms of service No issues Google 公式の OAuth 連携で動き、権限はスコープ単位で同意する。
Source: relevant section of the terms
Data path メールの内容は各自動化サービスのサーバーを経由して処理される - Third-party integrationComposioOfficial from the integration service
Permissions required Read and write 各サービスの OAuth 接続で許可した範囲。多くは検索・閲覧に加えて送信やラベル操作までを含む
Terms of service No issues Google 公式の OAuth 連携で動き、権限はスコープ単位で同意する。
Source: relevant section of the terms
Data path メールの内容は各自動化サービスのサーバーを経由して処理される - Third-party integrationYoomOfficial from the integration service
Permissions required Read and write 各サービスの OAuth 接続で許可した範囲。多くは検索・閲覧に加えて送信やラベル操作までを含む
Terms of service No 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 の制約も受ける。
- 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
- 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).
- 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.
- Add the remote MCP server https://gmailmcp.googleapis.com/mcp/v1 to your AI app (such as Claude).
- Sign in with your Google account and approve the scopes on the consent screen (start with gmail.readonly only).
- 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 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
サーバー名: 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
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
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 checked | Connected with a real client |
|---|---|
| Clients tried | Muse(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.
- AI agents accessing Workspace data will be required to use the official MCP servers or the official CLI, and technical enforcement against direct REST API calls begins (Workspace AI Tools Addendum).
- Request-based billing for the official MCP servers' paid Scaled tier is scheduled to start.
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.
- Configure the Google Workspace MCP servers (Google for Developers)How to configure the official MCP servers, the quick setup, and the requirements for AI-agent OAuth clients and scopes., checked 2026.12.05
- Gmail MCP server reference (Google for Developers)The official reference for the MCP server's tool list (30 tools), cited by various guides., checked 2026.12.05
- Gmail Integrations (Zapier)The triggers and actions of Zapier's Gmail app., checked 2026.12.05
- Gmail MCP server (official endpoint)The connection URL of the official MCP server., checked 2026.12.05
- Claude connectors directoryLists Anthropic's official Gmail connector., checked 2026.12.05
- Gemini app integrationsThe entry point for referencing Gmail from Gemini., checked 2026.12.05
- Gmail integration (Make)Make's Gmail (Google Email) module., checked 2026.12.05
- Gmail node (n8n)n8n's Gmail node., checked 2026.12.05
- Gmail connector (Microsoft Learn)Documentation for Power Automate's Gmail connector., checked 2026.12.05
- Gmail (IFTTT)IFTTT's Gmail service., checked 2026.12.05
- Gmail app (Pipedream)Pipedream's Gmail app., checked 2026.12.05
- Gmail toolkit (Composio)Composio's Gmail toolkit., checked 2026.12.05
- Gmail integration (Yoom)Yoom's Gmail integration., checked 2026.12.05
- Google APIs Terms of Service (Google for Developers)The terms governing API use, including the prohibition on scraping content obtained through the APIs or creating permanent copies of it., checked 2026.12.05
- Connecting Microsoft Copilot to other services (Microsoft Support)Official explanation that personal Copilot can connect to Google services such as Gmail., checked 2026.12.05
References (third-party write-ups)
Third-party blogs and roundups. We use them only to supplement facts confirmed in official sources.
- Gmail MCP Server: Connect Claude to Gmail, MCP vs APIThe Gmail MCP endpoint, its tool set, and the review of restricted scopes., checked 2026.12.05
- Google Workspace MCP servers and CLIThe November 24, 2026 general availability, the Standard tier limit (5,000 requests/day), and when Scaled tier billing starts., checked 2026.12.05
- Google Workspace MCP: Gmail & Drive GuideThe policy that, from February 1, 2027, agents must go through the MCP servers or the CLI., checked 2026.12.05
