Connect your coding agent
Let Claude, ChatGPT, Cursor or Claude Code create your transactional emails, triggers and automations in Senlo through the MCP server.
"Add password reset. The email goes through Senlo."
The agent writes the endpoint, creates the
Password resettemplate and its trigger, puts the send call in your code and sends a test to your inbox.
Senlo has an MCP server, so a coding agent can build the email side of a feature while it builds the code. It makes ordinary Senlo records: templates open in the visual editor, where anyone on the team can change them later, and every change an agent makes is kept as a version marked MCP in the editor's History.
| Address | Sign-in | |
|---|---|---|
| Senlo Cloud | https://mcp.senlo.io/mcp | OAuth: you sign in and pick a workspace. No key. |
| Self-hosted | https://<your-senlo>/mcp | An API key with the manage permission. See Self-hosted. |
What the agent can do
- Templates: list, read, create and change them; preview the rendered email; send a test.
- Triggers: list, read, create and change the trigger your code sends.
- Automations: list, read, create and change drafts; run a test; go live or pause.
- Events: list the events your workspace receives and the fields they carry.
- Code: write the call that sends a trigger or an event, in JavaScript, Python, PHP or curl.
What it deliberately cannot do:
- Delete anything. Remove what you don't need in Senlo yourself.
- Email your customers. Test emails and automation test runs go only to members of your organization. Your app sends real email with its own key.
- Publish an automation on its own. It is told to go live only when you ask or agree.
Connect Senlo Cloud
You need a Senlo account with a workspace. On the first call your client opens a browser: sign in to Senlo and choose the workspace the agent works in. To switch workspaces later, disconnect and connect again.
Claude (web, desktop and mobile)
- In claude.ai, open Settings → Connectors and click Add custom connector.
- Name it
Senlo, pastehttps://mcp.senlo.io/mcpand click Add. - Click Connect, sign in to Senlo and choose the workspace.
The connector is shared by Claude on the web, Claude Desktop and the mobile apps: add it once.
Claude Code
claude mcp add --scope user --transport http senlo https://mcp.senlo.io/mcpThen run /mcp in Claude Code, pick senlo and choose Authenticate. Without --scope user the server is added to the current project only.
ChatGPT
Custom MCP servers need a paid ChatGPT plan and the web version.
- Open Plugins, click + and choose Add custom MCP server.
- Paste
https://mcp.senlo.io/mcpand choose OAuth as the authentication. Leave the advanced OAuth settings as ChatGPT fills them in. - Sign in to Senlo and choose the workspace.
Cursor
Add the server to ~/.cursor/mcp.json (every project) or .cursor/mcp.json (this one). The address is enough, no headers:
{
"mcpServers": {
"senlo": { "url": "https://mcp.senlo.io/mcp" }
}
}Then open Settings → Tools & MCP and click Connect next to senlo.
Other clients
Any client that supports remote MCP servers over Streamable HTTP with OAuth should work with the same address. Clients that only take a fixed header can use an API key instead, as on a self-hosted instance.
Check the connection
Ask the agent: "Call Senlo whoami." It answers with the workspace, its permissions and cloud.
Try it
Good first requests, with your own product in them:
- "Add password reset to this app. The email goes through Senlo: create the template and trigger, add the send call, and send me a test."
- "Bring this email into Senlo", with the HTML pasted. The agent rebuilds it as an editable template rather than storing HTML.
- "Build a welcome series: an email when a user signs up, a tip two days later if they haven't created a project. Ask me what you need first."
For an automation, the agent needs your real event names and the fields they carry. It looks them up with list_events, and asks you when an event has never reached the workspace yet. If you tell it to go ahead without answers, it ends with a list of everything it assumed, so you can check each one.
Warnings
Reading, creating or changing a template or an automation also returns warnings: things that saved but are probably wrong, such as an event the workspace never received, a field its events never carried, email variants with nothing for other values, or a button that links to your home page. The agent is told to fix them or tell you about them. Ask "Review automation 12" and it starts from these. See Warnings.
Disconnect
Open Organization → AI apps. It lists the AI apps connected to your account, the workspace each one works in and when it was last used. Disconnect signs the app out at once: its next call is refused and it asks you to sign in again.
Self-hosted
A self-hosted instance runs its own copy of the MCP server next to Senlo (see MCP server) and signs agents in with an API key, not OAuth.
- In the workspace, open API Keys, click Create Key and turn on manage. Keep this key apart from the one your app sends with: the agent's key cannot send real email, and your app's key cannot change templates.
- Connect with the key as a header.
claude mcp add --scope user --transport http senlo https://<your-senlo>/mcp \
--header "Authorization: Bearer snl_..."The .mcp.json file goes at the root of your repository: Claude Code fills in SENLO_MCP_KEY from each developer's environment, so the key is never committed.
On a self-hosted instance, tests go only to the project owner's address.
Troubleshooting
A tool is missing, or the agent says a tool doesn't exist. Clients load the list of tools when they connect. After the server is updated, start a new chat in Claude or ChatGPT, or reconnect the server in Claude Code (/mcp) and Cursor.
The agent works in the wrong workspace. The workspace is chosen at sign-in. Disconnect the app in Organization → AI apps and connect again.
RECIPIENT_NOT_ALLOWED on a test. Tests go only to members of your organization. Invite the address to the organization, or send for real through the trigger from your code.
RATE_LIMITED on tests. Test emails and test runs are limited to 10 a minute and 100 an hour per workspace. The agent is told to wait the seconds in the hint.
Cursor shows several "Cursor" apps. Cursor registers itself again each time the server is turned on or you sign in again. Organization → AI apps shows one row for it, and Disconnect signs out all of them.
The rules agents follow
The server hands agents a guide (get_guide, the same as GET /api/v1/guide): the template format, design rules, how triggers and automations work, and when to ask before guessing. The tools are a thin layer over API v1, which you can also call directly with a manage key.