UVI
Connectors

Gmail

Read, search, send and organize your Gmail

Read, search, send and organize your Gmail — messages, drafts, threads and labels.

Setup

You provide your own Google Cloud OAuth client — a one-time setup of about 10 minutes:

1. Create a project

  1. Open Google Cloud Console and sign in with your Google account.
  2. In the project selector at the top press New project, name it anything (e.g. uvi-connectors) and create it. One project can serve both Gmail and Google Calendar.

2. Enable the Gmail API

  1. In the left menu open APIs & Services → Library.
  2. Find Gmail API and press Enable.
  1. Open APIs & Services → OAuth consent screen (in the new console this section is called Google Auth Platform).
  2. Pick the External user type and fill the required fields (app name, support email).
  3. In the Test users section (the Audience tab in the new console) press Add users and add the Gmail address you are going to sign in with.

Don't skip this step: while the app is in "Testing" mode, Google only lets the listed test users authorize it. Add every account you plan to connect. Otherwise sign-in fails.

4. Create the OAuth client

  1. Open APIs & Services → Credentials → Create credentials → OAuth client ID.
  2. Application type — Desktop app. Create it and copy the Client ID (…apps.googleusercontent.com) and Client Secret (GOCSPX-…).

5. Connect in UVI

  1. On the connector card fill GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET.
  2. Press Connect (the package downloads on first use), then Sign in with Google. The browser opens: pick the account you added as a test user and allow access. Google warns that the app is unverified; press Continue.

The app stores the sign-in token locally on your machine.

Tools

Reading and search

ToolWhat it does
search_emailsSearch mail with Gmail query syntax (from:… has:attachment)
read_emailRead one message in full
get_threadRead a whole thread at once
list_inbox_threads / get_inbox_with_threadsThread-level inbox view, optionally with full content
download_email / download_attachmentSave a message or an attachment to disk

Sending and replies

ToolWhat it does
send_emailSend a new email (delivered immediately)
reply_to_email / reply_allReply to the sender only / to everyone
forward_emailForward a message to new recipients

Drafts

ToolWhat it does
draft_emailSave a new draft; nothing is sent
list_drafts / get_draftBrowse drafts
update_draftReplace a draft's contents
send_draftSend an existing draft
delete_draftDelete a draft (permanent)

Labels and organization

ToolWhat it does
modify_email / batch_modify_emails / modify_threadMove, archive, trash, mark read/unread — one message, a batch or a thread
list_email_labelsList labels
create_label / update_label / delete_label / get_or_create_labelManage labels

Filters

ToolWhat it does
list_filters / get_filterBrowse filters
create_filter / create_filter_from_templateNew filter from criteria or a vetted template
delete_filterRemove a filter

delete_email and batch_delete_emails delete messages permanently, bypassing Trash. They are marked dangerous and always worth a careful look in the approval dialog.

The package's full documentation is on its npm page: @klodr/gmail-mcp.

On this page