MetorialDocs

Set up Mailcoach in Metorial for Claude, ChatGPT and Cursor

Share Mailcoach with your team in Claude, ChatGPT and Cursor through Metorial: API token sign-in, 18 tools (7 read-only).

To give your team Mailcoach in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Mailcoach integration in a Metorial portal, and each person connects with an API token. Agents can manage email marketing campaigns, subscriber lists, and transactional emails. The integration has 18 tools, 7 read-only, 3 write and 8 destructive, plus 1 trigger.

What you'll learn

  • How an admin shares Mailcoach in a portal and how each person connects
  • What Mailcoach asks for when you connect, and where to find it
  • How to keep the 7 read-only tools and reject the other 11

Before you start

Sign-in method

MethodTypeWhat a person provides
API TokenAPI tokentoken

API Token

To connect, a person enters:

  • token: Mailcoach API token. Generate one from the API Tokens screen in Mailcoach settings.

Setup settings

Setup also asks for:

  • domain: Your Mailcoach subdomain (the "your-domain" portion of your-domain.mailcoach.app)

Admin: share Mailcoach 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 Mailcoach. For how members connect, choose Each person connects so everyone enters their own API token, or Shared connection to enter one API token for everyone.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Mailcoach.

Choose who gets it

Add the access groups that should see Mailcoach. 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 Mailcoach integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search mailcoach

Employee: connect Mailcoach

In the portal

Open Mailcoach in the catalog

Sign in to your portal and open Mailcoach. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your API token (token).

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search mailcoach
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your Mailcoach 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.

metorial list mailcoach
metorial client list
metorial install <client-identifier> <integration-id>

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 7 read-only tools, such as list_campaigns and get_current_user, and lose the 3 write tools, such as import_subscribers or manage_subscriber_tags, and the 8 destructive tools, such as manage_tag or send_campaign.

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 list mailcoach
metorial tools <integration-id>
metorial call <integration-id> list_campaigns -d '{}'

metorial tools lists the 18 tools, minus any you rejected. list_campaigns takes no input. It retrieves campaigns from Mailcoach.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (7)

  • list_campaigns: Retrieve campaigns from Mailcoach.
  • list_subscribers: Retrieve subscribers from an email list. Needs emailListUuid.
  • get_campaign_analytics: Retrieve engagement analytics for a sent campaign — opens, clicks, unsubscribes, and bounces. Needs campaignUuid and metric.
  • list_email_lists: Retrieve email lists (mailing lists) from Mailcoach.
  • get_current_user: Retrieve the user account that owns the connected Mailcoach API token.
  • get_subscriber_import: Retrieve the current status and result counts of a subscriber import.
  • list_transactional_templates: Discover transactional email templates and their mail names for send_transactional_email.

Write tools (3)

  • manage_subscriber_tags: Add or remove tags from a subscriber. Needs action, subscriberUuid and tags.
  • send_transactional_email: Send a transactional email using either a pre-built template name or custom HTML. Needs to.
  • import_subscribers: Bulk import subscribers into an email list using CSV data. Needs emailListUuid and subscribersCsv.

Destructive tools (8)

  • send_campaign: Send a campaign to its full subscriber list, or send a test email to preview the campaign first. Needs action and campaignUuid.
  • manage_tag: List, create, update, or delete tags on an email list. Needs action and emailListUuid.
  • manage_campaign: Create, update, or delete a campaign. Needs action.
  • manage_subscriber: Add, update, or remove a subscriber from an email list. Needs action.
  • manage_template: Create, update, retrieve, list, or delete email templates. Needs action.
  • manage_suppression: List, add, or remove email suppressions. Needs action.
  • manage_segment: List, create, update, or delete segments on an email list. Needs action and emailListUuid.
  • manage_email_list: Create, update, or delete an email list. Needs action.

Triggers

Mailcoach has 1 trigger, which fire on events in Mailcoach:

  • mailcoach_events: Receives webhook events from Mailcoach including subscriber changes, campaign sends, tag changes, email engagement (opens, clicks), and bounces.

Next steps