Skip to main content
Glama
google-chat-mcp-server

google-chat-mcp-server

by tg-tool

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GOOGLE_CHAT_MCP_TOKENNoPath to the saved Google OAuth token file. Defaults to ~/.config/google-chat-mcp/token.json.
GOOGLE_CHAT_MCP_CREDENTIALSNoPath to the Google OAuth client credentials JSON file. Defaults to ~/.config/google-chat-mcp/credentials.json.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Google Chat を読み取り専用で読む MCP サーバー。送信・編集・削除・既読の変更はできない。まず list_spaces でスペースを確かめ、get_messages で読む。記録をとるときは get_messages の next_since を記録に残し、次回はそれを since に渡して続きから読む。get_unread の未読は利用者が画面で開くと消えるので、記録の起点には使わない。

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_spacesA

参加している Google Chat のスペース(スペース・グループチャット・DM)を、最近動いた順に一覧する。読み取り専用。

DM とグループチャットは相手の名前で表示する(例「DM: 山田 太郎」「グループ: 佐藤、鈴木」)。 last_active は人の最後の発言の時刻で、ボット・アプリの投稿では更新されない。 返り値の space(spaces/…)か名前を、ほかのツールの space 引数に渡す。

Args: space_type: "SPACE"・"GROUP_CHAT"・"DIRECT_MESSAGE" のどれかで絞る。 active_since: この時刻以降に動いたものだけ(例 "2026-11-01"、"2026-11-01T09:00"。時差なしは日本時間)。 name_contains: 名前の一部で絞る(全角半角・大文字小文字を区別しない)。 unread_only: True なら、利用者がチャットの画面でまだ開いていない発言があるスペースだけを、 last_read(既読の時刻)付きで返す。スペースごとに問い合わせるので少し時間がかかる。

get_messagesA

1つのスペースのメッセージを読む。読み取り専用で、既読にもしない。

since を渡すかどうかで、返り値と続きの読み方が変わる。

  • since あり(記録の続き): since より後のメッセージを、古い順に最大 limit 件返す。 has_more が true なら、まだ新しい分がある → 返り値の next_since をそのまま since に渡して続きを読む。

  • since なし(最新を見る): 最新の limit 件を、古い順に並べて返す。 has_older が true なら、それより古い分がある → 返り値の older_until をそのまま until に渡して読む (next_since を since に渡しても古い分は読めない)。

  • 記録をとるときは、最後の呼び出しの next_since を記録に残し、次回はそれをそのまま since に渡す。 next_since は小数秒まで正確な値なので、加工せずに渡せば重複も取りこぼしも無く続きから読める。

  • 同じ時刻のメッセージは途中で分けないため、limit を少し超えて返ることがある。

  • 各メッセージ: id・time(日本時間)・sender(名前)・sender_type(HUMAN / BOT)・text・thread。 該当するときだけ is_reply(返信)・edited(編集済み)・attachments(Drive のファイルは drive_file_id)。

Args: space: スペースの名前(一部でよい)・URL・ID(spaces/…)のどれか。DM は相手の名前で指定できる。 since: この時刻より後だけ(例 "2026-11-01"、"2026-11-01T09:00"、または前回の next_since)。 until: この時刻より前だけ(古い分を読むときは older_until を渡す)。 limit: 最大件数(既定 100、上限 500)。 thread: このスレッドだけを読む(メッセージの thread の値)。 include_bots: 既定 true(ボット・アプリの発言も含める)。false にすると除く。記録では既定のままにする。

search_messagesA

期間を区切って、キーワードでメッセージを探す。Google 側に検索の仕組みが無いため、取得して手元で照合する。

  • keywords は空白区切りで、すべての語を含むもの(AND)を探す。全角半角・大文字小文字は区別しない。 本文と添付ファイルの名前が対象。

  • spaces を省略すると、人の最後の発言が期間内にあるスペースを調べる(since の既定は 30日前)。 ボットだけが投稿するスペースは対象から外れるので、探すときは spaces で指定する。 調べなかったスペースの数は notes に書く。

  • 結果は新しい順。truncated が true なら件数上限や走査上限で打ち切っている(理由は truncated_reasons)。 その場合は期間や語で絞って探し直す。

Args: keywords: 探す語(空白区切り)。 spaces: 調べるスペースの名前・URL・ID のリスト。省略時は期間内に動いたスペースすべて。 since: この時刻より後だけ(既定は 30日前)。 until: この時刻より前だけ。 limit: 返すヒットの最大件数(既定 50)。

get_membersA

スペースの参加者(名前・メール・種類・役割)を返す。記録の「参加者」欄に使う。

Args: space: スペースの名前(一部でよい)・URL・ID のどれか。

get_unreadA

利用者がチャットの画面でまだ開いていない(未読の)メッセージを、スペースごとにまとめて返す。 読むだけで既読にはしない。利用者自身の発言は数えない。

  • space を指定するとそのスペースだけ。省略すると未読のあるスペースをすべて(最近動いた順)。

  • 注意: 未読は利用者が画面で開いた時点で消える(スマホで開いた分も)。記録の続きの起点には使わず、 記録は get_messages の next_since で続きから読む。未読は「まだ見ていない分の把握」に使う。

  • 人の最後の発言が 90日より前のスペースは調べない(ボットだけが投稿するスペースは space で指定する)。既読の記録が無いスペースは直近 90日分を未読とみなす (どちらも notes に書く)。

  • truncated が true なら limit で打ち切っている。

Args: space: スペースの名前・URL・ID。省略時は全スペース。 limit: 返すメッセージの合計の最大件数(既定 200)。 include_bots: 既定 true(ボット・アプリの発言も含める)。false にすると除く。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.1/5.0

Scored across 5 tools

Disambiguation4/5

Each tool has a clear primary role: listing spaces, fetching members, reading messages, keyword search, and unread retrieval. The main overlap is get_unread versus list_spaces with unread_only=true, plus some conceptual overlap between get_messages and search_messages, but descriptions explain the differences well.

Naming Consistency5/5

All five tools follow a consistent snake_case verb_noun pattern (get_members, list_spaces, get_messages, search_messages, get_unread). The verb choice (get/list/search) matches the read semantics predictably.

Tool Count5/5

Five tools is a well-scoped set for a focused read/record-oriented server, with each tool covering a distinct need (spaces, members, messages, search, unread). No tool feels redundant or vestigial.

Completeness4/5

The read-only surface is coherent and internally complete (list, read, search, unread, members), with pagination handled well. However, there is no way to send or reply to messages, list threads explicitly, or download attachments, which are gaps for a full Google Chat domain.

Maintenance

ActivityMaintained
ResponsivenessOutdated data