courier-mcp

courier-mcp

trycourier

Official MCP server for Courier's notification API, providing 60 tools to send messages, manage user profiles, configure

Official MCP server for Courier's notification API, providing 60 tools to send messages, manage user profiles, configure lists, debug deliveries, and handle notification workflows.

11 views2Local (stdio)

About courier-mcp

courier-mcp is a community-built MCP server published by trycourier that provides AI assistants with tools and capabilities via the Model Context Protocol. Official MCP server for Courier's notification API, providing 60 tools to send messages, manage user profiles, configure It is categorized under communication. This server exposes 20 tools that AI clients can invoke during conversations and coding sessions.

How to install

You can install courier-mcp in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

License

courier-mcp is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

Tools (20)

send_message

Send a notification message

send_message_template

Send a message using a template

send_message_to_list

Send a message to a subscriber list

list_messages

List sent messages

get_message

Get details of a specific message

Courier MCP Server

The official Model Context Protocol (MCP) server for the Courier notification API. It gives AI agents full access to the Courier API — send messages, manage profiles, debug deliveries, configure lists, and more — through 60 tools backed by the @trycourier/courier Node SDK.

Install

Hosted (recommended)

Courier runs a hosted MCP server at https://mcp.courier.com. No local setup required.

Install in Cursor

Cursor — add to .cursor/mcp.json:

{
  "mcpServers": {
    "courier": {
      "url": "https://mcp.courier.com",
      "headers": {
        "api_key": "YOUR_COURIER_API_KEY"
      }
    }
  }
}

Claude Code:

claude mcp add courier --transport http --url https://mcp.courier.com --header "api_key: YOUR_COURIER_API_KEY"

Claude Desktop — add to claude_desktop_config.json:

{
  "mcpServers": {
    "courier": {
      "url": "https://mcp.courier.com",
      "headers": {
        "api_key": "YOUR_COURIER_API_KEY"
      }
    }
  }
}

Local development

git clone https://github.com/trycourier/courier-mcp.git
cd courier-mcp
sh dev.sh

Then point your IDE at http://localhost:3000 with the same config format above.

Tools

59 default tools organized by API resource, plus 1 diagnostic tool available in local installs.

Default tools

CategoryTools
Sendsend_message, send_message_template, send_message_to_list, send_message_to_list_template
Messageslist_messages, get_message, get_message_content, get_message_history, cancel_message
Profilesget_user_profile_by_id, create_or_merge_user, replace_profile, delete_profile, get_user_list_subscriptions, subscribe_user_to_lists, delete_user_list_subscriptions
Listslist_lists, get_list, get_list_subscribers, create_list, subscribe_user_to_list, unsubscribe_user_from_list
Audiencesget_audience, list_audience_members, list_audiences, update_audience, delete_audience
Notificationslist_notifications, get_notification_content, get_notification_draft_content
Brandscreate_brand, get_brand, list_brands
Authgenerate_jwt_for_user
User Tokenslist_user_push_tokens, get_user_push_token, create_or_replace_user_push_token
Docscourier_installation_guide
Automationsinvoke_automation_template, invoke_ad_hoc_automation
Bulkcreate_bulk_job, add_bulk_users, run_bulk_job, get_bulk_job, list_bulk_users
Audit Eventsget_audit_event, list_audit_events
Inboundtrack_inbound_event
Tenantsget_tenant, create_or_update_tenant, list_tenants, delete_tenant
Usersget_user_preferences, update_user_preference_topic, list_user_tenants, add_user_to_tenant, remove_user_from_tenant
Translationsget_translation, update_translation

Diagnostic tools (local only)

CategoryTools
Configget_environment_config — check which API key, base URL, and package version the MCP session is using

Architecture

courier-mcp/
├── mcp/                    # MCP package (@trycourier/courier-mcp on npm)
│   └── src/
│       ├── index.ts        # CourierMcp server class
│       ├── tools/          # Tool definitions (one file per API resource)
│       └── utils/          # Config, error handling, registry
├── server/                 # Express server (hosts the MCP package via HTTP)
│   └── src/index.ts        # Stateless HTTP handler
└── dev.sh                  # Local development launcher

The MCP package uses the official @trycourier/courier Node SDK (Stainless-generated) for all API calls. The SDK stays in sync with the Courier API spec automatically, so tool implementations are thin wrappers with proper error handling.

Configuration

HeaderRequiredDescription
api_keyYesYour Courier API key. Get one at app.courier.com/settings/api-keys.
base_urlNoOverride the API base URL. Defaults to https://api.courier.com.

Development

# Install dependencies
cd mcp && npm install && cd ../server && npm install && cd ..

# Start development server
sh dev.sh

# Run tests
cd mcp && npm test

# Build
cd mcp && npm run build

SDK dependency updates

The @trycourier/courier SDK dependency in mcp/ is updated automatically via Dependabot. Dependabot checks npm daily and opens a PR when a new SDK version is available.

  • Patch/minor bumps: review CI status, then merge.
  • Major bumps (labeled breaking-review): check whether any tool input schemas or error handling need updates before merging.

After merging a Dependabot PR, the full pipeline runs automatically:

  1. auto-version-bump.yml bumps the MCP package patch version and pushes to main.
  2. publish-npm.yml publishes the new version to npm.
  3. bump-services.yml opens a PR in trycourier/services to update the hosted MCP server.

Secrets required (set in repo Settings > Secrets and variables > Actions):

  • REPO_TOKEN — PAT with Contents: Read and write on this repo. Used by auto-version-bump.yml to push to main and trigger downstream workflows.
  • SERVICES_REPO_TOKEN — PAT with Contents: Read and write + Pull requests: Read and write on trycourier/services. Used by bump-services.yml to open dependency bump PRs.
  • NPM_TOKEN — npm publish token. Used by publish-npm.yml.

Links

Alternatives

Related Skills

Browse all skills
unity-editor-toolkit

Automate and control Unity Editor with 500+ commands, real-time WebSocket communication, and SQLite integration for efficient game development.

4
senior-data-scientist

World-class data science skill for statistical modeling, experimentation, causal inference, and advanced analytics. Expertise in Python (NumPy, Pandas, Scikit-learn), R, SQL, statistical methods, A/B testing, time series, and business intelligence. Includes experiment design, feature engineering, model evaluation, and stakeholder communication. Use when designing experiments, building predictive models, performing causal analysis, or driving data-driven decisions.

3
internal-comms

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

2
latex-posters

Create professional research posters in LaTeX using beamerposter, tikzposter, or baposter. Support for conference presentations, academic posters, and scientific communication. Includes layout design, color schemes, multi-column formats, figure integration, and poster-specific best practices for visual communication.

2
meta-automation-architect

Use when user wants to set up comprehensive automation for their project. Generates custom subagents, skills, commands, and hooks tailored to project needs. Creates a multi-agent system with robust communication protocol.

2
brand-voice-consistency

Ensure all communication matches brand voice and tone guidelines. Use when creating marketing copy, customer communications, public-facing content, or when users mention brand voice, tone, or writing style.

1