Enables posting text messages to Google Chat spaces using webhook-based integration, allowing automated communication without OAuth setup.
Google Chat MCP Server
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
Using Smithery (Recommended)
Install the server using Smithery's CLI:
Local Development
Clone the repository:
Install dependencies:
Build the project:
Run the server:
Docker Setup
You can run the server using Docker. Here's how to set it up:
Build the Docker image:
Run the Docker container with the necessary environment variables:
Usage Example
To post a message to Google Chat, send the following JSON request:
Configuration
The server requires the following environment variables to function:
GOOGLE_CHAT_SPACE_ID: The Space ID of your Google Chat spaceGOOGLE_CHAT_API_KEY: The API key for your Google Cloud projectGOOGLE_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:
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
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add some amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
This server cannot be installed