Gmail Plugin MCP Server
GmailプラグインMCPサーバー
Gmailとの連携を可能にする強力なMCPサーバー。MCPクライアントから直接メールを管理できます。このプラグインは、メールの閲覧、送信、管理など、Gmailのコア機能にシームレスにアクセスできるようにします。
参考: uvx を使用した MCP サーバーの実装のサンプルについては、この例を参照してください。
🎥 デモ
https://github.com/user-attachments/assets/df9e86cf-1f6b-4265-9c68-b3ed88103d1f
Related MCP server: mcp-gmail
✨ 特徴
📧 メールの送受信
📥 未読メッセージを読む
🗑️ ゴミ箱メール
📱 ブラウザでメールを開く
📝 メールを既読にする
🔒 安全なOAuth2認証
🚀 クイックスタート
前提条件
Python 3.12以上
Gmail API 認証情報
MCP クライアント (Claude Desktop など)
インストール
リポジトリをクローンします。
git clone https://github.com/yourusername/gmail-plugin.git
cd gmail-plugin依存関係をインストールします (1 つの方法を選択):
# Method 1: Install in editable mode
uv pip install -e .
# Method 2: Install using requirements.txt
uv pip install -r requirements.txt
# Method 3: Install using uv sync (recommended)
uv sync --dev --all-extrasGmail API の資格情報を設定します。
新しいプロジェクトを作成するか、既存のプロジェクトを選択してください
Gmail APIを有効にする
OAuth 同意画面を設定します。
「外部」ユーザータイプを選択(公開は不要)
オーディエンスタブに移動して、「テストユーザー」としてメールアドレスを追加します
OAuth スコープの追加:
https://www.googleapis.com/auth/gmail/modify
OAuth 2.0 認証情報を作成します。
アプリケーションの種類として「デスクトップアプリ」を選択します
JSON認証情報ファイルをダウンロードする
資格情報ファイルを保存し、その絶対パスをメモします(
--creds-file-pathで使用されます)。
構成
開発/未公開サーバー向け
MCP クライアント構成に以下を追加します。
"mcpServers": {
"gmail-plugin": {
"command": "uv",
"args": [
"--directory",
"[absolute path to working directory]",
"run",
"server.py"
"--creds-file-path",
"[absolute-path-to-credentials-file]",
"--token-path",
"[absolute-path-to-access-tokens-file]"
]
}
}公開サーバーの場合
"mcpServers": {
"gmail-plugin": {
"command": "uvx",
"args": [
"gmail-plugin"
]
}
}🛠️ 開発
建築と出版
同期の依存関係:
uv syncビルドパッケージ:
uv buildPyPI に公開:
uv publishデバッグ
デバッグにはMCP インスペクタを使用します。
npx @modelcontextprotocol/inspector uv --directory C:\Users\sanch\Desktop\gmail_plugin\gmail-plugin run gmail-plugin📚 APIリファレンス
利用可能なツール
ツール名 | 説明 | 必須引数 |
| メールを送信 | 受信者ID、件名、メッセージ |
| 未読メールを取得する | なし |
| メールの内容を読む | メールID |
| メールをゴミ箱に移動する | メールID |
| メールを既読にする | メールID |
| ブラウザでメールを開く | メールID |
利用可能なプロンプト
プロンプト名 | 説明 | 議論 |
| メール管理者として行動する | なし |
| 新しいメールを作成する | コンテンツ、受信者、受信者のメール |
| 既存のメールの下書きを編集する | 変更、現在のドラフト |
🤝 貢献する
貢献を歓迎します!お気軽にプルリクエストを送信してください。
📄 ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細についてはLICENSEファイルを参照してください。
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 gradedqualityDmaintenanceMCP server that integrates with Gmail to enable sending, reading, and managing emails through tools like send-email, trash-email, get-unread-emails, and read-email.73GPL 3.0
- AlicenseBqualityFmaintenanceMCP server that connects Claude with Gmail to read, send, delete, and manage messages and labels via the Google Gmail API.3MIT
- AlicenseAqualityDmaintenanceA Gmail MCP server that enables Claude to send, search, and read emails using either Gmail API or SMTP/IMAP backend.3MIT
- AlicenseNot gradedqualityCmaintenanceA secure MCP server that enables Claude to read, search, send, reply, forward, and manage Gmail messages and labels through natural language commands.1921MIT
Related MCP Connectors
Read, search, send, organize, draft and schedule email across your inboxes from any MCP client.
Hosted email MCP for AI agents with inboxes, send/receive, memory, recovery, and credits.
Shipmail MCP server for AI agent custom-domain email inboxes with REST API and webhooks.
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/sanchisingh01/MCP-Server---Gmail-Plugin-for-Claude-Desktop'
If you have feedback or need assistance with the MCP directory API, please join our Discord server