Loops MCP server
82 operations17 webhooks
Email platform for software companies with Loops - manage contacts, properties, lists and suppressions, send events and transactional email, build campaigns, workflows, email messages, themes, components and footers, read metrics, and receive signed webhooks.
Try Loops with your agent
Connect Loops, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.
Using Corsair, show me what you can do in Loops on my account, then run one read-only example and show me the result.
Loops tools and triggers
Tools are what your agent can do in Loops through Corsair's MCP server. Triggers are the Loops events a routine can start from.
Footers
- CreateWrite
Create a footer with one variant. The variant starts with an unpublished draft that has the company name, company address and unsubscribe link. Emails cannot use the footer until you publish the variant.
footers.create
- DeleteDestructive
Delete a footer and its variants. You cannot delete the team's default footer or a footer that emails use.
footers.delete
- GetRead-only
Retrieve a single footer by ID, with the content of each variant.
footers.get
- Get VariantRead-only
Retrieve a footer variant's draft and published content as LMX.
footers.getVariant
- ListRead-only
Retrieve a paginated list of footers, most recently created first.
footers.list
- Publish VariantDestructive
Publish the variant's draft LMX content, to replace the current published LMX content. Emails that use the footer will immediately use the newly published content.
footers.publishVariant
- Set DefaultWrite
Make a published footer the team's default footer. New campaign and workflow emails use the default footer. `existingEmails` picks which existing emails switch to it. With `none`, only new emails use it.
footers.setDefault
- UpdateWrite
Update a footer's name or placement. Changes apply at once, also to running workflows. Emails already sent don't change. To change the default footer, use `POST /v1/footers/{footerId}/set-default`.
footers.update
- Update VariantWrite
Update a footer variant's LMX content. Emails keep the variant's published content until you publish the updated variant.
footers.updateVariant
Contacts
- CreateWrite
Create a contact with fixed and custom properties; answers 409 when the email or userId already exists
contacts.create
- Create PropertyWrite
Create a custom contact property.
contacts.createProperty
- DeleteDestructive
Permanently delete a contact by email or userId; the contact and its subscriptions cannot be restored
contacts.delete
- FindRead-only
Find contacts by email or user ID; answers an empty array when none match
contacts.find
- Get SuppressionRead-only
Read whether a contact is suppressed from emails and the quota left for removing suppressions
contacts.getSuppression
- List PropertiesRead-only
List the contact property definitions, all of them or only the custom ones
contacts.listProperties
- Remove SuppressionDestructive
Remove a suppressed contact from the suppression list by `email` or `userId`. Include only one query parameter. Uses one of a small rolling 30-day removal quota; the address can receive email again.
contacts.removeSuppression
- UpdateWrite
Update a contact found by email or userId, creating it when no match exists (upsert)
contacts.update
Workflow Nodes
- Add BranchWrite
Add a branch and a child node under an existing Branch or Experiment node. Returns the created child node plus the latest workflow. - Adding a branch to a `BranchNode` creates one `AudienceFilter` child node.
workflowNodes.addBranch
- CreateWrite
Create a new default workflow node and return it with the latest workflow.
workflowNodes.create
- DeleteDestructive
Delete a single workflow node. If contacts are queued at the node, Loops returns with `"status": "queuedContactsFound"` instead of deleting. Retry with `queuedContactPolicy: "discard"` to delete the node and discard those queued contacts.
workflowNodes.delete
- Delete RecursiveDestructive
Delete a node and its downstream subtree. If contacts are queued at any node that would be deleted, Loops returns with `"status": "queuedContactsFound"` instead of deleting.
workflowNodes.deleteRecursive
- GetRead-only
Retrieve detailed data for a single workflow node.
workflowNodes.get
- Get MetricsRead-only
Retrieve all-time email engagement metrics for a workflow `SendEmailAction` node. Nodes of any other type return a `400` response. A `SendEmailAction` node with an email that has not sent anything yet reports every counter as `0`.
workflowNodes.getMetrics
- RerouteWrite
Reroute the source node's existing connection to another valid target node. Returns the updated source node and the latest workflow.
workflowNodes.reroute
- UpdateWrite
Update workflow-node-owned fields for a single node. To update a node, the workflow's `state` must not be `Sending`. Shared resources such as email messages and audience segments should be updated through their own APIs.
workflowNodes.update
Transactional Emails
- CreateWrite
Create a new transactional email. An empty draft email message is created automatically and its `draftEmailMessageId` is returned.
transactionalEmails.create
- Ensure DraftWrite
Ensure the transactional email has a draft email message. If a draft already exists it is returned unchanged; otherwise a new empty draft is created (seeded from the most recent published version when present).
transactionalEmails.ensureDraft
- GetRead-only
Retrieve a single transactional email by ID.
transactionalEmails.get
- Get MetricsRead-only
Retrieve all-time delivery metrics for a transactional email, totalled across every published version.
transactionalEmails.getMetrics
- ListRead-only
Retrieve a paginated list of transactional emails, most recently created first.
transactionalEmails.list
- PublishDestructive
Publish the transactional email's current draft email message. The draft becomes the published version and the draft is cleared.
transactionalEmails.publish
- UpdateWrite
Update a transactional email's name or group. At least one field must be provided.
transactionalEmails.update
Workflows
- Change Mailing ListDestructive
Dry run or apply a workflow mailing list change. If queued contacts would be removed from the workflow due to the change of mailing list, Loops returns with `"status": "queuedContactsFound"` instead of applying the change.
workflows.changeMailingList
- CreateWrite
Create a draft workflow with a blank trigger and exit node. When `workflowGroupId` is omitted, the workflow is added to the team's Unsorted group.
workflows.create
- DeleteDestructive
Delete a workflow. Successful deletion returns `204 No Content`. If the workflow is currently sending or has queued contacts, Loops returns `409 Conflict` with a message instead of deleting.
workflows.delete
- GetRead-only
Retrieve a workflow graph with node type names, connections, and selected display fields.
workflows.get
- ListRead-only
Retrieve a paginated list of workflows.
workflows.list
- UpdateWrite
Update a workflow's name, description, or group. At least one field must be provided. To change the workflow's mailing list, use the `POST /v1/workflows/{workflowId}/mailing-list` endpoint instead.
workflows.update
Campaigns
- CreateDestructive
Create a new draft campaign. An empty email message is created automatically and its `emailMessageId` is returned. Use the `/email-messages/{emailMessageId}` endpoint to set subject, sender, preview text, and LMX content. Passing scheduling { method: "now" } sends the campaign to its whole audience right away.
campaigns.create
- GetRead-only
Retrieve a single campaign by ID.
campaigns.get
- Get MetricsRead-only
Retrieve all-time email engagement metrics for a campaign.
campaigns.getMetrics
- ListRead-only
Retrieve a paginated list of campaigns.
campaigns.list
- UpdateDestructive
Update a draft campaign's name, group, audience (mailing list, segment, or filter), or scheduling. At least one field must be provided. Once a campaign has been sent, only its `name` and `campaignGroupId` can be updated. Passing scheduling { method: "now" } on a draft sends it to its whole audience right away.
campaigns.update
Email Messages
- GetRead-only
Retrieve an email message, including its compiled LMX content.
emailMessages.get
- RenderRead-only
Render the HTML of an email message the way its preview email is rendered. Nothing is sent.
emailMessages.render
- Run GuardianRead-only
Validate an email message's content against Guardian rules and return any errors and warnings. Errors must be resolved before the email can be published, warnings are advisory.
emailMessages.runGuardian
- Send PreviewDestructive
Send a test preview of an email message to one or more addresses. Sends real preview emails to every listed address.
emailMessages.sendPreview
- UpdateWrite
Update fields on an email message (subject, preview text, sender, LMX content). A campaign must be in draft status. You can only edit the draft email message of a transactional email. A workflow must not be sending.
emailMessages.update
Campaign Groups
- CreateWrite
Create a new campaign group.
campaignGroups.create
- GetRead-only
Retrieve a single campaign group by ID.
campaignGroups.get
- ListRead-only
Retrieve a paginated list of campaign groups, most recently created first.
campaignGroups.list
- UpdateWrite
Update a campaign group's name or description. At least one field must be provided. The reserved "Unsorted" group cannot be edited.
campaignGroups.update
Components
- CreateWrite
Create a new email component from an LMX body.
components.create
- GetRead-only
Retrieve a single component by ID.
components.get
- ListRead-only
Retrieve a paginated list of email components.
components.list
- UpdateWrite
Update a component's name and/or body. When the `lmx` body changes, the update cascades to every email using this component, and `affectedEmailCount` reports how many were affected.
components.update
Themes
- CreateWrite
Create a new email theme for use across Loops emails.
themes.create
- GetRead-only
Retrieve a single theme by ID.
themes.get
- ListRead-only
Retrieve a paginated list of email themes, most recently created first.
themes.list
- UpdateWrite
Update a theme's name and/or styles. When `styles` change, the update cascades to every email using this theme, and `affectedEmailCount` in the response reports how many emails were affected.
themes.update
Transactional Groups
- CreateWrite
Create a new transactional group.
transactionalGroups.create
- GetRead-only
Retrieve a single transactional group by ID.
transactionalGroups.get
- ListRead-only
Retrieve a paginated list of transactional groups, most recently created first.
transactionalGroups.list
- UpdateWrite
Update a transactional group's name or description. At least one field must be provided. The reserved "Unsorted" group cannot be edited.
transactionalGroups.update
Workflow Groups
- CreateWrite
Create a new workflow group.
workflowGroups.create
- GetRead-only
Retrieve a single workflow group by ID.
workflowGroups.get
- ListRead-only
Retrieve a paginated list of workflow groups, most recently created first.
workflowGroups.list
- UpdateWrite
Update a workflow group's name or description. At least one field must be provided. The reserved "Unsorted" group cannot be edited.
workflowGroups.update
Audience Segments
- CreateWrite
Create a new audience segment.
audienceSegments.create
- GetRead-only
Retrieve a single audience segment by ID.
audienceSegments.get
- ListRead-only
Retrieve a paginated list of audience segments, most recently created first.
audienceSegments.list
Event Patterns
- GetRead-only
Retrieve event pattern details for a workflow event trigger.
eventPatterns.get
- Get By NameRead-only
Retrieve event pattern details by event name for a workflow event trigger. Event names are case-sensitive, so `PaymentReceived` and `paymentReceived` are different events.
eventPatterns.getByName
- ListRead-only
Retrieve a paginated list of event patterns available to workflow event trigger nodes.
eventPatterns.list
Transactional
- ListRead-only
Get a list of published transactional emails.
transactional.list
- SendDestructive
Send a published transactional email to a real inbox; pass an idempotencyKey (max 100 chars) to make a retry within 24 hours return 409 instead of a duplicate
transactional.send
Uploads
- CompleteWrite
Finalize an image upload after the file has been uploaded to the pre-signed URL. Returns the public URL of the uploaded image asset.
uploads.complete
- CreateWrite
Request a pre-signed URL to upload an image asset. Upload the file with an HTTP `PUT` to the returned `presignedUrl` (sending the same `Content-Type` and `Content-Length`), then call `/uploads/{emailAssetId}/complete` to finalize the asset. Answers a presigned URL; PUT the file bytes there yourself, then call uploads.complete.
uploads.create
Apikey
- Verify ConnectionRead-only
Verify the API key and return the team name it belongs to
apikey.verifyConnection
Dedicated Sending Ips
- ListRead-only
Retrieve a list of Loops' dedicated sending IP addresses. This endpoint is provided for the rare instances where you may need to whitelist our sending IPs.
dedicatedSendingIps.list
Events
- SendDestructive
Send an event for a contact; this can trigger workflows that email real people
events.send
Lists
- ListRead-only
List every mailing list in the team
lists.list
Connect Loops to Claude, ChatGPT or Cursor
- 1
Connect Loops in Corsair
Add your Loops API key once in Corsair. Corsair stores the credential encrypted and makes the Loops API calls for your agent, so it never goes into a prompt or a config file. Connect Loops
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs Loops. On a ChatGPT personal plan, connect Loops here first.
- 2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcpOpen Plugins → Add → Add custom connector, name it Corsair, paste the address, select Continue, then Add.Add a custom MCP server with the address and choose OAuth. Personal plans get read tools only.Add to CursorOr add this to~/.cursor/mcp.json. Cursor opens Corsair to sign in the first time it connects.{ "mcpServers": { "corsair": { "url": "https://mcp.corsair.dev/mcp" } } }Run this, then run/mcpin Claude Code to sign in.claude mcp add --transport http corsair https://mcp.corsair.dev/mcpCodex, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client
- 3
Sign in and choose what needs your approval
Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, Loops's read and write operations run right away and its 14 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.
FAQ
Install corsair and @corsair-dev/loops, add the Loops plugin, and connect with an API key. Then call methods like corsair.loops.api.apikey.verifyConnection() from your app. Corsair verifies webhooks, and keeps each tenant isolated.
Yes. Loops requires an API key from your Loops account or developer dashboard. Create credentials with access that matches what you automate, then paste them into Corsair or connect through managed auth in Hub.
Yes. One Corsair client can hit Loops, GitHub, Notion, Stripe, and the rest. Trigger Loops from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for email platform for software companies with Loops - manage contacts, properties, lists and suppressions, send events and transactional email, build campaigns, workflows, email messages, themes, components and footers, read metrics, and receive signed webhooks. Common builds include sync jobs, admin tooling, and agents that call Loops APIs from your backend. Webhook handlers react to Loops events and fan out to Slack, email, or other plugins in the same tenant.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per Loops API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/loops in the open repo. When Loops ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your Loops data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store Loops data on your behalf.
Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.
Yes. Put Loops on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 14 destructive Loops operations. You can change a link's mode at hub.corsair.dev/me.