Mailrelay MCP by usefulapi
v1.2.1Read subscribers, campaign results and automations; add, update and tag subscribers in Mailrelay.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
mailrelay_get_account_package Get account package
Get the account plan, its subscriber limit and the current usage (sent emails and subscribers). Mailrelay API: GET /package.
mailrelay_get_stats Get stats summary
Get account totals for a time range of at most 1 calendar month: sent, delivered, bounced, clicks, unique clicks, impressions and unsubscribes. Mailrelay API: GET /stats.
| Parameter | Type | Description |
|---|---|---|
end_time * | string | Format YYYY-MM-DD HH:MM:SS, for example 2026-11-01 00:00:00. |
start_time * | string | Format YYYY-MM-DD HH:MM:SS, for example 2026-11-01 00:00:00. |
mailrelay_list_subscribers List subscribers
List subscribers with optional filters: email or name text, group ids, tag names, unsubscribed, bounced, banned and spam-reported flags, and a created-date range. Mailrelay API: GET /subscribers.
| Parameter | Type | Description |
|---|---|---|
banned | boolean | true = only banned subscribers. Omit for all. |
bounced | boolean | true = only subscribers whose address bounced. Omit for all. |
created_from | string | ISO 8601 date-time, for example 2026-01-01T00:00:00Z. |
created_to | string | ISO 8601 date-time, for example 2026-01-01T00:00:00Z. |
email_contains | string | Only subscribers whose email contains this text. |
group_ids | array | Only subscribers in any of these group ids. |
include_groups | boolean | Include each subscriber's groups. |
include_tags | boolean | Include each subscriber's tags. |
name_contains | string | Only subscribers whose name contains this text. |
page | integer | Page number (default 1). |
per_page | integer | Records per page, 1 to 100. |
reported_spam | boolean | true = only subscribers who reported spam. Omit for all. |
sort | string | Sort field, optionally with "asc" or "desc", for example "created_at desc". |
tag_names | array | Only subscribers with any of these tag names. |
unsubscribed | boolean | true = only unsubscribed subscribers. Omit for all. |
mailrelay_get_subscriber Get a subscriber
Get one subscriber by id: status, email, phones, location, score, bounce and ban flags, and custom fields. Mailrelay API: GET /subscribers/{id}.
| Parameter | Type | Description |
|---|---|---|
subscriber_id * | Numeric id (a number or a digit string). | |
include_groups | boolean | Include the subscriber's groups. |
include_tags | boolean | Include the subscriber's tags. |
mailrelay_get_subscriber_tags List a subscriber's tags
List the tags on one subscriber. Mailrelay API: GET /subscribers/{subscriber_id}/tags.
| Parameter | Type | Description |
|---|---|---|
subscriber_id * | Numeric id (a number or a digit string). |
mailrelay_list_groups List groups
List the account's subscriber groups (mailing lists). Mailrelay API: GET /groups.
| Parameter | Type | Description |
|---|---|---|
name_contains | string | Only groups whose name contains this text. |
page | integer | Page number (default 1). |
per_page | integer | Records per page, 1 to 100. |
mailrelay_get_group Get a group
Get one group by id. Mailrelay API: GET /groups/{id}.
| Parameter | Type | Description |
|---|---|---|
group_id * | Numeric id (a number or a digit string). |
mailrelay_list_segments List segments
List the account's segments (saved subscriber filters). Mailrelay API: GET /segments.
| Parameter | Type | Description |
|---|---|---|
name_contains | string | Only segments whose name contains this text. |
page | integer | Page number (default 1). |
per_page | integer | Records per page, 1 to 100. |
mailrelay_list_segment_subscribers List a segment's subscribers
List the subscribers that match one segment. Mailrelay API: GET /segments/{id}/subscribers.
| Parameter | Type | Description |
|---|---|---|
segment_id * | Numeric id (a number or a digit string). | |
email_contains | string | Only subscribers whose email contains this text. |
page | integer | Page number (default 1). |
per_page | integer | Records per page, 1 to 100. |
mailrelay_list_tags List tags
List the account's subscriber tags. Mailrelay API: GET /tags.
| Parameter | Type | Description |
|---|---|---|
name_contains | string | Only tags whose name contains this text. |
page | integer | Page number (default 1). |
per_page | integer | Records per page, 1 to 100. |
mailrelay_list_custom_fields List custom fields
List the account's custom subscriber fields and their types. Mailrelay API: GET /custom_fields.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default 1). |
per_page | integer | Records per page, 1 to 100. |
mailrelay_list_campaigns List campaigns
List email campaigns with their subject and sender. Mailrelay API: GET /campaigns.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default 1). |
per_page | integer | Records per page, 1 to 100. |
subject_contains | string | Only campaigns whose subject contains this text. |
mailrelay_get_campaign Get a campaign
Get one email campaign by id, including its subject, HTML and tracking settings. Mailrelay API: GET /campaigns/{id}.
| Parameter | Type | Description |
|---|---|---|
campaign_id * | Numeric id (a number or a digit string). |
mailrelay_list_sent_campaigns List sent campaigns
List sent campaigns with their status, subject, scheduled_at, finished_at and totals. Use this for results. Mailrelay API: GET /sent_campaigns.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default 1). |
per_page | integer | Records per page, 1 to 100. |
status | string | Only campaigns with this exact status name, as Mailrelay returns it in a sent campaign's status. |
subject_contains | string | Only sent campaigns whose subject contains this text. |
mailrelay_get_sent_campaign Get a sent campaign
Get one sent campaign by id with its totals. Mailrelay API: GET /sent_campaigns/{id}.
| Parameter | Type | Description |
|---|---|---|
sent_campaign_id * | Numeric id (a number or a digit string). |
mailrelay_get_sent_campaign_clicks List clicks of a sent campaign
List the link clicks of one sent campaign, with browser, city, country and IP. Mailrelay API: GET /sent_campaigns/{id}/clicks.
| Parameter | Type | Description |
|---|---|---|
sent_campaign_id * | Numeric id (a number or a digit string). | |
page | integer | Page number (default 1). |
per_page | integer | Records per page, 1 to 100. |
unique | boolean | true = unique clicks, grouped by sent email. Omit for every click. |
mailrelay_list_unsubscribe_events List unsubscribe events
List unsubscribe events with their source, reason and IP. Mailrelay API: GET /unsubscribe_events.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default 1). |
per_page | integer | Records per page, 1 to 100. |
mailrelay_list_automations List automations
List automations (email workflows) with their enabled state. Mailrelay API: GET /automations.
| Parameter | Type | Description |
|---|---|---|
enabled | boolean | true = only enabled; false = only disabled. Omit for all. |
name_contains | string | Only automations whose name contains this text. |
page | integer | Page number (default 1). |
per_page | integer | Records per page, 1 to 100. |
mailrelay_get_automation_stats Get automation stats
Get the totals of one automation since it was created: sent, clicks, impressions and unsubscribes. The totals count only the blocks the automation has now. Mailrelay API: GET /automations/{id}/stats.
| Parameter | Type | Description |
|---|---|---|
automation_id * | Numeric id (a number or a digit string). | |
include_removed_blocks | boolean | true = also list the email and SMS blocks removed from the automation in the per-block breakdown. |
mailrelay_create_subscriber Add a subscriber
Add one subscriber with an email and a status, plus optional details and groups. Use active only for a subscriber who already opted in. inactive waits for a confirmation, which this server does not send. Adding can start the account's own automations. Mailrelay API: POST /subscribers.
| Parameter | Type | Description |
|---|---|---|
email * | string | The subscriber's email address. |
status * | string | active = already opted in; inactive = waits for confirmation. |
city | string | |
country | string | |
group_ids | array | Group ids to add the subscriber to. |
locale | string | |
name | string | |
sms_phone | string | Phone number for SMS, in international format. |
time_zone | string | |
whatsapp_phone | string | Phone number for WhatsApp, in international format. |
mailrelay_update_subscriber Update a subscriber
Change the details of one subscriber: name, location, phones, locale and time zone. Only the fields you pass are sent. Mailrelay API: PATCH /subscribers/{id}.
| Parameter | Type | Description |
|---|---|---|
subscriber_id * | Numeric id (a number or a digit string). | |
city | string | |
country | string | |
group_ids | array | The groups the subscriber should be in. Mailrelay sets this list. |
locale | string | |
name | string | |
sms_phone | string | |
state | string | |
time_zone | string | |
whatsapp_phone | string |
mailrelay_add_subscriber_tags Add tags to a subscriber
Add tags to one subscriber. Tags must already exist in Mailrelay; tags already set stay set. Adding can start the account's own automations. Mailrelay API: POST /subscribers/{subscriber_id}/tags.
| Parameter | Type | Description |
|---|---|---|
subscriber_id * | Numeric id (a number or a digit string). | |
tags * | array | Tag names (1 to 50). |
mailrelay_remove_subscriber_tags Remove tags from a subscriber
Remove tags from one subscriber. Unknown or unassigned tag names are ignored, and the subscriber stays in Mailrelay. Removing can start the account's own automations. Mailrelay API: DELETE /subscribers/{subscriber_id}/tags.
| Parameter | Type | Description |
|---|---|---|
subscriber_id * | Numeric id (a number or a digit string). | |
tags * | array | Tag names (1 to 50). |