Google Chat MCP for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Google Chat MCP or direct API to send space messages, list conversations, read thread updates, and manage members through natural language.

Google Chat logoGoogle Chat
Oauth2

Google Chat is Google Workspace's messaging and collaboration service for teams. It keeps conversations, spaces, files, and work updates in one shared place.

45 Tools

Try Google Chat now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
Google Chat
Try asking
TOOLS

Supported Tools

Every Google Chat action and event your agent gets out of the box.

Complete Space Import

Completes the import process for an import-mode Google Chat space and makes it visible to users.

Create Custom Emoji

Creates a custom emoji in Google Chat for use within an organization.

Create Space Member

Creates a membership for a user, Chat app, or Google Group in a space.

Create Message

Creates a message in a Google Chat space.

Create Reaction

Creates an emoji reaction on a Google Chat message.

Create section

Creates a custom section in Google Chat for organizing conversations in the navigation panel.

Create Space

Creates a named space or group chat in Google Chat.

Delete Custom Emoji

Deletes a custom emoji from Google Chat.

Delete Member from Space

Removes a user, Google Group, or app from a space.

Delete Message

Deletes a message from a Google Chat space.

Delete Reaction

Deletes a reaction to a message.

Delete section

Deletes a custom section from Google Chat by its ID.

Delete space

Deletes a named space from Google Chat.

Download Media

Downloads the bytes of a Google Chat message attachment via the media API.

Find Direct Message

Returns the existing direct message space with the specified user.

Find Group Chats

Finds all group chat spaces that contain exactly the calling user and the specified users.

Get Attachment

Gets the metadata of a Google Chat message attachment.

Get Custom Emoji

Returns details about a custom emoji in Google Chat.

Get Chat Space Member

Returns details about a membership in a space.

Get Message

Returns details about a specific message in a Google Chat space.

Get Space

Returns details about a specific Google Chat space including configuration, membership count, and access settings.

Get Space Event

Returns an event from a Google Chat space.

Get Space Notification Setting

Gets the notification settings for a user in a specific space.

Get space read state

Returns details about a user's read state within a space.

Get thread read state

Returns details about a user's read state within a thread.

List custom emojis

Lists custom emojis visible to the authenticated user in Google Chat.

List Space Members

Lists memberships in a space.

List Messages

Lists messages in a space that the authenticated user is a member of.

List reactions on a message

Lists all reactions on a specific message in a Google Chat space.

List Section Items

Lists all items (such as spaces) within a specified section of a user's Google Chat.

List Sections

Lists all sections available to the authenticated user in Google Chat.

List Space Events

Lists events from a Google Chat space.

List Spaces

Lists spaces the authenticated user is a member of in Google Chat.

Move Section Item

Moves a space from one section to another in Google Chat.

Position Section in Sidebar

Changes the sort order of a section in the Google Chat sidebar.

Replace Message (Full)

Replaces an existing message in a Google Chat space using full replacement.

Search Spaces

Searches for spaces across a Google Workspace organization using administrator privileges.

Setup Space

Creates a space and adds specified users and groups to it.

Update Member

Updates a membership in a Google Chat space, such as changing a member's role between member and manager.

Update Message

Updates a message in a Google Chat space, modifying its text, cards, or other properties.

Update section

Updates a section's display name in Google Chat.

Update Space

Updates a Google Chat space's configuration including display name, description, guidelines, history settings, access settings, and permission settings.

Update Space Notification Setting

Updates the notification settings for a user in a space.

Update Space Read State

Updates a user's read state within a space, used to mark messages as read or unread.

Upload Media Attachment

Uploads a file as an attachment to a Google Chat space using the multipart media upload endpoint.

SETUP GUIDE

Connect Google Chat MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/openai @ai-sdk/mcp
Install the Composio SDK for Python or TypeScript
2

Initialize Client and Create Tool Router Session

typescript
import { Composio } from '@composio/core';

const composio = new Composio({ apiKey: 'your-api-key' });
const session = await composio.create('your-user-id');
console.log(`Tool Router session created: ${session.mcp.url}`);
Import and initialize the Composio client, then create a Tool Router session for Google Chat
3

Connect to AI Agent

typescript
import { openai } from '@ai-sdk/openai';
import { experimental_createMCPClient as createMCPClient } from '@ai-sdk/mcp';
import { generateText } from 'ai';

const client = await createMCPClient({
  transport: {
    type: 'http',
    url: session.mcp.url,
    headers: {
      'x-api-key': 'your-composio-api-key',
    },
  },
});

const tools = await client.tools();
const { text } = await generateText({
  model: openai('gpt-4o'),
  tools,
  messages: [{
    role: 'user',
    content: 'Send a Google Chat message to the Engineering Updates space: Standup starts in 10 minutes.'
  }],
  maxSteps: 5,
});

console.log(`Agent: ${text}`);
Use the MCP server with your AI agent (Anthropic Claude or Mastra)
SETUP GUIDE

Connect Google Chat API Tool with your Agent

1

Install Composio

typescript
npm install @composio/openai
Install the Composio SDK
2

Initialize Composio and Create Tool Router Session

typescript
import OpenAI from 'openai';
import { Composio } from '@composio/core';
import { OpenAIResponsesProvider } from '@composio/openai';

const composio = new Composio({
  provider: new OpenAIResponsesProvider(),
});
const openai = new OpenAI({});
const session = await composio.create('your-user-id');
Import and initialize Composio client, then create a Tool Router session
3

Execute Google Chat Tools via Tool Router with Your Agent

typescript
const tools = session.tools;
const response = await openai.responses.create({
  model: 'gpt-4.1',
  tools: tools,
  input: [{
    role: 'user',
    content: 'List all Google Chat spaces I can access and summarize their display names.'
  }],
});
const result = await composio.provider.handleToolCalls(
  'your-user-id',
  response.output
);
console.log(result);
Get tools from Tool Router session and execute Google Chat actions with your Agent

Why Use Composio?

AI Native Google Chat Integration

  • Supports both Google Chat MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable message, space, and thread actions
  • Rich coverage for reading conversations, posting updates, and querying Google Chat spaces

Managed Auth

  • Built-in OAuth handling with automatic token refresh and lifecycle management
  • Central place to manage, scope, and revoke Google Chat access
  • Per user and per environment credentials instead of hard-coded tokens in your agent code

Agent Optimized Design

  • Tools are tuned using real error and success rates, so Google Chat actions get more reliable over time
  • Comprehensive execution logs show which space, message, or thread your agent touched

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Google Chat
  • Scoped, least privilege access to spaces, messages, and memberships
  • Full audit trail of agent actions to support review, debugging, and compliance
FAQ

Frequently asked questions

Yes, Google Chat requires you to configure your own OAuth credentials. Once set up, Composio handles token storage, refresh, and lifecycle management for you. You can create the OAuth auth config with auth_configs.create(), connect users with connected_accounts.link(), and expose Google Chat tools to agents through mcp.create() or Tool Router sessions.

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Start with Google Chat.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Google Chat tool your agent needs.Free to start.

Start building