> ## Documentation Index
> Fetch the complete documentation index at: https://www.courier.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Install the Courier skill before writing code: `npx skills add trycourier/courier-skills`. It carries the verified SDK shapes and the rules you cannot get wrong.
> Authenticate every request with `Authorization: Bearer <API_KEY>`. A workspace has several environments and each has its own keys, which are plain `pk_` strings with no environment prefix. Start with Test.
> Send with `client.send.message` from the Node SDK (`@trycourier/courier` v7 and later, where the client is the default import). Reference a template by its `nt_` id or its alias.
> A send accepts a bare Elemental element list, but storing content on a template requires the top-level elements wrapped in a channel element.
> To translate a template, write one locale at a time with `PUT /notifications/{id}/locales/{localeId}`, which merges into the existing translations. `PUT /notifications/{id}/content` and `PUT /notifications/{id}/elements/{elementId}` overwrite translations along with the content, so send each element's `id` and `locales` back, and first remove every `checksum` and any `locales` key that starts with an underscore.
> Templates and journeys can be built in the Courier app or created through the API. Either way they live in the workspace and are referenced by ID when you send.
> The hosted MCP server is https://mcp.courier.com. For a briefing on what Courier is and when to use it, read https://www.courier.com/llms.txt.
> Prefer the Guides tab for how-do-I questions and the Docs tab for how-does-it-behave questions. The API reference lives under /api-reference.

# Build with AI: agent skills, MCP server, and CLI

> Connect Claude Code, Cursor, Codex, or any AI coding agent to Courier with Courier Skills, the MCP server, the CLI, and docs built for agents to read.

Your AI coding agent needs two things to build notifications with Courier: knowledge of how Courier works, and access to your workspace. [Courier Skills](https://www.courier.com/docs/resources/skills.md) gives it the first. The [MCP server](https://www.courier.com/docs/resources/mcp.md) and the [Courier CLI](https://www.courier.com/docs/resources/cli.md) give it the second.

Install Courier Skills so the agent knows how to build with Courier. It needs no API key:

```bash theme={null}
npx skills add trycourier/courier-skills
```

Then connect the MCP server so the agent can create templates, send test notifications, and read delivery logs in your workspace. In Claude Code:

```bash theme={null}
claude mcp add --transport http courier https://mcp.courier.com --header api_key:YOUR_COURIER_API_KEY
```

[MCP server](https://www.courier.com/docs/resources/mcp.md) has setup for Claude Code, Cursor, Codex, VS Code, and nine other clients.

## Courier Skills

Courier Skills gives your coding agent Courier's own guidance: how to call the API, which feature fits each job, and the rules each channel needs. Your agent gets Courier code right the first time, so it codes faster and spends fewer tokens searching docs or retrying calls that fail. It loads only the files a task needs, and it can debug the Courier code you already have.

The skill touches nothing in your workspace, so it needs no API key. [Courier Skills](https://www.courier.com/docs/resources/skills.md) covers the Claude Code plugin and how to check it loaded.

## MCP server

The hosted MCP server at `https://mcp.courier.com` turns the Courier API into tools your agent calls from a chat session. That makes it easy to test and debug with Courier without leaving your agent: send a test notification, check what was delivered, and read the logs when something fails. Ask in plain language:

```text wrap theme={null}
Create a profile for user_123 with sarah@acme-corp.com, send them my welcome template, and show me the delivery status.
```

**Tool calls run with the key you connect.** A production key sends to real users, so connect a Test key while you build. [MCP tools](https://www.courier.com/docs/resources/mcp/tools.md) lists every tool and marks which ones write.

## Courier CLI

The CLI covers the same API as the MCP server, as shell commands an agent, script, or CI job can run:

```bash theme={null}
npm install -g @trycourier/cli
export COURIER_API_KEY="YOUR_COURIER_API_KEY"

courier send message \
  --message.to '{"user_id": "user_123"}' \
  --message.template "nt_01kx4h2jdafq8bk9aftxak4b40"
```

[Courier CLI](https://www.courier.com/docs/resources/cli.md) covers flags and output formats. [CLI recipes](https://www.courier.com/docs/resources/cli/recipes.md) has a command for each common task.

## Docs for agents

Every docs page is available in a form agents read cheaply, with no API key:

| Source | Use it for |
| - | - |
| `https://www.courier.com/docs/mcp` | A docs MCP server that searches and reads every page and the OpenAPI specs |
| Any page URL + `.md` | One page as plain markdown |
| [`llms.txt`](https://www.courier.com/docs/llms.txt) | An index of every page, per the [llms.txt standard](https://llmstxt.org/) |
| [`llms-full.txt`](https://www.courier.com/docs/llms-full.txt) | The full docs in one file |

**`llms-full.txt` is over 3 MB**, enough to crowd out your code in a coding session. Point the agent at the docs MCP server or single `.md` pages instead.

## API keys

The MCP server and the CLI need a key. [Create one in Platform → API Keys](https://app.courier.com/settings/api-keys).

Each key belongs to one [environment](https://www.courier.com/docs/workspaces/environments.md). A Test key comes with a testing provider, so the agent can send before you set up a real one.

## FAQ

> [accordion] What is the difference between Courier Skills and the MCP server?
>
> Courier Skills changes the code your agent writes and touches nothing in your workspace. The MCP server gives the agent tools that call the Courier API, so it can create templates, send notifications, and read delivery logs. Most setups install both.

> [accordion] Which AI coding tools work with Courier?
>
> Courier Skills installs into Claude Code, Cursor, Codex, Windsurf, Cline, and any tool that loads agent skills. The MCP server has setup steps for Claude Code, Cursor, Codex, VS Code, Windsurf, Gemini CLI, Antigravity, Zed, Warp, OpenCode, Grok Build, Devin, and Claude Desktop.

> [accordion] Can an AI agent send a real notification through Courier?
>
> An agent connected to the MCP server or CLI sends through the same API your application uses. A Test key keeps sends in your Test environment. A production key reaches real users.

> [accordion] Does Courier have an MCP server for its documentation?
>
> Courier hosts a docs MCP server at `https://www.courier.com/docs/mcp`. It needs no API key and is separate from the API MCP server at `https://mcp.courier.com`.
