Courier MCP server for AI agents

Live

BEARER TOKEN

NOTIFICATIONS

Communication

Courier gives your agent notification delivery in your Courier workspace: send messages and trigger automations, inspect message status and delivery history, manage templates, brands, lists, and audiences, and edit user profiles and preferences.

  • Per-user credentials: each call uses the actual user's access token, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Courier
agent · Acme Q3
Run
Did the password reset email to jane@example.com get delivered?
S
courier_messages_list
310ms
Notifications agent
The password reset message to jane@example.com was delivered by the email provider 2 minutes after it was sent.
Sources: Courier messages, 1 message
courier
1 message
18:29
Message Claude...

Tools your notifications agent reaches for on Courier, scoped per user.

CALL ANY TOOL
58 tools for notifications in Courier: send messages, run automations, inspect delivery history, manage templates, brands, lists, and audiences, and edit user profiles and preferences.
courier_audience_delete
Delete audience
Delete an audience permanently, so update any caller sending to it by audience id first. Returns an empty response on success (HTTP 204). Needs audience_id from courier_audiences_list.
Parameters
Name
Type
Required
Description
audience_id
string
Required
A unique identifier representing the audience id. Example: vip-customers
courier_audience_get
Get audience
courier_audience_members_list
List audience members
courier_audience_upsert
Upsert audience
courier_automation_invoke
Invoke automation
courier_automation_invoke_ad_hoc
Automation invoke ad hoc
courier_automation_runs_list
List automation runs
courier_brand_create
Create brand
courier_brand_delete
Delete brand
courier_event_track
Event track
courier_list_delete
Delete list
courier_list_subscribers_add
Add list subscribers
courier_list_upsert
Upsert list
courier_lists_list
List lists
courier_message_cancel
Cancel message
courier_message_content_get
Get message content
courier_message_history_get
Get message history
courier_message_send
Send message
courier_profile_lists_get
Get profile lists
courier_profile_lists_subscribe
Profile lists subscribe
courier_profile_merge
Merge profile
courier_profile_patch
Profile patch
courier_request_archive
Archive request
courier_template_content_replace
Template content replace
courier_template_get
Get template
courier_template_publish
Publish template
courier_templates_list
List templates
courier_user_preference_delete
Delete user preference
courier_user_preference_update
Update user preference
courier_user_token_add
Add user token

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Courier tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["courier"], toolNames: [
    "courier_message_send",
    "courier_message_get",
    "courier_template_publish"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Send the welcome template to this user, check its delivery status, and publish the updated template" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["courier"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Send the welcome template to this user, check its delivery status, and publish the updated template" }],
  tools,
});

// Execute the tool call with the user's vaulted Courier access token
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["courier"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Send the welcome template to this user, check its delivery status, and publish the updated template" }],
  tools,
});

// Tool call runs with the user's vaulted Courier access token
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["courier"] }, pageSize: 100,
});

const agent = new Agent({
  name: "notifications_agent",
  model: "gemini-2.5-pro",
  instruction: "Courier tools scoped to this user",
  tools,
});

await agent.run("Send the welcome template to this user, check its delivery status, and publish the updated template");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Courier tool. Click to copy, paste into your agent, done.
Send and track
Copy the prompt
Copied
Send the welcome template to this user.
Copy the prompt
Copied
Show the delivery history of this message.
Copy the prompt
Copied
List the messages sent in the last 24 hours.
Templates and brands
Copy the prompt
Copied
List my notification templates.
Copy the prompt
Copied
Publish the current draft of the order shipped template.
Copy the prompt
Copied
Create a brand with these primary and secondary colors.
Users and audiences
Copy the prompt
Copied
Show the stored profile for this user.
Copy the prompt
Copied
Opt this user out of marketing emails.
Copy the prompt
Copied
List the members of the beta testers audience.
SEE HOW AUTH WORKS
Each user connects their own Courier access token once; Scalekit sends it with every call. Tokens stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Courier
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Courier
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Courier
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Courier
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other communication and marketing connectors.
Support and Ops Teams
Support ticket automation agent
Fetches new Zendesk tickets, drafts a reply from Notion knowledge base articles, digests what it cannot answer to Slack, and archives the rest, acting as the support agent rather than a shared API key.
Engineering Teams
Slack triage
Polls Slack for new messages, classifies bugs and support requests with a LangGraph router, files GitHub issues or Zendesk tickets, and confirms in the thread.
Test other agents
See the same per-user auth pattern across other communication and marketing connectors.
SUPPORT
Support ticket automation (Google ADK)
Fetch, annotate, and archive Zendesk tickets with Notion context, digesting anything it cannot answer to Slack.
ENGINEERING
Slack triage agent
Classify new Slack messages as bugs or support requests, file the GitHub issue or Zendesk ticket, and reply in the thread.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Courier access token looks fine in a demo. In production every message send and profile change looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared token
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Courier today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Courier as the user or through a shared key?
As the user. Each user connects their own Courier access token once, and Scalekit sends it with every call. Audit logs attribute every message send and profile change to that user, not a shared service account.
Where is the Courier access token stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new access token. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Courier?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the message and template read tools without courier_message_send, courier_profile_delete, and courier_audience_delete. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Courier access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Can the agent cancel a message that has not been delivered yet?
Yes, if you expose courier_message_cancel. It cancels a message that is still queued or delayed, for example inside a digest or a delay step. courier_message_history_get shows each status transition so the agent can check first.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""courier"": {
""url"": ""https://mcp.scalekit.com/courier"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.courier]
url = ""https://mcp.scalekit.com/courier""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""courier"": {
""url"": ""https://mcp.scalekit.com/courier"",
""type"": ""http""
}
}
}