Gmail MCP
Gmail MCP
Claude が Gmail アカウントからメールを検索して取得できるようにします。
設定
1. Google API認証情報を取得する
Google Cloud Consoleにアクセスする
新しいプロジェクトを作成するか、既存のプロジェクトを選択してください
プロジェクトで Gmail API を有効にする
「APIとサービス」>「ライブラリ」に移動します
「Gmail API」を検索して有効にします
OAuth 資格情報を作成します。
「APIとサービス」>「認証情報」に移動します
「認証情報を作成」>「OAuthクライアントID」をクリックします
アプリケーションの種類として「デスクトップアプリケーション」を選択します
クライアントに名前を付けて「作成」をクリックします
資格情報JSONファイルをダウンロードする
プロジェクトディレクトリに
credentials.jsonとして保存します。
2. アプリケーションを承認する
認証コマンドを実行してトークンを生成します。
uv run gmail-mcp auth --creds-path credentials.json --token-path token.jsonブラウザウィンドウが開きますので、Googleアカウントにログインして必要な権限を付与してください。権限付与後、プロジェクトディレクトリにtoken.jsonファイルが作成されます。
Related MCP server: Gmail MCP Server
クロードとの設定
Claude 構成ファイルに Gmail MCP サーバーを追加します。
{
"mcpServers": {
"gmail": {
"args": [
"--from",
"git+https://github.com/vinayak-mehta/gmail-mcp",
"gmail-mcp"
],
"command": "/Users/username/.local/bin/uvx",
"env": {
"GMAIL_CREDS_PATH": "/Users/username/path/to/gmail-mcp/credentials.json",
"GMAIL_TOKEN_PATH": "/Users/username/path/to/gmail-mcp/token.json"
}
}
}
}必ず次の点に注意してください:
/Users/username/path/to/gmail-mcpを実際のプロジェクトパスに置き換えます。インストールした
uvx実行ファイルへのcommandパスを調整しますcredentials.jsonおよびtoken.jsonファイルへの正しいパスを指定します
クロードは次のツールにアクセスできるようになります。
1. メールを検索する
Gmail アカウントでメールを検索します。
例のプロンプト: 「 example@gmail.comからのすべてのメールを検索」
2. メールの内容を取得する
特定の電子メールの全内容を取得します。
プロンプトの例: 「「明日の会議」という件名のメールの全内容を表示してください」
3. メッセージの一覧
Gmail の受信トレイから最近のメッセージを一覧表示します。
例のプロンプト: 「最近のメール 5 件をリストしてください」
環境変数
環境変数を使用して、資格情報とトークン ファイルへのパスを設定できます。
GMAIL_CREDS_PATH: credentials.json ファイルへのパスGMAIL_TOKEN_PATH: token.json ファイルへのパス
簡単に構成できるように、これらの変数を含む.envファイルをプロジェクト ルートに作成します。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceServer for Gmail integration in Claude Desktop with auto authentication support. This server enables AI assistants to manage Gmail through natural language interactions.26,6781,165MIT
- AlicenseNot gradedqualityDmaintenanceAn integration server that provides Claude Desktop access to Gmail, enabling users to view recent emails and search their Gmail inbox using natural language commands.8MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables Claude AI to interact with Gmail, supporting email sending, reading, searching, labeling, draft management, and batch operations through natural language commands.2MIT
- -licenseNot gradedqualityNot gradedmaintenanceA Model Context Protocol server that enables Claude to interact with Gmail through a secure OAuth2 connection, providing email management capabilities like listing, sending, deleting, and organizing emails.
Related MCP Connectors
Manage Gmail end-to-end: search, read, send, draft, label, and organize threads. Automate workflow…
AI email inbox and sending tools with attachments, search, live events, and webhooks.
Manage Gmail messages, threads, labels, drafts, and settings from your workflows. Send and organiz…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/vinayak-mehta/gmail-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server