Google Chat MCP Server

smithery badge

A Model Context Protocol (MCP) server implementation for interacting with the Google Chat API via webhooks. This server provides a simple tool for posting text messages to Google Chat spaces.

Features

  • Post text messages to Google Chat spaces using webhooks
  • Simple and secure webhook-based integration
  • No OAuth setup required
  • Easy to use with MCP-compatible tools

Installation

Installing via Smithery

To install gchat-mcp for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @rishipradeep-think41/gchat-mcp --client claude

Using Smithery (Recommended)

Install the server using Smithery's CLI:

npx spinai-mcp install @KaranThink41/gchat_post_text_message --provider smithery

Local Development

  1. Clone the repository:
git clone https://github.com/KaranThink41/google_chat_mcp_server.git
cd google_chat_mcp_server
  1. Install dependencies:
npm install
  1. Build the project:
npm run build
  1. Run the server:
node build/index.js

Docker Setup

You can run the server using Docker. Here's how to set it up:

  1. Build the Docker image:
docker build -t google-chat-mcp-server .
  1. Run the Docker container with the necessary environment variables:
docker run -e GOOGLE_CHAT_SPACE_ID=your_space_id \
          -e GOOGLE_CHAT_API_KEY=your_api_key \
          -e GOOGLE_CHAT_TOKEN=your_token \
          google-chat-mcp-server

Usage Example

To post a message to Google Chat, send the following JSON request:

{
  "method": "tools/call",
  "params": {
    "name": "post_text_message",
    "arguments": {
      "space_id": "your_space_id",
      "key": "your_api_key",
      "token": "your_token",
      "text": "Hello, this is a test message!"
    }
  }
}

Configuration

The server requires the following environment variables to function:

  • GOOGLE_CHAT_SPACE_ID: The Space ID of your Google Chat space
  • GOOGLE_CHAT_API_KEY: The API key for your Google Cloud project
  • GOOGLE_CHAT_TOKEN: The authentication token for Google Chat

These variables can be set in your environment or via Docker (as shown in the Docker Setup section).

To run locally without Docker, create a .env file with the following content:

GOOGLE_CHAT_SPACE_ID=your_space_id
GOOGLE_CHAT_API_KEY=your_api_key
GOOGLE_CHAT_TOKEN=your_token

Security

  • Webhook URLs are passed directly in the request payload
  • No sensitive credentials are stored in the code
  • All requests are validated before execution

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

MCP Server · Populars

MCP Server · New

    umutkeltek

    healthsave-observatory

    Self-hosted health-data observatory: sync Apple Health, early wearable plugins, and Garmin/Samsung imports into a canonical TimescaleDB record; view baseline-linked findings and query a private API. Docker-ready, local-first, default-deny egress.

    Community umutkeltek
    atilaahmettaner

    TradingMCP: Market Data & Technical Analysis for AI Assistants

    MCP server for market analysis in AI assistants: screeners, multi-timeframe technical analysis, backtests and sentiment for crypto, stocks, forex and futures. 39 tools. Self-host free, or use the hosted version, TradingMCP.

    Community atilaahmettaner
    lifan-builds

    Faster Mac Use (fmu)

    Background-first, multi-cursor browser and native macOS computer-use engine for AI agents

    Community lifan-builds
    agent360dev

    Agent360 Browser MCP

    The browser tool that can stop and ask you. A 2FA code, a CAPTCHA, a choice only you can make: it asks on your screen, then carries on in the same signed-in Chrome. 41 tools, MCP clients that run local servers, MIT.

    Community agent360dev
    robinAKL

    Agent Room

    Put Claude Code, Cursor, Codex, Gemini & Antigravity in one room — real-time multi-agent AI collaboration over MCP for distributed dev, code review, PR handoff & frontend↔backend integration. Free, self-hostable, MCP-native.

    Community robinAKL