Set up SendGrid in Metorial for Claude, ChatGPT and Cursor
Share SendGrid with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 34 tools (15 read-only).
To give your team SendGrid in Claude, ChatGPT, Cursor and other AI clients, an admin shares the SendGrid integration in a Metorial portal, and each person connects with an API key. Agents can send transactional and marketing emails at scale. The integration has 34 tools, 15 read-only, 12 write and 7 destructive, plus 2 triggers.
What you'll learn
- How an admin shares SendGrid in a portal and how each person connects
- What SendGrid asks for when you connect, and where to find it
- How to keep the 15 read-only tools and reject the other 19
Before you start
- A portal with at least one access group
- An API key from SendGrid for each person, or one for a shared connection
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in method
| Method | Type | What a person provides |
|---|---|---|
| API Key | API token | token |
API Key
To connect, a person enters:
token: SendGrid API Key. Create one in the SendGrid UI under Settings > API Keys.
Setup settings
Setup also asks for:
region(optional): SendGrid API region. Use "eu" for EU regional subusers. One of "global", "eu".
Admin: share SendGrid 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 SendGrid. For how members connect, choose Each person connects so everyone enters their own API key, or Shared connection to enter one API key for everyone.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from SendGrid.
Choose who gets it
Add the access groups that should see SendGrid. 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 SendGrid integration. Once it exists, check which groups have it:
Employee: connect SendGrid
In the portal
Open SendGrid in the catalog
Sign in to your portal and open SendGrid. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. In the setup window, enter your API key (token).
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.
Add it to your AI client
metorial install adds your SendGrid 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 15 read-only tools, such as get_contact and get_template, and lose the 12 write tools, such as send_email or create_template, and the 7 destructive tools, such as delete_contacts or delete_template.
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 34 tools, minus any you rejected. list_verified_senders takes no input. It retrieves all verified sender identities.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (15)
list_suppressions: Retrieve suppressed email addresses by type: bounces, blocks, spam reports, invalid emails, global unsubscribes, or group suppressions. NeedssuppressionType.list_templates: Retrieve dynamic email templates.get_template: Retrieve a single dynamic template by ID, including all its versions and content. NeedstemplateId.list_contact_lists: Retrieve all marketing contact lists with their contact counts.get_contact: Retrieve a single marketing contact by ID. NeedscontactId.list_verified_senders: Retrieve all verified sender identities.list_suppression_groups: Retrieve all suppression (unsubscribe) groups.search_contacts: Search marketing contacts using SendGrid's SGQL (SendGrid Query Language). Needsquery.get_email_stats: Retrieve email delivery and engagement statistics. NeedsstartDate.get_contact_list_count: Retrieve the contact and billable counts for a specific marketing contact list. NeedslistId.get_contact_count: Retrieve the total marketing contact count for the SendGrid account, including billable contact count when available.list_event_webhooks: Retrieve configured SendGrid Event Webhooks and the delivery or engagement events each webhook subscribes to.get_suppression_group: Retrieve a single suppression (unsubscribe) group by ID, including its default status and unsubscribe count. NeedsgroupId.get_contact_list: Retrieve a single marketing contact list by ID, optionally including a sample of recent contacts. NeedslistId.get_contact_import_status: Check the asynchronous job status returned by contact upsert, contact import, or contact deletion operations. NeedsjobId.
Write tools (12)
create_contact_list: Create a new marketing contact list for organizing and segmenting contacts. Needsname.create_suppression_group: Create a new suppression (unsubscribe) group. Needsnameanddescription.create_verified_sender: Create a new verified sender identity. Needsnickname,fromEmailandreplyTo.create_template: Create a new dynamic email template. Needsname.upsert_contacts: Add or update marketing contacts. Needscontacts.add_suppressed_emails: Add email addresses to a suppression group or the global unsubscribe list. Needsemails.update_template: Update a template's name or manage template versions. NeedstemplateId.update_contact_list: Rename an existing marketing contact list. NeedslistIdandname.send_email: Send an email via SendGrid. Needsfromandpersonalizations.resend_sender_verification: Resend the verification email for a verified sender identity that has not yet been verified. NeedssenderId.update_suppression_group: Update a suppression (unsubscribe) group's name, description, or default status. NeedsgroupId.add_contacts_to_list: Add or update contacts and assign them to a marketing contact list. NeedslistIdandcontacts.
Destructive tools (7)
remove_contact_from_list: Remove a contact from a specific contact list without deleting the contact itself. NeedslistIdandcontactId.remove_suppressed_email: Remove an email address from a suppression group or the global unsubscribe list. NeedsemailandsuppressionType.delete_contact_list: Delete a marketing contact list. NeedslistId.delete_template: Delete a dynamic template and all its versions, or delete a specific version of a template. NeedstemplateId.delete_verified_sender: Delete a verified sender identity by its ID. NeedssenderId.delete_contacts: Delete marketing contacts by ID, or delete all contacts in the account.delete_suppression_group: Delete a suppression (unsubscribe) group by ID. NeedsgroupId.
Triggers
SendGrid has 2 triggers, which fire on events in SendGrid:
email_events: Receives delivery and engagement events from SendGrid via the Event Webhook, including delivered, bounced, opened, clicked, spam reports, unsubscribes, and more.inbound_email: Receives parsed inbound emails via the SendGrid Inbound Parse Webhook.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use SendGrid there
- Tool permissions: tool filters and what employees see
- SendGrid on metorial.com: the integration overview