Skip to content
Agent · ~/my-app
›Install Loops in my Next.js app
Using the loops-api skill
  1. Read package.jsonNext.js
  2. Ran npm install loopsJavaScript SDK
  3. Read LOOPS_API_KEY from .envServer only
  4. Edited lib/loops.tsContact sync
    const loops = new LoopsClient(process.env.LOOPS_API_KEY)
    + export const syncContact = (user) =>
    + loops.updateContact({ email: user.email, userId: user.id })
  5. Sent a test signup eventsuccess: true

Detected Next.js. I installed the JavaScript SDK, wired LOOPS_API_KEY from .env, set up a contact sync, and sent a test event. Loops returned success.

Ask a follow-up

npx skills add loops-so/skills --global

Installs the API, CLI, LMX, and email sending best-practices skills in one command. Choose an individual skill below if you only need one.

Connect your agent

Add the Loops connector in Claude, or the MCP server in Claude Code.

Or in Claude Code
claude mcp add loops https://mcp.loops.so --scope user --transport http
In Claude Code, run /mcp to sign in.Setup guide

Install the Loops plugin in ChatGPT.

Click Install plugin, then sign in to Loops.Setup guide

Add the MCP server, then sign in when Codex asks.

codex mcp add loops --url https://mcp.loops.so
Needs Codex CLI 1.48.0 or later.Setup guide

Cursor connects through the Loops CLI and agent skills. This installs both.

curl -fsSL https://install.loops.so/wizard | sh
Then ask Cursor to set up Loops in your project.Setup guide

Add this URL as a remote MCP server, then sign in to Loops.

https://mcp.loops.so
Guides cover Amp, OpenCode and VS Code.Setup guide

Four skills, one install

Each skill teaches your coding agent one part of Loops.

loops-apilib/loops.ts
await loops.updateContact({
userId: "usr_123",
plan: "pro"
})

API

Backend integrations, webhooks, SDK or REST choices, and email content.

$ loops transactional list Password reset published Receipt published Invite draft

CLI

One-off calls, ID lookups, credential checks, and JSON for scripts.

<H1>Welcome, {contact.firstName}</H1> <Button href="…">Get started</Button>

LMX

Valid LMX for campaigns, workflows, and transactional email.

SPF and DKIMPass
One-click unsubscribePass
Double opt-inReview

Email best practices

Deliverability, consent, and list hygiene reviews. Works without Loops.