Skip to main content

Prerequisite: Create an API Key

You need a Courier API key to authenticate MCP requests. Create one in your Courier Settings, then replace YOUR_COURIER_API_KEY in the installation config below.
Each MCP client passes the key differently (header, flag, or config field), but the value is the same API key you’d use with the REST API or any Courier SDK.

Installation

In a terminal, run:
This registers the server for the current project. Add --scope user to make it available in every project.

Available Tools

The Courier MCP server exposes 145 tools covering the full Courier API surface: 144 default tools plus 1 diagnostic tool available in local installs. All tools are backed by the official @trycourier/courier Node SDK with typed error handling.

Send

Messages

Profiles

Lists

Audiences

Notifications

The standard V2 template workflow uses five tools in sequence: create_notificationput_notification_contentcreate_routing_strategypublish_notificationsend_message. Pass "state": "PUBLISHED" on create_notification to skip steps 2–4 for simple templates. See Manage Templates via API for a full walkthrough.
Templates are created in DRAFT state by default. Sending with a template ID that has never been published returns an error. Always call publish_notification before sending.

Brands

Auth

Device Tokens

Automations

Bulk

Tenants

Users

Routing Strategies

Journeys

Requests

Providers

Translations

Inbound

Audit Events

Preference Sections

Digests

Utility

Diagnostic (local installs only)

Error Handling

All tools return structured error responses when something goes wrong. Errors from the Courier API include the HTTP status code and message:
Common error codes: 400 (bad request), 401 (invalid API key), 404 (resource not found), 429 (rate limited).

What’s Next

Manage Templates (CLI & MCP)

Step-by-step tutorial: create, publish, send, and archive templates from MCP

AI Developer Tools

Overview of all Courier AI tools

CLI

Courier CLI for terminal workflows

Courier Skills

Best-practice guides for AI agents

API Reference

Full Courier API documentation