Set up Superhuman Gmail in Metorial for AI agents
Share Superhuman Gmail with your team in Claude, ChatGPT and Cursor through Metorial: OAuth sign-in, 7 tools (4 read-only).
To give your team Superhuman Gmail in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Superhuman Gmail integration in a Metorial portal, and each person signs in to Superhuman Gmail with their own account. Gmail conversation workflows for accounts used with Superhuman: verify mailbox identity, search threads, read context, download message files, archive or label conversations, manage threaded reply drafts, and send replies. The integration has 7 tools, 4 read-only, 1 write and 2 destructive, plus 2 triggers.
What you'll learn
- How an admin shares Superhuman Gmail in a portal and how each person connects
- The 6 OAuth scopes Superhuman Gmail can request, and what each one allows
- How to keep the 4 read-only tools and reject the other 3
Before you start
- A portal with at least one access group
- An account with Superhuman Gmail for each person who connects
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in methods
| Method | Type | What a person provides |
|---|---|---|
| Google OAuth (default) | OAuth | Signs in to Superhuman Gmail |
Also available: Google OAuth Full Access, Google OAuth Read Only.
The portal and metorial setup use Google OAuth unless someone picks another method.
Google OAuth
People sign in to Superhuman Gmail and approve the scopes you allow. The integration can request:
| Scope | Name | What it allows |
|---|---|---|
https://www.googleapis.com/auth/gmail.readonly | Read-Only | Read threads, messages, drafts, and mailbox metadata—no modifications. |
https://www.googleapis.com/auth/gmail.compose | Compose | Create, read, update, and delete drafts; send messages and drafts. |
https://www.googleapis.com/auth/gmail.modify | Modify | Change labels, archive, trash, and restore threads (no permanent delete bypassing Trash unless combined with full mail scope). |
https://mail.google.com/ | Full Access | Full Gmail access including permanent deletion of threads when using the delete triage action. |
https://www.googleapis.com/auth/userinfo.email | User Email | View your email address for connection profile. |
https://www.googleapis.com/auth/userinfo.profile | User Profile | View your name and profile picture. |
Setup settings
Setup also asks for:
userId(optional): Gmail user ID. Use "me" for the authenticated user, or a mailbox email for delegated access.
Use your own Superhuman Gmail OAuth app
With your own OAuth app, people see your company's name on the Superhuman Gmail consent screen, and the client ID and secret belong to you.
Start the credentials in Metorial
In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose Superhuman Gmail and copy the Redirect URI.
Register the app
In the Google Cloud console, enable the API behind Superhuman Gmail under APIs & Services, Library. Then go to Google Auth platform, Clients, click Create Client, choose Web application, and paste the redirect URI from Metorial under Authorized redirect URIs. Google shows the client secret only when you create the client.
The Google Workspace guide covers the consent screen and the OAuth client in Google Cloud step by step.
Finish in Metorial
Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the Superhuman Gmail integration.
Admin: share Superhuman Gmail in a portal
In the dashboard
Open Shared Resources
Open Workforce, choose the portal, and select Shared Resources under Access.
Share a new integration
Select Share a Resource, then New Integration, and choose Superhuman Gmail. Under Auth Method, keep Google OAuth or pick another. For how members connect, choose Each person connects, so everyone signs in to Superhuman Gmail as themselves.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Superhuman Gmail.
Choose who gets it
Add the access groups that should see Superhuman Gmail. When a person asks for access from the portal, the request appears under Access Requests.
With the CLI
The CLI cannot create the per-user Superhuman Gmail integration. Once it exists, check which groups have it:
Employee: connect Superhuman Gmail
In the portal
Open Superhuman Gmail in the catalog
Sign in to your portal and open Superhuman Gmail. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. A Superhuman Gmail sign-in tab opens. Sign in and approve the permissions listed.
Confirm
The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.
With the CLI
catalog search prints the catalog item ID. metorial setup uses Google OAuth. To connect with Google OAuth Full Access instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.
Add it to your AI client
metorial install adds your Superhuman Gmail connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.
For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.
Make it read-only
Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 4 read-only tools, such as get_profile and download_attachment, and lose the write tool send_reply, and the 2 destructive tools, such as manage_reply_draft or triage_conversation.
Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.
Check it worked
metorial tools lists the 7 tools, minus any you rejected. search_conversations takes no input. It lists Gmail **threads** (conversations) matching a query or label filters.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (4)
get_conversation_context: Load a full **thread** with parsed messages (headers, bodies, attachment metadata) plus **reply hints** (In-Reply-To, References, suggested recipients and subject) for the message you are replying to. NeedsthreadId.search_conversations: List Gmail **threads** (conversations) matching a query or label filters.download_attachment: Download a file from a Gmail message using the attachment ID or MIME part ID returned by conversation context.get_profile: Identify the selected Gmail mailbox and read its message count, conversation count and current history ID.
Write tools (1)
send_reply: Send a **reply** in an existing **thread** with proper **In-Reply-To** and **References** so it appears in the conversation. NeedsthreadIdandbody.
Destructive tools (2)
triage_conversation: Apply a single high-level **triage** action to an entire Gmail **thread**: archive/unarchive, read/unread, star/unstar, add/remove labels, move to trash, restore from trash, or permanently delete. NeedsthreadIdandaction.manage_reply_draft: Create, update, fetch, list, send, or delete **reply drafts** tied to a **thread**, with correct **In-Reply-To** and **References** headers when **replyToMessageId** (or the latest thread message) is used. Needsaction.
Triggers
Superhuman Gmail has 2 triggers, which fire on events in Superhuman Gmail:
inbound_webhookconversation_changes: Fires when messages are added or removed, or labels change on messages—**grouped by Gmail history**, with **threadId** for conversation-centric workflows.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Superhuman Gmail there
- Create custom OAuth credentials: the Provider Auth screens in more detail
- Tool permissions: tool filters and what employees see
- Google Workspace guide: the consent screen and the OAuth client in Google Cloud
- Superhuman Gmail on metorial.com: the integration overview