Skip to main content
Glama

mcp-google

システムプロンプト-mcp-google

ウェブサイト|ドキュメント|ブログ

Google サービス(Gmail、Google カレンダーなど)を AI ワークフローに統合する専用の Model Context Protocol(MCP)サーバーです。このサーバーにより、MCP を介して Google サービスへのシームレスなアクセスが可能になり、AI エージェントが Gmail、Google カレンダー、その他の Google サービスと連携できるようになります。

デモ

デモ

YouTubeデモ

前提条件

このサーバーを使用する前に、次のものが必要です。

  1. Systemprompt API キー (無料):
    • systemprompt.io/consoleでサインアップ
    • 新しいAPIキーを作成する
    • サーバーを実行するために必要
  2. MCP 互換クライアントの例:
  3. Google Cloud プロジェクトのセットアップ:
    • Google Cloud アカウント
    • 必要なサービス(Gmail、カレンダーなど)への API アクセスが有効になっています
    • OAuth2 認証情報が設定されている

設定

1. Google Cloud のセットアップ

  1. Google Cloud Consoleでプロジェクトを作成する
  2. 必要な API を有効にします。
    • Gmail API(読み取り、送信、作成、変更、ラベル)
    • Google カレンダー API (イベントの読み取り)
    • Google ドライブ API (読み取り専用)
  3. OAuth2 資格情報を作成します。
    • 「APIとサービス」>「認証情報」に移動します
    • OAuth 2.0クライアントIDを作成する
    • 承認済みリダイレクト URI を設定する ( http://localhost:3333/oauth2callbackを含める)
    • 認証情報 JSON ファイルをダウンロードし、 credentials/google-credentials.jsonとして保存します。

2. サーバー構成

  1. パッケージをインストールします。
npm install systemprompt-mcp-google
  1. 資格情報ディレクトリを作成します。
mkdir -p credentials
  1. 認証スクリプトを実行します。
npm run auth-google

これにより、次のようになります。

  • Google OAuth認証用のデフォルトのブラウザを開きます
  • OAuthコールバックを処理するためにポート3333でローカルサーバーを起動します
  • トークンを生成し、 credentials/google-token.jsonに保存します。
  • 認証が完了すると自動的に閉じます

スクリプトは次の権限を要求します。

  • Gmail: ラベルの閲覧、送信、作成、変更、管理
  • カレンダー: イベントとカレンダーを読む
  • ドライブ: 読み取り専用アクセス

3. MCPクライアントのセットアップ

ご希望の MCP クライアントを選択してください:

Systemprompt MCPクライアントの使用
  1. セットアップ手順に従ってクライアントをインストールして構成します
  2. クライアントの MCP 構成に、次のサーバーを追加します。
{ "servers": { "google": { "type": "stdio", "command": "SYSTEMPROMPT_API_KEY=your_api_key npx systemprompt-mcp-google" } } }

注: your_api_keysystemprompt.io/consoleからの実際の Systemprompt API キーに置き換えます。

Claudeデスクトップの使用
  1. Claude Desktopをインストールする
  2. API キーを使用して、Claude の MCP 構成セクションにこのサーバーを追加します。
    { "command": "SYSTEMPROMPT_API_KEY=your_api_key npx systemprompt-mcp-google" }
  3. stdioモードを使用するように接続を構成する

特徴

Google サービス統合

  • Gmail統合
    • MCP コマンドを使用して電子メールを読み取り、送信する
    • 下書きと添付ファイルを管理する
    • メールの検索とフィルタリング
    • メールスレッドを処理する
  • カレンダー統合
    • MCP コマンドを使用してイベントを作成および管理する
    • イベント招待の取り扱い
    • カレンダーイベントの検索とフィルタリング
    • 複数のカレンダーを管理する

MCP統合

  • 標準MCPインターフェース
    • MCP準拠のクライアントと互換性あり
    • 構造化されたコマンド応答
    • エラー処理とステータスレポート
    • セッション管理

セキュリティと認証

  • 安全なOAuth2認証フロー
  • 自動トークン更新
  • さまざまなサービスへのスコープアクセス
  • 環境ベースの構成

開発機能

  • 完全なTypeScriptサポート
  • 包括的なエラー処理
  • 広範なテスト範囲
  • MCP互換インターフェース

構成

  1. Google Cloud プロジェクトと OAuth2 認証情報を設定します。
    • Google Cloud Consoleでプロジェクトを作成する
    • GmailとカレンダーAPIを有効にする
    • OAuth2認証情報を作成する
    • 資格情報ファイルをダウンロード
  2. 環境変数を設定します。
GOOGLE_CLIENT_ID=your_client_id GOOGLE_CLIENT_SECRET=your_client_secret GOOGLE_REDIRECT_URI=your_redirect_uri
  1. 認証スクリプトを実行します。
npm run auth-google

使用法

MCPクライアントを通じて

設定が完了すると、任意のMCPクライアントからこのサーバーにコマンドを送信できるようになります。インタラクションの例:

Gmailの操作
// Example MCP command structure for sending an email { "command": "gmail.sendEmail", "parameters": { "to": "recipient@example.com", "subject": "Hello from MCP", "body": "This email was sent via MCP!" } } // Example MCP command for listing messages { "command": "gmail.listMessages", "parameters": { "maxResults": 10 } }
カレンダー操作
// Example MCP command for creating an event { "command": "calendar.createEvent", "parameters": { "summary": "Team Meeting", "start": "2024-03-01T10:00:00", "end": "2024-03-01T11:00:00", "attendees": ["team@company.com"] } } // Example MCP command for listing events { "command": "calendar.listEvents", "parameters": { "timeMin": "2024-03-01T00:00:00Z", "maxResults": 10 } }

テスト

このプロジェクトには、MCP プロトコル処理と Google サービス統合の両方に関する包括的なテストが含まれています。

# Run all tests npm test # Watch mode for development npm run test:watch # Generate coverage report npm run test:coverage

MCP通信のデバッグ

MCP サーバーは stdio 経由で通信するため、デバッグには特別な考慮が必要です。

  1. MCP インスペクターを使用します。
npm run inspector
  1. デバッグ ログを有効にする:
# Set environment variable DEBUG=mcp:* npm run dev
  1. 提供されているテスト クライアントを使用します。
npm run test:client

ライセンス

マサチューセッツ工科大学

関連プロジェクト

発達

ローカル開発のセットアップ

  1. リポジトリをクローンします。
git clone https://github.com/yourusername/systemprompt-mcp-google.git cd systemprompt-mcp-google
  1. 依存関係をインストールします:
npm install
  1. 環境変数を設定します。
# Copy example environment file cp .env.example .env # Edit .env and add: SYSTEMPROMPT_API_KEY=your_api_key # Required - get from systemprompt.io/console
  1. Google 認証情報を設定します。
  • Google OAuth認証情報をcredentials/google-credentials.jsonとして保存します。
  • Googleで認証するには、 npm run auth-googleします。
  1. 開発サーバーを起動します:
npm run dev
-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Google サービス(Gmail、Google カレンダーなど)を AI ワークフローに統合する専用の Model Context Protocol(MCP)サーバーです。このサーバーにより、MCP を介して Google サービスへのシームレスなアクセスが可能になり、AI エージェントが Gmail、Google カレンダー、その他の Google サービスと連携できるようになります。

  1. デモ
    1. 前提条件
      1. 設定
        1. Google Cloud のセットアップ
        2. サーバー構成
        3. MCPクライアントのセットアップ
      2. 特徴
        1. Google サービス統合
        2. MCP統合
        3. セキュリティと認証
        4. 開発機能
        5. 構成
      3. 使用法
        1. MCPクライアントを通じて
        2. テスト
        3. MCP通信のデバッグ
      4. ライセンス
        1. 関連プロジェクト
          1. 発達
            1. ローカル開発のセットアップ

          Related MCP Servers

          • -
            security
            A
            license
            -
            quality
            Enables interaction with Gmail and Google Calendar using the MCP protocol, supporting multiple Google accounts, email management, and calendar operations through natural language.
            Last updated -
            5
            TypeScript
            MIT License
            • Apple
          • A
            security
            F
            license
            A
            quality
            An MCP (Model Context Protocol) server that provides Google search capabilities and webpage content analysis tools. This server enables AI models to perform Google searches and analyze webpage content programmatically.
            Last updated -
            3
            39
            52
            TypeScript
          • -
            security
            A
            license
            -
            quality
            A secure MCP (Model Context Protocol) server hosted on Google Cloud Run that enables team collaboration by providing authenticated access via Google Cloud IAM, allowing teams to share custom MCP servers over the internet before official MCP authentication is implemented.
            Last updated -
            16
            TypeScript
            MIT License
          • -
            security
            F
            license
            -
            quality
            A Model Context Protocol server that enables AI assistants to interact with Gmail services, supporting email operations, draft management, and calendar functionality through Google API integration.
            Last updated -
            TypeScript

          View all related MCP servers

          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/Ejb503/systemprompt-mcp-google'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server