Courier MCP by usefulapi
Read messages, templates, brands and lists; send messages and manage list subscribers in Courier.
사용해야 할까요
품질 및 안전성
발견 사항 (3)
- LOWcourier_list_notification_templates에서
- LOWcourier_get_notification_template에서
- LOWcourier_unsubscribe_user_from_list에서
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"courier": {
"url": "https://courier.usefulapi.io/mcp"
}
}
}원격 엔드포인트
https://courier.usefulapi.io/mcpstreamable-http할 수 있는 일
도구 목록
도구 (24)
🟢courier_list_messages(status, event, list, recipient, provider, ...)
List recently sent messages, newest first, with status, recipient, channel and provider. Filter by status, event, list, recipient, tag or enqueued_after. Paged by cursor. GET /messages.
입력 스키마
{
"type": "object",
"properties": {
"status": {
"description": "Filter by message status (repeat values allowed).",
"type": "array",
"items": {
"type": "string"
}
},
"event": {
"description": "Filter by notification event id.",
"type": "string"
},
"list": {
"description": "Filter by list id.",
"type": "string"
},
"recipient": {
"description": "Filter by recipient user id.",
"type": "string"
},
"provider": {
"description": "Filter by provider key (repeat values allowed).",
"type": "array",
"items": {
"type": "string"
}
},
"tag": {
"description": "Filter by tag (repeat values allowed).",
"type": "array",
"items": {
"type": "string"
}
},
"tenant_id": {
"description": "Filter by tenant id.",
"type": "string"
},
"enqueued_after": {
"description": "Only messages enqueued after this value, as the API defines it.",
"type": "string"
},
"cursor": {
"description": "Cursor from a previous page's paging.cursor.",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢courier_get_message(message_id)
Get one message by id (the requestId returned by courier_send_message), with its delivery status and provider. GET /messages/{message_id}.
입력 스키마
{
"type": "object",
"properties": {
"message_id": {
"type": "string",
"minLength": 1,
"description": "The message id."
}
},
"required": [
"message_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢courier_get_message_history(message_id, type)
Get the delivery history events for one message (status changes per channel). GET /messages/{message_id}/history.
입력 스키마
{
"type": "object",
"properties": {
"message_id": {
"type": "string",
"minLength": 1,
"description": "The message id."
},
"type": {
"description": "Optional history filter type, as the API defines it.",
"type": "string"
}
},
"required": [
"message_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢courier_list_notification_templates(tags, cursor)
List the workspace notification templates with their name, tags, brand, routing and draft or published state. GET /notifications.
입력 스키마
{
"type": "object",
"properties": {
"tags": {
"description": "Filter by tags, as the API defines them.",
"type": "string"
},
"cursor": {
"description": "Cursor from a previous page's paging.cursor.",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢courier_get_notification_template(template_id, version)
Get one notification template by id or alias. Returns the published version by default; version=draft returns the unpublished one. GET /notifications/{id}.
입력 스키마
{
"type": "object",
"properties": {
"template_id": {
"type": "string",
"minLength": 1,
"description": "The notification template id (nt_...) or its alias."
},
"version": {
"description": "Which version to read (default published).",
"type": "string",
"enum": [
"published",
"draft"
]
}
},
"required": [
"template_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢courier_list_brands(cursor)
List the brands (logo, colors, layout) that templates can use. GET /brands.
입력 스키마
{
"type": "object",
"properties": {
"cursor": {
"description": "Cursor from a previous page's paging.cursor.",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢courier_get_brand(brand_id)
Get one brand by id, with its colors, logo and layout settings. GET /brands/{brand_id}.
입력 스키마
{
"type": "object",
"properties": {
"brand_id": {
"type": "string",
"minLength": 1,
"description": "The brand id."
}
},
"required": [
"brand_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢courier_list_lists(pattern, cursor)
List the static recipient lists in the workspace. Optionally filter by list id pattern. GET /lists.
입력 스키마
{
"type": "object",
"properties": {
"pattern": {
"description": "List id pattern filter, as the API defines it.",
"type": "string"
},
"cursor": {
"description": "Cursor from a previous page's paging.cursor.",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢courier_get_list(list_id)
Get one list by id, with its name and metadata. GET /lists/{list_id}.
입력 스키마
{
"type": "object",
"properties": {
"list_id": {
"type": "string",
"minLength": 1,
"description": "The list id."
}
},
"required": [
"list_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢courier_list_list_subscribers(list_id, cursor)
List the user subscriptions of one list, with their preferences. Paged by cursor. GET /lists/{list_id}/subscriptions.
입력 스키마
{
"type": "object",
"properties": {
"list_id": {
"type": "string",
"minLength": 1,
"description": "The list id."
},
"cursor": {
"description": "Cursor from a previous page's paging.cursor.",
"type": "string"
}
},
"required": [
"list_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢courier_get_profile(user_id)
Get one user profile: the contact details Courier delivers to (email, phone, push tokens) and custom data. GET /profiles/{user_id}.
입력 스키마
{
"type": "object",
"properties": {
"user_id": {
"type": "string",
"minLength": 1,
"description": "The user id."
}
},
"required": [
"user_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢courier_get_user_preferences(user_id, tenant_id)
Get one user's notification preferences per topic and per channel. GET /users/{user_id}/preferences.
입력 스키마
{
"type": "object",
"properties": {
"user_id": {
"type": "string",
"minLength": 1,
"description": "The user id."
},
"tenant_id": {
"description": "Read the preferences in this tenant.",
"type": "string"
}
},
"required": [
"user_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢courier_list_providers(cursor)
List the channel providers configured in the workspace (email, SMS, push, chat). GET /providers.
입력 스키마
{
"type": "object",
"properties": {
"cursor": {
"description": "Cursor from a previous page's paging.cursor.",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢courier_list_journeys(version, cursor)
List the multi-step journeys (workflows) in the workspace. GET /journeys.
입력 스키마
{
"type": "object",
"properties": {
"version": {
"description": "Read this version, as the API defines it.",
"type": "string"
},
"cursor": {
"description": "Cursor from a previous page's paging.cursor.",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢courier_list_broadcasts(limit, cursor)
List one-off broadcasts (sends to a list or audience), with their state. GET /broadcasts.
입력 스키마
{
"type": "object",
"properties": {
"limit": {
"description": "Results per page (1 to 1000).",
"type": "integer",
"minimum": 1,
"maximum": 1000
},
"cursor": {
"description": "Cursor from a previous page's paging.cursor.",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢courier_list_automations(version, cursor)
List the automation templates that you can invoke with courier_invoke_automation. GET /automations.
입력 스키마
{
"type": "object",
"properties": {
"version": {
"description": "Read this version, as the API defines it.",
"type": "string"
},
"cursor": {
"description": "Cursor from a previous page's paging.cursor.",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢courier_list_tenants(parent_tenant_id, limit, cursor)
List tenants (organizations, teams or accounts that users belong to). GET /tenants.
입력 스키마
{
"type": "object",
"properties": {
"parent_tenant_id": {
"description": "Only tenants under this parent tenant id.",
"type": "string"
},
"limit": {
"description": "Results per page.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"cursor": {
"description": "Cursor from a previous page's paging.cursor.",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢courier_list_audit_events(cursor)
List workspace audit events (who changed what in the console or through the API). Paged by cursor. GET /audit-events.
입력 스키마
{
"type": "object",
"properties": {
"cursor": {
"description": "Cursor from a previous page's paging.cursor.",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴courier_send_message(to, template, data, brand_id, idempotency_key)
Send a notification from a template to one recipient, a list or a tenant. Courier routes it to the channels in the template. Sends real messages. Pass an idempotency_key to make retries safe. Returns a requestId. POST /send.
입력 스키마
{
"type": "object",
"properties": {
"to": {
"type": "object",
"properties": {
"user_id": {
"description": "Courier user id.",
"type": "string"
},
"email": {
"description": "Email address (used when the profile has no user_id).",
"type": "string"
},
"phone_number": {
"description": "Phone number in E.164 format.",
"type": "string"
},
"list_id": {
"description": "Send to every subscriber of this list.",
"type": "string"
},
"tenant_id": {
"description": "Send to every user of this tenant.",
"type": "string"
}
},
"description": "Who receives the message: set one of user_id, email, phone_number, list_id or tenant_id."
},
"template": {
"type": "string",
"minLength": 1,
"description": "Template id (nt_...) or alias to send."
},
"data": {
"description": "Variables for the template.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"brand_id": {
"description": "Brand id to use instead of the template's brand.",
"type": "string"
},
"idempotency_key": {
"description": "A unique key, such as a UUID, reused only for a retry of the same send.",
"type": "string",
"minLength": 1,
"maxLength": 200
}
},
"required": [
"to",
"template"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴courier_cancel_message(message_id)
Cancel a message that is queued or scheduled and not yet delivered. POST /messages/{message_id}/cancel.
입력 스키마
{
"type": "object",
"properties": {
"message_id": {
"type": "string",
"minLength": 1,
"description": "The message id."
}
},
"required": [
"message_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟡courier_subscribe_user_to_list(list_id, user_id, preferences)
Subscribe one user to a list, with optional per-topic preferences. Idempotent: subscribing again updates the subscription. PUT /lists/{list_id}/subscriptions/{user_id}.
입력 스키마
{
"type": "object",
"properties": {
"list_id": {
"type": "string",
"minLength": 1,
"description": "The list id."
},
"user_id": {
"type": "string",
"minLength": 1,
"description": "The user id."
},
"preferences": {
"description": "Per-topic channel preferences, as the API defines them.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"required": [
"list_id",
"user_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴courier_unsubscribe_user_from_list(list_id, user_id)
Remove one user's subscription from a list, so the list no longer sends to that user. DELETE /lists/{list_id}/subscriptions/{user_id}.
입력 스키마
{
"type": "object",
"properties": {
"list_id": {
"type": "string",
"minLength": 1,
"description": "The list id."
},
"user_id": {
"type": "string",
"minLength": 1,
"description": "The user id."
}
},
"required": [
"list_id",
"user_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴courier_invoke_automation(template_id, recipient, data, profile, brand)
Run an automation template for one recipient, with data. The automation sends its messages. POST /automations/{templateId}/invoke.
입력 스키마
{
"type": "object",
"properties": {
"template_id": {
"type": "string",
"minLength": 1,
"description": "The automation template id (from courier_list_automations)."
},
"recipient": {
"description": "The recipient user id.",
"type": "string"
},
"data": {
"description": "Data for the automation steps.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"profile": {
"description": "Profile fields to use for the recipient.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"brand": {
"description": "Brand id to use.",
"type": "string"
}
},
"required": [
"template_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟡courier_track_event(event, user_id, message_id, properties)
Send a track event for one user, tied to a message id, so journeys and automations can react to it. Records a real event in the workspace. POST /inbound/courier.
입력 스키마
{
"type": "object",
"properties": {
"event": {
"type": "string",
"minLength": 1,
"description": "Event name, such as order_shipped."
},
"user_id": {
"type": "string",
"minLength": 1,
"description": "The user id."
},
"message_id": {
"type": "string",
"minLength": 1,
"description": "The message id this event relates to (any id you choose if none)."
},
"properties": {
"default": {},
"description": "Event properties.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"required": [
"event",
"user_id",
"message_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}커뮤니티
증거