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
- Open Google Cloud Console and sign in with your Google account.
- 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
- In the left menu open APIs & Services → Library.
- Find Gmail API and press Enable.
3. Configure the consent screen and add yourself as a test user
- Open APIs & Services → OAuth consent screen (in the new console this section is called Google Auth Platform).
- Pick the External user type and fill the required fields (app name, support email).
- 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
- Open APIs & Services → Credentials → Create credentials → OAuth client ID.
- Application type — Desktop app. Create it and copy the Client ID (
…apps.googleusercontent.com) and Client Secret (GOCSPX-…).
5. Connect in UVI
- On the connector card fill
GOOGLE_CLIENT_IDandGOOGLE_CLIENT_SECRET. - 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
| Tool | What it does |
|---|---|
search_emails | Search mail with Gmail query syntax (from:… has:attachment) |
read_email | Read one message in full |
get_thread | Read a whole thread at once |
list_inbox_threads / get_inbox_with_threads | Thread-level inbox view, optionally with full content |
download_email / download_attachment | Save a message or an attachment to disk |
Sending and replies
| Tool | What it does |
|---|---|
send_email | Send a new email (delivered immediately) |
reply_to_email / reply_all | Reply to the sender only / to everyone |
forward_email | Forward a message to new recipients |
Drafts
| Tool | What it does |
|---|---|
draft_email | Save a new draft; nothing is sent |
list_drafts / get_draft | Browse drafts |
update_draft | Replace a draft's contents |
send_draft | Send an existing draft |
delete_draft | Delete a draft (permanent) |
Labels and organization
| Tool | What it does |
|---|---|
modify_email / batch_modify_emails / modify_thread | Move, archive, trash, mark read/unread — one message, a batch or a thread |
list_email_labels | List labels |
create_label / update_label / delete_label / get_or_create_label | Manage labels |
Filters
| Tool | What it does |
|---|---|
list_filters / get_filter | Browse filters |
create_filter / create_filter_from_template | New filter from criteria or a vetted template |
delete_filter | Remove 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.