Mailrelay MCP by usefulapi

v1.2.1
io.usefulapi/mailrelay Checked 3 days ago Published 1 day ago

Read 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.

ParameterTypeDescription
end_time *stringFormat YYYY-MM-DD HH:MM:SS, for example 2026-11-01 00:00:00.
start_time *stringFormat 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.

ParameterTypeDescription
bannedbooleantrue = only banned subscribers. Omit for all.
bouncedbooleantrue = only subscribers whose address bounced. Omit for all.
created_fromstringISO 8601 date-time, for example 2026-01-01T00:00:00Z.
created_tostringISO 8601 date-time, for example 2026-01-01T00:00:00Z.
email_containsstringOnly subscribers whose email contains this text.
group_idsarrayOnly subscribers in any of these group ids.
include_groupsbooleanInclude each subscriber's groups.
include_tagsbooleanInclude each subscriber's tags.
name_containsstringOnly subscribers whose name contains this text.
pageintegerPage number (default 1).
per_pageintegerRecords per page, 1 to 100.
reported_spambooleantrue = only subscribers who reported spam. Omit for all.
sortstringSort field, optionally with "asc" or "desc", for example "created_at desc".
tag_namesarrayOnly subscribers with any of these tag names.
unsubscribedbooleantrue = 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}.

ParameterTypeDescription
subscriber_id *Numeric id (a number or a digit string).
include_groupsbooleanInclude the subscriber's groups.
include_tagsbooleanInclude 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.

ParameterTypeDescription
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.

ParameterTypeDescription
name_containsstringOnly groups whose name contains this text.
pageintegerPage number (default 1).
per_pageintegerRecords per page, 1 to 100.

mailrelay_get_group Get a group

Get one group by id. Mailrelay API: GET /groups/{id}.

ParameterTypeDescription
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.

ParameterTypeDescription
name_containsstringOnly segments whose name contains this text.
pageintegerPage number (default 1).
per_pageintegerRecords 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.

ParameterTypeDescription
segment_id *Numeric id (a number or a digit string).
email_containsstringOnly subscribers whose email contains this text.
pageintegerPage number (default 1).
per_pageintegerRecords per page, 1 to 100.

mailrelay_list_tags List tags

List the account's subscriber tags. Mailrelay API: GET /tags.

ParameterTypeDescription
name_containsstringOnly tags whose name contains this text.
pageintegerPage number (default 1).
per_pageintegerRecords 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.

ParameterTypeDescription
pageintegerPage number (default 1).
per_pageintegerRecords per page, 1 to 100.

mailrelay_list_campaigns List campaigns

List email campaigns with their subject and sender. Mailrelay API: GET /campaigns.

ParameterTypeDescription
pageintegerPage number (default 1).
per_pageintegerRecords per page, 1 to 100.
subject_containsstringOnly 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}.

ParameterTypeDescription
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.

ParameterTypeDescription
pageintegerPage number (default 1).
per_pageintegerRecords per page, 1 to 100.
statusstringOnly campaigns with this exact status name, as Mailrelay returns it in a sent campaign's status.
subject_containsstringOnly 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}.

ParameterTypeDescription
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.

ParameterTypeDescription
sent_campaign_id *Numeric id (a number or a digit string).
pageintegerPage number (default 1).
per_pageintegerRecords per page, 1 to 100.
uniquebooleantrue = 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.

ParameterTypeDescription
pageintegerPage number (default 1).
per_pageintegerRecords per page, 1 to 100.

mailrelay_list_automations List automations

List automations (email workflows) with their enabled state. Mailrelay API: GET /automations.

ParameterTypeDescription
enabledbooleantrue = only enabled; false = only disabled. Omit for all.
name_containsstringOnly automations whose name contains this text.
pageintegerPage number (default 1).
per_pageintegerRecords 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.

ParameterTypeDescription
automation_id *Numeric id (a number or a digit string).
include_removed_blocksbooleantrue = 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.

ParameterTypeDescription
email *stringThe subscriber's email address.
status *stringactive = already opted in; inactive = waits for confirmation.
citystring
countrystring
group_idsarrayGroup ids to add the subscriber to.
localestring
namestring
sms_phonestringPhone number for SMS, in international format.
time_zonestring
whatsapp_phonestringPhone 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}.

ParameterTypeDescription
subscriber_id *Numeric id (a number or a digit string).
citystring
countrystring
group_idsarrayThe groups the subscriber should be in. Mailrelay sets this list.
localestring
namestring
sms_phonestring
statestring
time_zonestring
whatsapp_phonestring

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.

ParameterTypeDescription
subscriber_id *Numeric id (a number or a digit string).
tags *arrayTag 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.

ParameterTypeDescription
subscriber_id *Numeric id (a number or a digit string).
tags *arrayTag names (1 to 50).