Gmail

Gmail

Gmail is Google’s email service, featuring spam protection, search functions, and seamless integration with other G Suite apps for productivity

28376VIEWS
7740USERS

Install MCP Server

Paste and run this command in your terminal to set up Cursor with MCP

npx @composio/cli add cursor --app gmailnpx @composio/cli add cursor --app gmailnpx @composio/cli add cursor --app gmailnpx @composio/cli add cursor --app gmail

After running the command, restart Cursor to start using the MCP Server.

Available Tools

Modify Email Labels

Adds and/or removes specified gmail labels for a message; ensure `message id` and all `label ids` are valid (use 'listlabels' for custom label ids).

Create Email Draft

Creates a gmail email draft, supporting to/cc/bcc, subject, plain/html body (ensure `is html=true` for html), attachments, and threading.

Create Label

Creates a new label with a unique name in the specified user's gmail account.

Delete Draft

Permanently deletes a specific gmail draft using its id; ensure the draft exists and the user has necessary permissions for the given `user id`.

Delete Message

Permanently deletes a specific email message by its id from a gmail mailbox; for `user id`, use 'me' for the authenticated user or an email address to which the authenticated user has delegated access.

Fetch Emails

Fetches a list of email messages from a gmail account, supporting filtering, pagination, and optional full content retrieval.

Fetch Message By Message Id

Fetches a specific email message by its id, provided the `message id` exists and is accessible to the authenticated `user id`.

Fetch Message By Thread Id

Retrieves messages from a gmail thread using its `thread id`, where the thread must be accessible by the specified `user id`.

Get Gmail Attachment

Retrieves a specific attachment by id from a message in a user's gmail mailbox, requiring valid message and attachment ids.

Get Contacts

Fetches contacts (connections) for the authenticated google account, allowing selection of specific data fields and pagination.

Get People

Retrieves either a specific person's details (using `resource name`) or lists 'other contacts' (if `other contacts` is true), with `person fields` specifying the data to return.

Get Profile

Retrieves key gmail profile information (email address, message/thread totals, history id) for a user.

List Drafts

Retrieves a paginated list of email drafts from a user's gmail account. use verbose=true to get full draft details including subject, body, sender, and timestamp.

List Gmail Labels

Retrieves a list of all system and user-created labels for the specified gmail account.

List Threads

Retrieves a list of email threads from a gmail account, identified by `user id` (email address or 'me'), supporting filtering and pagination.

Modify Thread Labels

Adds or removes specified existing label ids from a gmail thread, affecting all its messages; ensure the thread id is valid.

Move To Trash

Moves an existing, non-deleted email message to the trash for the specified user.

Patch Label

Patches the specified label.

Remove Label

Permanently deletes a specific, existing user-created gmail label by its id for a user; cannot delete system labels.

Reply To Email Thread

Sends a reply within a specific gmail thread using the original thread's subject, requiring a valid `thread id` and correctly formatted email addresses. supports attachments via the `attachment` parameter with valid `s3key`, `mimetype`, and `name`.

20 actions available