Courier MCP by usefulapi
Read messages, templates, brands and lists; send messages and manage list subscribers in Courier.
¿Debería usar esto?
Calidad y seguridad
Hallazgos (3)
- LOWen courier_list_notification_templates
- LOWen courier_get_notification_template
- LOWen courier_unsubscribe_user_from_list
Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.
Costo de contexto
Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.
Instalar
Instalación con un clic
Agrega esto a tu archivo `claude_desktop_config.json`:
{
"mcpServers": {
"courier": {
"url": "https://courier.usefulapi.io/mcp"
}
}
}Puntos de conexión remotos
https://courier.usefulapi.io/mcpstreamable-httpQué puede hacer
Inventario de herramientas
Herramientas (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.
Esquema de entrada
{
"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}.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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}.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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}.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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}.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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}.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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}.
Esquema de entrada
{
"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}.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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"
}Comunidad
Evidencia