Skip to content
Weavz
Menu
Gmail

Gmail MCP integration

Send, receive, and manage emails with Gmail

Sign in, add Gmail in Apps, then choose the account your AI can use.

40 tools
2 triggers
Use withChatGPTClaudeClaude CodeCursorCodexMCP clientsSetup guide

Get started with Gmail

  1. Add Gmail to your Weavz workspace and connect the account you want to use.
  2. Review the available tools below and enable the actions your task needs. Check the account permissions before allowing changes.
  3. Connect a compatible AI client to your workspace, or use the actions API from your application.

Tools

Name

List Messages

list_messages

List email messages in the mailbox

Get Message

get_message

Get a specific email message with full content. Note: attachment data is returned in URL-safe base64 (RFC 4648 §5) — use forward_email to forward with attachments correctly.

Send Email

send_email

Send an email message

Reply to Email

reply_to_email

Send a reply to an existing email thread

Forward Email

forward_email

Forward an email to another recipient, preserving all attachments. Handles base64 encoding conversion automatically so attachments are never corrupted.

Modify Labels

modify_labels

Add and/or remove Gmail labels from one email message in a single call.

Batch Modify Messages

batch_modify_messages

Add and/or remove labels from multiple Gmail messages in one efficient API call.

Batch Delete Messages

batch_delete_messages

Permanently delete multiple Gmail messages. This bypasses Trash and cannot be undone.

Trash Message

trash_message

Move an email message to Gmail Trash.

Untrash Message

untrash_message

Restore an email message from Gmail Trash.

Delete Message

delete_message

Permanently delete a Gmail message. This bypasses Trash and cannot be undone.

Get Attachment

get_attachment

Retrieve a Gmail attachment by message ID and attachment ID.

List Threads

list_threads

List Gmail conversation threads with optional search and label filtering.

Get Thread

get_thread

Get a Gmail thread and its messages.

Modify Thread Labels

modify_thread_labels

Add and/or remove labels from all messages in a Gmail thread.

Trash Thread

trash_thread

Move a Gmail thread to Trash.

Untrash Thread

untrash_thread

Restore a Gmail thread from Trash.

Delete Thread

delete_thread

Permanently delete a Gmail thread and all its messages. This cannot be undone.

Add Label

add_label

Add a label to an email message. Select from available labels in the dropdown.

Remove Label

remove_label

Remove a label from an email message. Select from available labels in the dropdown.

List Labels

list_labels

List all labels in the Gmail account

Create Label

create_label

Create a new Gmail label.

Get Label

get_label

Get details for a Gmail label.

Patch Label

patch_label

Patch selected properties of a user-created Gmail label.

Update Label

update_label

Update a Gmail label resource.

Delete Label

delete_label

Permanently delete a user-created Gmail label from the account.

Create Draft

create_draft

Create a Gmail email draft.

List Drafts

list_drafts

List Gmail drafts in the mailbox.

Get Draft

get_draft

Get a Gmail draft by ID.

Update Draft

update_draft

Replace an existing Gmail draft with new message content.

Send Draft

send_draft

Send an existing Gmail draft as-is.

Delete Draft

delete_draft

Permanently delete a Gmail draft.

Get Profile

get_profile

Get Gmail profile information for the authenticated user.

List History

list_history

List Gmail mailbox change history since a known start history ID.

List Send-As Aliases

list_send_as_aliases

List Gmail send-as aliases for this account.

Get Send-As Alias

get_send_as_alias

Get a specific Gmail send-as alias configuration.

Get Contacts

get_contacts

List Google contacts for the same authenticated Google account using the People API.

Get People

get_people

Get one People API person resource, or list Other Contacts for this Google account.

Search People

search_people

Search Google contacts by name, nickname, email, phone, or organization using the People API.

Custom API Call

custom_api_call

Make a custom API call to the Gmail API

Triggers

Name

New Email

new_email

Triggers when a new email is received

Email Labeled

email_labeled

Triggers when a label is added to an email

Quick Start

TypeScript
import { WeavzClient } from '@weavz-io/sdk'

const weavz = new WeavzClient({ apiKey: 'wvz_...' })

const result = await weavz.actions.execute('gmail', 'list_messages', {
  workspaceId: '550e8400-e29b-41d4-a716-446655440000',
  integrationAlias: 'gmail',
  input: { /* ... */ },
})

Related Integrations

Explore integrations in other categories

Agent templates using Gmail

Preview a real task, the other apps it needs and the setup controls before creating a workspace.

Frequently Asked Questions

Is there a Gmail MCP server through Weavz?

Yes. Add the Gmail integration to a Weavz workspace, enable the actions you need and connect any required account. Weavz provides the workspace MCP endpoint in Tool Mode or Code Mode. The catalog currently lists 40 Gmail actions.

What can an AI agent do with Gmail?

Available actions include List Messages, Get Message, Send Email, Reply to Email, Forward Email, and more. Your workspace exposes only the actions you enable. The agent also needs the intended account access and any required input values.

How do I connect Gmail to Claude or ChatGPT?

Use a compatible remote MCP client, add the Weavz connector and choose a workspace. Add Gmail, connect the required account and review the enabled actions. Client availability and account requirements vary; adding the connector does not authorize every app automatically.

Can I use Gmail through an API or SDK?

Yes, supported actions can run through the Weavz REST API, TypeScript SDK or Python SDK. Configure a workspace and the required connections, use scoped access, and pass the intended end-user context when acting for a customer.

What authentication does Gmail require?

The catalog lists OAuth2 for Gmail. Use Hosted Connect to authorize the intended account. Required permissions, provider app access and available connection methods depend on the integration.

How do I review sensitive Gmail actions?

Limit enabled actions, scope credentials to the intended user and configure Human Gates for the operations that need review. A matching policy can pause a send, record change or other sensitive action for an approver before execution.

What limits or costs apply to Gmail?

Weavz plan limits apply to the actions and resources you use. The external provider may also require an account, a paid plan, API credits or specific permissions, and may enforce its own rate limits. Check current Weavz pricing and the provider’s terms before rollout.

What Gmail triggers are available?

The catalog lists 2 triggers, including New Email, Email Labeled. Configure the trigger and your event handler before using incoming events to start work.

Connect Gmail in minutes

Get 20,000 free action executions every month. No credit card required.