Loops for AI agents.
Loops integration for AI agents with secure authentication and server-side credential injection. Open Connector runs the OAuth, seals the token in an encrypted vault, and serves Loops tools to your agent over MCP or a typed API — credentials injected server-side, every call audited, nothing leaving your infrastructure. Open source (AGPL-3.0) and self-hostable.
# Add your Open Connector MCP server (per-user mcp_url)
$ claude mcp add --transport http \
open-connector <your mcp_url>
# Then ask: “open an issue for the launch checklist”// .cursor/mcp.json
{
"mcpServers": {
"open-connector": { "url": "<your mcp_url>" }
}
}const composio = new Composio({
apiKey: "oc_…",
baseURL: "https://connect.acme.com", // your host
});
await composio.tools.proxy({ … });{
"tool": "LOOPS_DELETE_V1_CONTACTS_SUPPRESSION",
"arguments": { … }
}Real Loops actions, managed and audited.
Your user connects Loops once; your agent can then send transactional emails and events, create and update contacts, and draft campaigns — scoped to the OAuth permissions you grant and the tool allowlist you configure. Every action is least-privilege and written to a tamper-evident audit trail.
- 01Connect
Your user grants Loops access once (OAuth) — the token lands in the vault.
- 02Call
Your agent calls a tool over MCP or the typed API; Open Connector injects the credential server-side.
- 03Audit
Every routed call appends a hash-chained audit record — nothing leaves your infra.
Supported Loops tools.
Browse 51 tools in the Loops catalog. Each action uses your configured authentication and tool allowlist.
Showing 51 tools.
- Remove a contact from suppression list
- LOOPS_DELETE_V1_CONTACTS_SUPPRESSION
- Remove a suppressed contact from the suppression list by `email` or `userId`. Include only one query parameter.
- Contacts
- List audience segments
- LOOPS_GET_V1_AUDIENCE_SEGMENTS
- Retrieve a paginated list of audience segments, most recently created first.
- Audience segments
- Get an audience segment
- LOOPS_GET_V1_AUDIENCE_SEGMENTS_AUDIENCE_SEGMENT_ID
- Retrieve a single audience segment by ID.
- Audience segments
- List campaign groups
- LOOPS_GET_V1_CAMPAIGN_GROUPS
- Retrieve a paginated list of campaign groups, most recently created first.
- Campaign groups
- Get a campaign group
- LOOPS_GET_V1_CAMPAIGN_GROUPS_CAMPAIGN_GROUP_ID
- Retrieve a single campaign group by ID.
- Campaign groups
- Find a contact
- LOOPS_GET_V1_CONTACTS_FIND
- Search for a contact by `email` or `userId`. Only one parameter is allowed.
- Contacts
- Get a list of contact properties
- LOOPS_GET_V1_CONTACTS_PROPERTIES
- Retrieve a list of your account's contact properties.<br>Use the `list` parameter to query "all" or "custom" properties.
- Contact properties
- Get suppression status for a contact
- LOOPS_GET_V1_CONTACTS_SUPPRESSION
- Retrieve suppression status and removal quota for a contact by `email` or `userId`. Include only one query parameter.
- Contacts
- Get dedicated sending IP addresses
- LOOPS_GET_V1_DEDICATED_SENDING_IPS
- Retrieve a list of Loops' dedicated sending IP addresses.
- Dedicated sending IPs
- Get an email message
- LOOPS_GET_V1_EMAIL_MESSAGES_EMAIL_MESSAGE_ID
- Retrieve an email message, including its compiled LMX content.
- Email messages
- Run Guardian checks on an email message
- LOOPS_GET_V1_EMAIL_MESSAGES_EMAIL_MESSAGE_ID_GUARDIAN
- 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.
- Email messages
- Get a list of mailing lists
- LOOPS_GET_V1_LISTS
- Retrieve a list of your account's mailing lists.
- Mailing lists
- List themes
- LOOPS_GET_V1_THEMES
- Retrieve a paginated list of email themes, most recently created first.
- Themes
- List transactional emails
- LOOPS_GET_V1_TRANSACTIONAL
- Get a list of published transactional emails.
- Transactional emails
- List transactional emails
- LOOPS_GET_V1_TRANSACTIONAL_EMAILS
- Retrieve a paginated list of transactional emails, most recently created first.
- Transactional emails
- Get a transactional email
- LOOPS_GET_V1_TRANSACTIONAL_EMAILS_TRANSACTIONAL_ID
- Retrieve a single transactional email by ID.
- Transactional emails
- List transactional groups
- LOOPS_GET_V1_TRANSACTIONAL_GROUPS
- Retrieve a paginated list of transactional groups, most recently created first.
- Transactional groups
- Get a transactional group
- LOOPS_GET_V1_TRANSACTIONAL_GROUPS_TRANSACTIONAL_GROUP_ID
- Retrieve a single transactional group by ID.
- Transactional groups
- Get a simplified workflow
- LOOPS_GET_WORKFLOW
- Retrieve a workflow graph with node type names, connections, and selected display fields.
- Workflows
- Get workflow node details
- LOOPS_GET_WORKFLOW_NODE
- Retrieve detailed data for a single workflow node.
- Workflows
- Create a campaign
- LOOPS_POST_V1_CAMPAIGNS
- 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. The audience (mailing list, segment, or filter), group, and scheduling can be set on create or later via update.
- Campaigns
- Update a campaign
- LOOPS_POST_V1_CAMPAIGNS_CAMPAIGN_ID
- Update a draft campaign's name, group, audience (mailing list, segment, or filter), or scheduling. At least one field must be provided. Campaigns can only be updated while in draft status.
- Campaigns
- Update a campaign group
- LOOPS_POST_V1_CAMPAIGN_GROUPS_CAMPAIGN_GROUP_ID
- Update a campaign group's name or description. At least one field must be provided. The reserved "Unsorted" group cannot be edited.
- Campaign groups
- Update a component
- LOOPS_POST_V1_COMPONENTS_COMPONENT_ID
- 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. A change that would introduce a dynamic variable an email using the component cannot use is rejected.
- Components
- Create a contact property
- LOOPS_POST_V1_CONTACTS_PROPERTIES
- Add a contact property to your team.
- Contact properties
- Update an email message
- LOOPS_POST_V1_EMAIL_MESSAGES_EMAIL_MESSAGE_ID
- Update fields on an email message (subject, preview text, sender, LMX content). The campaign must be in draft status. Supply `expectedRevisionId` matching the current `contentRevisionId` — the server rejects mismatched revisions with 409.
- Email messages
- Send a preview of an email message
- LOOPS_POST_V1_EMAIL_MESSAGES_EMAIL_MESSAGE_ID_PREVIEW
- Send a test preview of an email message to one or more addresses. The accepted variable fields depend on the parent's type - campaign previews accept `contactProperties`, workflow previews accept `contactProperties` and `eventProperties`, and transactional previews accept `dataVariables`. Supplying a field the parent cannot reference is rejected with 400.
- Email messages
- Update a theme
- LOOPS_POST_V1_THEMES_THEME_ID
- 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. Manual style edits made on individual emails are preserved: the cascade only changes properties an email has not overridden. A per-email override is removed only when it becomes identical to the theme's new value, after which that email follows the theme for that property.
- Themes
- Send a transactional email
- LOOPS_POST_V1_TRANSACTIONAL
- Send a transactional email to a contact.<br>Please [email us](mailto:help@loops.so) to enable attachments on your account before using them with the API.
- Transactional emails
- Create a transactional email
- LOOPS_POST_V1_TRANSACTIONAL_EMAILS
- Create a new transactional email. An empty draft email message is created automatically and its `draftEmailMessageId` is returned. Use the `/api/v1/email-messages/{emailMessageId}` endpoint to set subject, sender, preview text, and LMX content, then call `/api/v1/transactional-emails/{transactionalId}/publish` to publish.
- Transactional emails
- Update a transactional email
- LOOPS_POST_V1_TRANSACTIONAL_EMAILS_TRANSACTIONAL_ID
- Update a transactional email by ID.
- Transactional emails
- Ensure a draft email message
- LOOPS_POST_V1_TRANSACTIONAL_EMAILS_TRANSACTIONAL_ID_DRAFT
- 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). Use `/v1/email-messages/{emailMessageId}` to edit the draft's content.
- Transactional emails
- Publish a transactional email draft
- LOOPS_POST_V1_TRANSACTIONAL_EMAILS_TRANSACTIONAL_ID_PUBLISH
- Publish the transactional email's current draft email message. The draft becomes the published version and the draft is cleared.
- Transactional emails
- Create a transactional group
- LOOPS_POST_V1_TRANSACTIONAL_GROUPS
- Create a new transactional group.
- Transactional groups
- Update a transactional group
- LOOPS_POST_V1_TRANSACTIONAL_GROUPS_TRANSACTIONAL_GROUP_ID
- Update a transactional group's name or description. At least one field must be provided. The reserved "Unsorted" group cannot be edited.
- Transactional groups
- Create an upload
- LOOPS_POST_V1_UPLOADS
- 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/{id}/complete` to finalize the asset.
- Uploads
- Complete an upload
- LOOPS_POST_V1_UPLOADS_ID_COMPLETE
- Finalize an asset after the file has been uploaded to the pre-signed URL. Returns the public URL of the uploaded asset.
- Uploads
- Update a contact
- LOOPS_PUT_V1_CONTACTS_UPDATE
- Update a contact by `email` or `userId`. You must provide one of these parameters.<br>If you want to update a contact’s email address, the contact will first need a `userId` value. You can then make a request containing the userId field along with an updated email address.
- Contacts
Loops integration, answered
- How do AI agents use Loops through Open Connector?
- Your user connects Loops once with one of its cataloged authentication methods. Open Connector stores the credential in an encrypted vault and exposes Loops tools to your agent over MCP or a typed API, with credentials injected server-side on each call.
- Is this a Loops MCP server?
- Yes. Open Connector can serve Loops as a named MCP server with a scoped allowlist and a per-user connection URL, so any MCP client can call Loops actions with credentials injected server-side.
- Where do Loops credentials live?
- In your own infrastructure. Open Connector keeps credentials in its own vault and injects them at call time, so they never leave your environment.
Give your agents Loops — keep the keys.
Open source, self-hostable, with Loops credentials that never leave your infrastructure. Run it from source today.