Google MCP - Model Context Protocol (MCP) Serverのロゴ

Google MCP - Model Context Protocol (MCP) Server

コミュニティ
nguyenvanduocit

The Model Context Protocol (MCP) implementation in Google MCP enables AI models to interact with Google services through a standardized interface.

公開者nguyenvanduocit
リポジトリgoogle-mcp
言語Go
フォーク
3
スター
20
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    Google MCP - Model Context Protocol (MCP) Serverは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 利用可能なツール(0個)

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースプロジェクトの注目度

    リンク先のリポジトリには20件のスターと3件のフォークがあります。

Google MCP - Model Context Protocol (MCP) Server

The Model Context Protocol (MCP) implementation in Google MCP enables AI models to interact with Google services through a standardized interface.

Prerequisites

  • Go 1.23.2 or higher
  • Google Cloud Platform account with the following APIs enabled:
    • Google Calendar API
    • Gmail API
    • Google Chat API
  • Google Cloud credentials (OAuth 2.0 Client ID)

Installation

Installing via Go

  1. Install the server:
bash
go install github.com/nguyenvanduocit/google-mcp@latest
  1. Create a .env file with your configuration:
env
# Required for Google Services
GOOGLE_CREDENTIALS_FILE=  # Required: Path to Google Cloud credentials JSON file
GOOGLE_TOKEN_FILE=       # Required: Path to store Google OAuth tokens

# Optional configurations
ENABLE_TOOLS=           # Optional: Comma-separated list of tool groups to enable (empty = all enabled)
PROXY_URL=             # Optional: HTTP/HTTPS proxy URL if needed

https://developers.google.com/workspace/chat/authenticate-authorize-chat-user

  1. Configure your Claude's config:
json
{
  "mcpServers": {
    "google_mcp": {
      "command": "google-mcp",
      "args": ["-env", "/path/to/.env"]
    }
  }
}

Enable Tools

The ENABLE_TOOLS environment variable is a comma-separated list of tool groups to enable. Available groups are:

  • calendar - Google Calendar tools
  • gmail - Gmail tools
  • gchat - Google Chat tools

Leave it empty to enable all tools.

Available Tools

Group: calendar

calendar_create_event

Create a new event in Google Calendar with title, description, time, and attendees.

calendar_list_events

List upcoming events in Google Calendar with customizable time range and result limit.

calendar_update_event

Update an existing event's details including title, description, time, and attendees.

calendar_respond_to_event

Respond to an event invitation (accept, decline, or tentative).

Group: gchat

gchat_list_spaces

List all available Google Chat spaces/rooms.

gchat_send_message

Send a message to a Google Chat space or direct message.

Group: gmail

gmail_search

Search emails in Gmail using Gmail's search syntax.

gmail_move_to_spam

Move specific emails to spam folder in Gmail by message IDs.

gmail_create_filter

Create a Gmail filter with specified criteria and actions:

  • Filter by sender, recipient, subject, or custom query
  • Add labels
  • Mark as important
  • Mark as read
  • Archive messages

gmail_list_filters

List all Gmail filters in the account.

gmail_list_labels

List all Gmail labels in the account.

gmail_delete_filter

Delete a Gmail filter by its ID.

gmail_delete_label

Delete a Gmail label by its ID.

CLI Usage

In addition to the MCP server, google-mcp ships a standalone CLI binary (google-cli) for direct terminal use — no MCP client needed.

Installation

bash
just install-cli
# or
go install github.com/nguyenvanduocit/google-mcp/cmd/google-cli@latest

Quick Start

bash
export GOOGLE_AI_API_KEY=your-api-key
# or
google-cli --env .env <command> [flags]

Commands

CommandDescription
list-eventsList Google Calendar events
create-eventCreate a calendar event
update-eventUpdate a calendar event
list-emailsList Gmail emails
send-emailSend an email via Gmail
get-emailGet email details
send-chat-messageSend a Google Chat message
list-chat-spacesList Chat spaces
search-youtubeSearch YouTube videos
get-video-detailsGet YouTube video details

Examples

bash
# List calendar events
google-cli list-events --calendar-id primary

# Send an email
google-cli send-email --to recipient@example.com --subject "Hello" --body "World"

# Search YouTube
google-cli search-youtube --query "Go programming"

# JSON output
google-cli list-emails --output json | jq '.[].subject'

Flags

Every command accepts:

  • --env string — Path to .env file
  • --output string — Output format: text (default) or json

License

This project is licensed under the MIT License. See LICENSE for details.

Installation

Homebrew (macOS/Linux)

bash
brew install nguyenvanduocit/tap/google-mcp

インストール

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "nguyenvanduocit-google-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "google-mcp"
      ]
    }
  }
}

Google MCP - Model Context Protocol (MCP) ServerのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Google MCP - Model Context Protocol (MCP) Serverに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」→「詳細設定」→「Model Context Protocol」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「Model Context Protocol」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Google MCP - Model Context Protocol (MCP) Serverをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Google MCP - Model Context Protocol (MCP) ServerのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタのステータスが「準備完了」のままか確認するには、画面を更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "nguyenvanduocit-google-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "google-mcp"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてGoogle MCP - Model Context Protocol (MCP) ServerのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Google MCP - Model Context Protocol (MCP) ServerのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Google MCP - Model Context Protocol (MCP) Serverを使ってこのタスクを手伝ってもらえますか?
Google MCP - Model Context Protocol (MCP) Server
はい、読みました。
Google MCP - Model Context Protocol (MCP) Serverで調べた結果をお伝えします。

よくある質問

Google MCP - Model Context Protocol (MCP) Server MCPサーバーは何に使いますか?

Google MCP - Model Context Protocol (MCP) Serverは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでは、複数のAIモデルでGoogle MCP - Model Context Protocol (MCP) Server MCPを利用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでGoogle MCP - Model Context Protocol (MCP) Serverを利用できます。

TypingMindでGoogle MCP - Model Context Protocol (MCP) Server MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けのトップクラスのフロントエンドです。Google MCP - Model Context Protocol (MCP) Serverを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Google MCP - Model Context Protocol (MCP) Server MCPをTypingMindに接続するにはどうすればよいですか?

Google MCP - Model Context Protocol (MCP) ServerはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでGoogle MCP - Model Context Protocol (MCP) Server MCPのどのようなツールを利用できますか?

Google MCP - Model Context Protocol (MCP) ServerはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Google MCP - Model Context Protocol (MCP) Server MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Google MCP - Model Context Protocol (MCP) Serverで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇