Google Chat Integration
List Google Chat spaces and manage messages and memberships
The Google Chat integration provides access to list Google Chat spaces and manage messages and memberships through the Integrate MCP server.
Installation
The Google Chat integration is included with the SDK:
import { googleChatIntegration } from "integrate-sdk/server";Setup
1. Create a Google Chat OAuth App
- Go to Google Cloud Console
- Create a new OAuth application
- Configure your redirect URI
- Note your Client ID and Client Secret
2. Configure the Integration on Your Server
Add the Google Chat integration to your server configuration. The integration automatically reads GOOGLE_CHAT_CLIENT_ID and GOOGLE_CHAT_CLIENT_SECRET from your environment variables:
import { createMCPServer, googleChatIntegration } from "integrate-sdk/server";
export const { client: serverClient } = createMCPServer({
apiKey: process.env.INTEGRATE_API_KEY,
integrations: [
googleChatIntegration({
scopes: ["https://www.googleapis.com/auth/chat.messages", "https://www.googleapis.com/auth/chat.spaces.readonly"], // Optional
}),
],
});You can override the environment variables by passing explicit values:
googleChatIntegration({
clientId: process.env.CUSTOM_GOOGLE_CHAT_ID,
clientSecret: process.env.CUSTOM_GOOGLE_CHAT_SECRET,
scopes: ["https://www.googleapis.com/auth/chat.messages", "https://www.googleapis.com/auth/chat.spaces.readonly"], // Optional
});3. Client-Side Usage
The default client automatically includes all integrations. You can use it directly:
import { client } from "integrate-sdk";
await client.authorize("google_chat");
const result = await client.google_chat.deleteMessage({});
console.log(result);If you're using a custom client, add the integration to the integrations array:
import { createMCPClient, googleChatIntegration } from "integrate-sdk";
const customClient = createMCPClient({
integrations: [googleChatIntegration()],
});Configuration Options
export interface GoogleChatIntegrationConfig {
clientId?: string;
Default Scopes
These defaults are applied unless you override scopes in the integration config:
https://www.googleapis.com/auth/chat.messageshttps://www.googleapis.com/auth/chat.spaces.readonly
Tools
google_chat_delete_message
Chat delete message
export type GoogleChatDeleteMessageParams = Record<string, unknown>;
google_chat_get_message
Chat get message
export type GoogleChatGetMessageParams = Record<string, unknown>;
google_chat_get_space
Chat get space
export type GoogleChatGetSpaceParams = Record<string, unknown>;
google_chat_list_members
Chat list members
export type GoogleChatListMembersParams = Record<string, unknown>;
google_chat_list_messages
Chat list messages
export type GoogleChatListMessagesParams = Record<string, unknown>;
google_chat_list_spaces
Chat list spaces
export type GoogleChatListSpacesParams = Record<string, unknown>;
google_chat_send_message
Chat send message
export type GoogleChatSendMessageParams = Record<string, unknown>;
google_chat_update_message
Chat update message
export type GoogleChatUpdateMessageParams = Record<string, unknown>;
Notes
- Category: Communication
- Authentication mode: OAuth