
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
shinzo-labs/gmail-mcp は [https://github.com/shinzo-labs/gmail-mcp.] からインポートされた MCP サーバー候補です
概要
shinzo-labs/gmail-mcp は [https://github.com/shinzo-labs/gmail-mcp.] からインポートされた MCP サーバー候補です
概要(AI 翻訳)
Gmail MCP サーバー
Gmail API 用のモデルコンテキストプロトコル(MCP)サーバーの実装で、メール管理、送信、および検索のための標準化されたインターフェイスを提供します。
##特徴
- メッセージ、スレッド、ラベル、ドラフト、および設定を含む完全なGmail APIのカバレッジ -メールの送信、ドラフト、管理のサポート
- カスタマイズ可能な色と可視性の設定によるラベル管理
- 会話管理のためのスレッド操作
- 休暇対応者、IMAP/POP、言語設定を含む設定管理
- メールボックスの変更のための履歴追跡
- Google Cloud 認証情報を使用して OAuth2 認証をセキュアに
前提条件
依存関係
最も簡単なインストールでは、Node.js 18 +をインストールします。 ローカルでビルドしたい場合、pnpm をインストールする必要があります。
##Googleワークスペースセットアップ
この MCP サーバーを実行するには、組織の Google API クライアントを設定する必要があります。各ユーザーは独自の OAuth リフレッシュ トークンを取得するためにスクリプトを実行します。
Google API クライアント設定 (組織ごとにオンス)
1。 Googleクラウドコンソールに移動します。 2. 新規プロジェクトを作成するか、既存のプロジェクトを選択します。 3. プロジェクトの Gmail API を有効にします。 4.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
A Model Context Protocol (MCP) server implementation for the Gmail API, providing a standardized interface for email management, sending, and retrieval.
Features
- Complete Gmail API coverage including messages, threads, labels, drafts, and settings
- Support for sending, drafting, and managing emails
- Label management with customizable colors and visibility settings
- Thread operations for conversation management
- Settings management including vacation responder, IMAP/POP, and language settings
- History tracking for mailbox changes
- Secure OAuth2 authentication using Google Cloud credentials
Prerequisites
Dependencies
For simplest installation, install Node.js 18+. If you would like to build locally, you will also need to install pnpm.
Google Workspace Setup
To run this MCP server, you will need to set up a Google API Client for your organization, with each user running a script to retrieve their own OAuth refresh token.
Google API Client Setup (once per organization)
- Go to the Google Cloud Console.
- Create a new project or select an existing one.
- Enable the Gmail API for your project.
- Go to Credentials and create an OAuth 2.0 Client ID. Choose “Desktop app” for the client type.
- Download and save the OAuth keys JSON as
~/.gmail-mcp/gcp-oauth.keys.json. ⚠️ NOTE: to create~/.gmail-mcp/through MacOS’s Finder app you need to enable hidden files first. - (Optional) For remote server installation (ex. using Smithery CLI), note the
CLIENT_IDandCLIENT_SECRETfrom this file.
インストール
npx @shinzolabs/gmail-mcp設定
{
"mcpServers": {
"gmail": {
"command": "npx",
"args": [
"@shinzolabs/gmail-mcp"
]
}
}
}